Skip to content

[Bug]: TODO Continuation is too aggressive when user interrupts agent #577

@bcardarella

Description

@bcardarella

Prerequisites

  • I have searched existing issues to avoid duplicates
  • I am using the latest version of oh-my-opencode
  • I have read the documentation

Bug Description

When I <esc><esc> within Opencode but there is an incomplete TODO the TODO Continuation automatically kicks in and will start the agent again. It doesn't matter if I continue <esc><esc>. I have to exit Opencode and restart.

This also happens if I have a directive in the agent to wait for my feedback. For example, I want to run certain commands myself. But if the agent is in the midst of a TODO the agent will restart then it will reason to wait for me again then restart then wait then restart... over and over.

Steps to Reproduce

Have an active TODO that is incomplete
interrupt the agent
TODO continuation kicks in

Expected Behavior

I would expect TODO continuation not to kick in if I interrupt.

Actual Behavior

It goes into a constant loop

Doctor Output

oMoMoMoMo... Doctor
Installation
────────────────────────────────────────                                               ✓ OpenCode Installation → 1.1.3                                                      ✓ Plugin Registration → Registered (pinned: latest)

Configuration
────────────────────────────────────────
  ✓ Configuration Validity → Valid JSON config

Authentication
────────────────────────────────────────
  ✓ Anthropic (Claude) Auth → Auth plugin available
  ✓ OpenAI (ChatGPT) Auth → Auth plugin available
  ✓ Google (Gemini) Auth → Auth plugin available
                                                                                     Dependencies                                                                         ────────────────────────────────────────                                               ✓ AST-Grep CLI → installed                                                           ⚠ AST-Grep NAPI → Not installed (optional)                                           ⚠ Comment Checker → Not installed (optional)
Tools & Servers
────────────────────────────────────────                                               ✓ GitHub CLI → 2.83.2 - authenticated as bcardarella                                 ✓ LSP Servers → 1/4 servers available
  ✓ Built-in MCP Servers → 2 built-in servers enabled
  ○ User MCP Configuration → No user MCP configuration found
Updates
────────────────────────────────────────                                               ✓ Version Status → Up to date (2.14.0)
Summary
────────────────────────────────────────                                                                                                                                    11 passed, 0 failed, 2 warnings, 1 skipped
  Total: 14 checks in 1218ms
                                                                                     ⚠ All systems operational with warnings.

Error Logs

Configuration

Additional Context

No response

Operating System

macOS

OpenCode Version

1.1.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions