Skip to content

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

Closed as not planned

Description

@axdlee

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

Activity

  1. github-actions commented on Jan 7, 2026

    @github-actions
    Contributor

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

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

  2. rekram1-node commented on Jan 11, 2026

    @rekram1-node
    Contributor

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

  3. vladiiancu commented on Jan 26, 2026

    @vladiiancu

    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)

  4. xuziqiang98 commented on Jan 28, 2026

    @xuziqiang98

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions