[PR #2298] fix: add additional encouragement for title gen #10264

Closed
opened 2026-02-16 18:14:53 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/2298

State: closed
Merged: Yes


fixes: #2235

When given super large prompts title generation can have a hiccup, there are really only 2 viable solutions here:
A) truncate the user prompt
B) add additional prompt after giant context blob to reaffirm to LLM what it needs to do

Why not adjust system prompt?

When dealing with huge blocks of context sometimes the llm will lose sight of parts of system prompt, you can usually get around this by just adding an additional reference to something in system prompt and llm will "remember" it needs to do X or Y

showing fix w/ prompt taken from issue:
https://dev.opencode.ai/s/gzWbv3uO

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/2298 **State:** closed **Merged:** Yes --- fixes: #2235 When given super large prompts title generation can have a hiccup, there are really only 2 viable solutions here: A) truncate the user prompt B) add additional prompt after giant context blob to reaffirm to LLM what it needs to do ### Why not adjust system prompt? When dealing with huge blocks of context sometimes the llm will lose sight of parts of system prompt, you can usually get around this by just adding an additional reference to something in system prompt and llm will "remember" it needs to do X or Y showing fix w/ prompt taken from issue: https://dev.opencode.ai/s/gzWbv3uO
yindo added the pull-request label 2026-02-16 18:14:53 -05:00
yindo closed this issue 2026-02-16 18:14:53 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#10264