opencode icon indicating copy to clipboard operation
opencode copied to clipboard

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

Open axdlee opened this issue 1 week ago • 1 comments

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", "[email protected]"]

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

axdlee avatar Jan 07 '26 10:01 axdlee