[Bug] Agent stuck in infinite "SYSTEM REMINDER - TODO CONTINUATION" loop when finishing tasks #4353

Closed
opened 2026-02-16 17:43:32 -05:00 by yindo · 4 comments
Owner

Originally created by @axdlee on GitHub (Jan 7, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

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.

Plugins

["oh-my-opencode", "opencode-antigravity-auth@1.2.7"]

OpenCode version

1.13

Steps to reproduce

To Reproduce Steps to reproduce the behavior:

  1. Give the agent a multi-step request (e.g., "Do these 3 things...").

  2. Wait until the agent processes the tasks.

  3. Near the end (or sometimes in the middle), the agent gets stuck printing the following block repeatedly without making progress:

Screenshot and/or share link

`
[SYSTEM REMINDER - 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/3 completed, 3 remaining]
`

Operating System

macOS 26.2

Terminal

iTerm2

Originally created by @axdlee on GitHub (Jan 7, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description 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. ### Plugins ["oh-my-opencode", "opencode-antigravity-auth@1.2.7"] ### OpenCode version 1.13 ### Steps to reproduce To Reproduce Steps to reproduce the behavior: 1. Give the agent a multi-step request (e.g., "Do these 3 things..."). 2. Wait until the agent processes the tasks. 3. Near the end (or sometimes in the middle), the agent gets stuck printing the following block repeatedly without making progress: ### Screenshot and/or share link ` [SYSTEM REMINDER - 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/3 completed, 3 remaining] ` ### Operating System macOS 26.2 ### Terminal iTerm2
yindo added the bug label 2026-02-16 17:43:32 -05:00
yindo closed this issue 2026-02-16 17:43:32 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 7, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #5934: Session Todo-list is forgotten after compaction - Related to task state management and completion tracking during compaction operations

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 7, 2026): This issue might be a duplicate of existing issues. Please check: - #5934: Session Todo-list is forgotten after compaction - Related to task state management and completion tracking during compaction operations Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Jan 11, 2026):

@axdlee this appears to be due to your plugins, not opencode itself, we don't have SYSTEM REMINDER - TODO.... anywhere...

@rekram1-node commented on GitHub (Jan 11, 2026): @axdlee this appears to be due to your plugins, not opencode itself, we don't have SYSTEM REMINDER - TODO.... anywhere...
Author
Owner

@vladiiancu commented on GitHub (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.

  • 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)

@vladiiancu commented on GitHub (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. - 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)
Author
Owner

@xuziqiang98 commented on GitHub (Jan 28, 2026):

I still stuck in this problems, I try to restart and convert to the same session, sometimes it works

@xuziqiang98 commented on GitHub (Jan 28, 2026): I still stuck in this problems, I try to restart and convert to the same session, sometimes it works
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4353