[BUG] it gets stuck in Plan mode #6785

Open
opened 2026-02-16 18:05:16 -05:00 by yindo · 3 comments
Owner

Originally created by @devhindo on GitHub (Jan 19, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

Sometimes it gets stuck in the planning mod,e trying to output a response to the user, maybe a safe maximum tries of 3 should be enforced to stop the infinite iteration, and just output the response message would fix it and output the correct response

we can also make this configurable

Plugins

none

OpenCode version

1.1.25

Steps to reproduce

  1. be in Plan mode
  2. plan smth
  3. it gets stuck sometimes trying to produce a response after planning and keeps iterating, wait, iterating, wait.

Screenshot and/or share link

No response

Operating System

Ubuntu latest

Terminal

default ubuntu terminal

Originally created by @devhindo on GitHub (Jan 19, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description Sometimes it gets stuck in the planning mod,e trying to output a response to the user, maybe a safe maximum tries of 3 should be enforced to stop the infinite iteration, and just `output the response` message would fix it and output the correct response we can also make this configurable ### Plugins none ### OpenCode version 1.1.25 ### Steps to reproduce 1. be in Plan mode 2. plan smth 3. it gets stuck sometimes trying to produce a response after planning and keeps iterating, wait, iterating, wait. ### Screenshot and/or share link _No response_ ### Operating System Ubuntu latest ### Terminal default ubuntu terminal
yindo added the bugperf labels 2026-02-16 18:05:16 -05:00
Author
Owner

@acedergren commented on GitHub (Jan 19, 2026):

I have the same issues, Ive tried across different models, from different provider. It can run for hours in plan loops for me, even after intrupting it and explicit giving the instruction in build mode to execute the plan. My perception is that the bug was introduced lately. I have reproduced the issues atleast five times over the weekend. I can provide more information or extract if needed

@acedergren commented on GitHub (Jan 19, 2026): I have the same issues, Ive tried across different models, from different provider. It can run for hours in plan loops for me, even after intrupting it and explicit giving the instruction in build mode to execute the plan. My perception is that the bug was introduced lately. I have reproduced the issues atleast five times over the weekend. I can provide more information or extract if needed
Author
Owner

@devhindo commented on GitHub (Jan 19, 2026):

@acedergren same, it keeps burning tokens! The only fix for me was interrupting it, then entering a message like: conclude your plan and give it to me.

@devhindo commented on GitHub (Jan 19, 2026): @acedergren same, it keeps burning tokens! The only fix for me was interrupting it, then entering a message like: `conclude your plan and give it to me`.
Author
Owner

@Moselan commented on GitHub (Jan 19, 2026):

Same me

@Moselan commented on GitHub (Jan 19, 2026): Same me
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#6785