refactor(agent): make emoji optional and sparse in agent replies
Loosen the creative agent guidance so emoji are used only as sparse category markers rather than forced on every list item, and tighten the frontend emoji section-break normalization to only split before short labelled headings. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -41,7 +41,7 @@ export function MarkdownContent({ content, streaming = false }: { content: strin
|
||||
}
|
||||
|
||||
function normalizeEmojiSectionBreaks(content: string) {
|
||||
return content.replace(/([^\s\n])\s*((?:[\p{Extended_Pictographic}\p{Emoji_Presentation}]\uFE0F?(?:\u200D[\p{Extended_Pictographic}\p{Emoji_Presentation}]\uFE0F?)*)+)(?=[\p{L}\p{N}])/gu, "$1\n$2");
|
||||
return content.replace(/([^\s\n])[ \t]*((?:[\p{Extended_Pictographic}\p{Emoji_Presentation}]\uFE0F?(?:\u200D[\p{Extended_Pictographic}\p{Emoji_Presentation}]\uFE0F?)*)+(?=[^\s\n]{1,12}[::]))/gu, "$1\n$2");
|
||||
}
|
||||
|
||||
function parseMarkdownBlocks(content: string) {
|
||||
|
||||
Reference in New Issue
Block a user