You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Agent enters infinite loop in plan mode when attempting to write plan #12306
When using gpt-5.2-codex xhigh, the agent appears to enter an infinite loop when attempting to create the final plan file:
When interrupted and manually put into build mode to give write access, it complained about the lack of a write tool despite instructions, and used apply_patch instead:
After letting the agent write the plan file and putting it into plan mode again, the agent will successfully proceed with the plan by using the exit_plan tool.
Plugins
None
OpenCode version
1.1.51-11a93a1 (beta branch)
Steps to reproduce
Put OpenCode in plan mode
Ask the agent to plan a feature
Watch it enter infinite loop
Screenshot and/or share link
Company-internal repo, so I can't share unfortunately. Screenshots are above.
Activity
github-actions commentedon Feb 5, 2026
This issue might be a duplicate of existing issues. Please check:
.opencode/plans/#11078: plan mode: unwilling to write to.opencode/plans/Feel free to ignore if none of these address your specific case.
sin-ack commentedon Feb 5, 2026
Seems like #10883 and #11078 are the same issue, closing in favor of them.