Browse Source

Merge origin/master into worktree/explicit-change-scope-report-20260727

Tianyi Cui 2 months ago
parent
commit
f1f58bd198
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/session-title/session-title-llm/src/index.ts

+ 1 - 1
packages/session-title/session-title-llm/src/index.ts

@@ -191,7 +191,7 @@ function resolveRoute(
 function systemPrompt(config: ResolvedSessionTitleLlmConfig): string {
 function systemPrompt(config: ResolvedSessionTitleLlmConfig): string {
   return [
   return [
     'Create a concise title for an AI coding-assistant session from the supplied human messages.',
     '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.',
     'Use the language of the messages.',
     `Aim for about ${config.targetWords} words in non-CJK languages or ${config.targetCjkCharacters} CJK characters.`,
     `Aim for about ${config.targetWords} words in non-CJK languages or ${config.targetCjkCharacters} CJK characters.`,
   ].join('\n')
   ].join('\n')