You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While these issues involve different models, they all relate to similar mode-switching and mode-restriction problems. The core issue appears to be models not properly respecting mode boundaries or getting confused about their current operational mode.
Feel free to ignore if none of these address your specific case with Sonic getting stuck with "system constraints" messages.
I don't think this is the fault of OpenCode. Mode changes (such as telling the LLM its in plan mode) happen currently as messages in the conversation (and I believe follows the anthropic pattern of <system_reminder>...</system_reminder>)
It seems like Sonic isn't respecting subsequent changes. Perhaps their internal system prompt has very strong safeguards against disregarding system prompts (to prevent you from doing things like "ignore all previous instructions"), and maybe the system_reminder stuff is running afoul of it.
yeah this is something we can try to prompt for better but ultimately the model is confusing itself based on prior conversation context, sometimes it needs an extra push. I opened PR to help address, ultimately up to team to merge or not
Activity
github-actions commentedon Aug 20, 2025
This issue might be a duplicate of existing issues. Please check:
While these issues involve different models, they all relate to similar mode-switching and mode-restriction problems. The core issue appears to be models not properly respecting mode boundaries or getting confused about their current operational mode.
Feel free to ignore if none of these address your specific case with Sonic getting stuck with "system constraints" messages.
ActuallyTrent commentedon Aug 20, 2025
I don't think this is the fault of OpenCode. Mode changes (such as telling the LLM its in plan mode) happen currently as messages in the conversation (and I believe follows the anthropic pattern of
<system_reminder>...</system_reminder>)It seems like Sonic isn't respecting subsequent changes. Perhaps their internal system prompt has very strong safeguards against disregarding system prompts (to prevent you from doing things like "ignore all previous instructions"), and maybe the
system_reminderstuff is running afoul of it.rekram1-node commentedon Aug 20, 2025
yeah this is something we can try to prompt for better but ultimately the model is confusing itself based on prior conversation context, sometimes it needs an extra push. I opened PR to help address, ultimately up to team to merge or not
rekram1-node commentedon Aug 21, 2025
Updated prompt, should be a bit better
renich commentedon Aug 29, 2025
I started trying sonic today and it's failing. It insists it's on planning mode and that it cannot write files.
rekram1-node commentedon Aug 29, 2025
@renich are you on latest?
rekram1-node commentedon Aug 29, 2025
grok-code does have this issue much more than other models, that's something I've noticed
renich commentedon Aug 29, 2025
@rekram1-node yes, I am. I'm using:
npx opencode-ai@latestto launch.And, btw, after
/compact, everything started working again.