diff options
| author | Aiden Cline <[email protected]> | 2025-07-13 14:46:36 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-07-13 14:46:36 -0500 |
| commit | bb28b707001653f14c0d401a57c1f6772e666e41 (patch) | |
| tree | 418f3b76bbfc5d031ab936f447db53244e35d5ab | |
| parent | 7361a02ef33c8e5831b72bde8d958e654f57ab96 (diff) | |
| download | opencode-bb28b707001653f14c0d401a57c1f6772e666e41.tar.gz opencode-bb28b707001653f14c0d401a57c1f6772e666e41.zip | |
Fix: title generation (#949)
| -rw-r--r-- | packages/opencode/src/session/prompt/title.txt | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/packages/opencode/src/session/prompt/title.txt b/packages/opencode/src/session/prompt/title.txt index 373456a79..46291dba6 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> |
