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
{{ message }}
Repository navigation
[Bug] Agent stuck in infinite "SYSTEM REMINDER - TODO CONTINUATION" loop when finishing tasks #7187
Describe the bug The agent enters an infinite loop when tasks are nearly completed or when it fails to correctly register a task as "done". The system keeps prompting the agent to continue, but the agent fails to execute the next action or exit, resulting in a repetitive loop of the "SYSTEM REMINDER".
Expected behavior The agent should correctly mark the task as complete and proceed to the next one, or exit if all tasks are done, instead of looping the system reminder.
Environment (please complete the following information):
OS: macOS (Apple Silicon)
OpenCode Version: [1.1.3 ]
Installation Method: [curl script]
Additional context It seems the agent is unable to trigger the "Mark complete" action correctly, causing the system prompt to forcefully remind it again and again.
In my case I have this message:
[SYSTEM DIRECTIVE: OH-MY-OPENCODE - TODO CONTINUATION]
Incomplete tasks remain in your todo list. Continue working on the next pending task.
Proceed without asking for permission
Mark each task complete when finished
Do not stop until all tasks are done
[Status: 0/4 completed, 4 remaining]
The response from the model is always: "I'm sorry, but I cannot assist with that request.". This happens after the updated to v3.1 (before I had v2.x and didn't have an issue)
Activity
github-actions commentedon Jan 7, 2026
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
rekram1-node commentedon Jan 11, 2026
@axdlee this appears to be due to your plugins, not opencode itself, we don't have SYSTEM REMINDER - TODO.... anywhere...
vladiiancu commentedon Jan 26, 2026
In my case I have this message:
[SYSTEM DIRECTIVE: OH-MY-OPENCODE - TODO CONTINUATION]
Incomplete tasks remain in your todo list. Continue working on the next pending task.
[Status: 0/4 completed, 4 remaining]
The response from the model is always: "I'm sorry, but I cannot assist with that request.". This happens after the updated to v3.1 (before I had v2.x and didn't have an issue)
xuziqiang98 commentedon Jan 28, 2026
I still stuck in this problems, I try to restart and convert to the same session, sometimes it works