The open source coding agent.
TypeScript
Fix: title generation (#949)
Aiden Clinebb28b7070016
diff --git a/packages/opencode/src/session/prompt/title.txt b/packages/opencode/src/session/prompt/title.txtindex 373456a79a9..46291dba606 100644--- a/packages/opencode/src/session/prompt/title.txt+++ b/packages/opencode/src/session/prompt/title.txt@@ -1,11 +1,16 @@-Generate a short title based on the first message a user begins a conversation with. CRITICAL: Your response must be EXACTLY one line with NO line breaks, newlines, or multiple sentences.+<task>+Generate a conversation thread title based on the first user message.+</task>-Requirements:+<requirements>- Maximum 50 characters- Single line only - NO newlines or line breaks-- Summary of the user's message+- Create a descriptive thread name that captures the topic- No quotes, colons, or special formatting-- Do not include explanatory text like "summary:" or similar-- Your entire response becomes the title+- Do not include explanatory text like "Title:" or similar prefixes+</requirements>-IMPORTANT: Return only the title text on a single line. Do not add any explanations, formatting, or additional text.+<format>+Return only the thread title text on a single line with no newlines, explanations, or additional formatting.+You should NEVER reply to the user's message. You can only generate titles.+</format>