Add attachment text extraction, auto web news skill, and chat/voice UI updates.
Simplify asset upload temp paths, refresh deploy docs for Aliyun DNS topology, and ship MindSpace content-scan and auth improvements. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -21,3 +21,12 @@ export function buildUserAddressPrefix(
|
||||
|
||||
`;
|
||||
}
|
||||
|
||||
/** Strip hidden user-identity prefix when UI falls back to agent-side content. */
|
||||
export function stripUserAddressPrefix(text: string): string {
|
||||
if (!text.startsWith('[用户身份]\n')) return text;
|
||||
const separator = '\n\n';
|
||||
const end = text.indexOf(separator);
|
||||
if (end === -1) return text;
|
||||
return text.slice(end + separator.length).trim();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user