Description
In prompt.ts (~line 1415), user message text parts in follow-up messages get wrapped in tags with "Please address this message and continue with your tasks" whenever step > 1 && lastFinished. This fires on every tool-call round.
Models interpret "Please address this message and continue with your tasks" as a system-level instruction to keep going, and start outputting "The system is asking me to continue" and wastes tokens. The in-place mutation of p.text also causes the wrapping to nest on subsequent iterations, compounding the issue.
Plugins
code-yeongyu/oh-my-openagent, different-ai/opencode-browser
OpenCode version
1.15.11
Steps to reproduce
- Start a session, send any message, let it complete (sets lastFinished)
- Send a follow-up message that requires multiple tool calls (e.g. "fix all lint errors" or "read these files then summarize")
- Every tool calls prepends
<system-reminder> ...
- The model starts repeating "the system is asking me to continue"
First message in a fresh session never triggers this since lastFinished is null so the wrapping block is skipped.
Screenshot and/or share link
Operating System
Ubuntu 26.04
Terminal
Konsole (bundled with Kubuntu)
(sorry for initial mispaste with ai-generated issue draft)
Description
In prompt.ts (~line 1415), user message text parts in follow-up messages get wrapped in tags with "Please address this message and continue with your tasks" whenever step > 1 && lastFinished. This fires on every tool-call round.
Models interpret "Please address this message and continue with your tasks" as a system-level instruction to keep going, and start outputting "The system is asking me to continue" and wastes tokens. The in-place mutation of p.text also causes the wrapping to nest on subsequent iterations, compounding the issue.
Plugins
code-yeongyu/oh-my-openagent, different-ai/opencode-browser
OpenCode version
1.15.11
Steps to reproduce
<system-reminder>...First message in a fresh session never triggers this since
lastFinishedis null so the wrapping block is skipped.Screenshot and/or share link
Operating System
Ubuntu 26.04
Terminal
Konsole (bundled with Kubuntu)
(sorry for initial mispaste with ai-generated issue draft)