Skip to content

Plan/build mode auto-toggles every turn, spamming reminders and burning tokens #42764

Closed as not planned

Description

@mflow42

Description

In OpenCode TUI 1.15.13 on Windows, the operational mode automatically toggles between plan and build on every turn, producing a "Your operational mode has changed from plan to build" system reminder each turn.

This started after installing @plannotator/opencode with workflow: "plan-agent", but it CONTINUES after completely removing the plugin (removed from opencode.jsonc, deleted ~/.cache/opencode/packages/@plannotator, no processes left) and restarting the TUI 5 times.

Impact

The agent reacts to each auto-generated system reminder with a short empty reply ("ready"/"waiting"), which spams the user AND burns tokens on every turn - over a long session these empty generations can exhaust the entire token budget.

Expected behavior

Mode should change only via the Tab key (or an explicit command), not automatically on every turn.

Steps to reproduce

  1. Open any project in OpenCode TUI on Windows.
  2. Send a few messages.
  3. Observe the mode indicator (bottom-right) toggling plan <-> build by itself, with a system reminder injected each turn.

Environment

  • OpenCode: 1.15.13
  • OS: Windows (PowerShell 5.1)
  • Plugins: caveman-opencode-plugin (plannotator removed)

Additional context

Issue persists after removing plannotator, so it appears to be core OpenCode behavior (or state retained from the plugin), not the plugin itself

Activity

  1. simonklee commented on Aug 15, 2026

    @simonklee
    Member

    This seems like a plugin problem. I'd also upgrade to 1.18.x branch

  2. mflow42 commented on Aug 16, 2026

    @mflow42
    Author

    This seems like a plugin problem.

    but it CONTINUES after completely removing the plugin (removed from opencode.jsonc, deleted ~/.cache/opencode/packages/https://github.com/plannotator, no processes left) and restarting the TUI 5 times.

    Opencode's fault cannot be denied, as the plugin corrupted something in Opencode.
    Only installing Opencode over the existing one helped.

    Opencode used up 35% of my monthly quota and 100% of my weekly quota for Opencode Go in about 4 hours and blocked development for 1 day. So, I've switched to ZCode for now.

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions