From ac1431e4f5c79010284bea88579a5afd952f8ff9 Mon Sep 17 00:00:00 2001 From: Turtle Date: Mon, 27 Jul 2026 17:47:48 +0800 Subject: [PATCH] fix(session-title): improve prompt bad case: when i start the session with a skill reference, llm returns XML --- packages/session-title/session-title-llm/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/session-title/session-title-llm/src/index.ts b/packages/session-title/session-title-llm/src/index.ts index 672292bbf6..673b50311a 100644 --- a/packages/session-title/session-title-llm/src/index.ts +++ b/packages/session-title/session-title-llm/src/index.ts @@ -191,7 +191,7 @@ function resolveRoute( function systemPrompt(config: ResolvedSessionTitleLlmConfig): string { return [ 'Create a concise title for an AI coding-assistant session from the supplied human messages.', - 'Return only the title on one line, with no quotes, prefix, explanation, Markdown, or terminal control codes.', + 'Return only the title on one line, **in plain text of natural language**, with no quotes, prefix, explanation, Markdown, XML, or terminal control codes. No code is allowed.', 'Use the language of the messages.', `Aim for about ${config.targetWords} words in non-CJK languages or ${config.targetCjkCharacters} CJK characters.`, ].join('\n')