Doom loop is not caught when during reasoning or output #8845

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

Originally created by @Heinrich-XIAO on GitHub (Feb 8, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

Image This is never caught.

Plugins

None

OpenCode version

1.1.53

Steps to reproduce

  1. Ask an agent to think about a certain word 100 times. Preferrably, a smaller model like 2-8B

Screenshot and/or share link

Image

Operating System

m1 mac air tahoe 26.3

Terminal

Mac Default Terminal

Originally created by @Heinrich-XIAO on GitHub (Feb 8, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description <img width="1920" height="1079" alt="Image" src="https://github.com/user-attachments/assets/616571c9-907a-4bf4-8646-27f8ec48053f" /> This is never caught. ### Plugins None ### OpenCode version 1.1.53 ### Steps to reproduce 1. Ask an agent to think about a certain word 100 times. Preferrably, a smaller model like 2-8B ### Screenshot and/or share link <img width="1920" height="1079" alt="Image" src="https://github.com/user-attachments/assets/616571c9-907a-4bf4-8646-27f8ec48053f" /> ### Operating System m1 mac air tahoe 26.3 ### Terminal Mac Default Terminal
yindo added the bug label 2026-02-16 18:11:00 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Feb 8, 2026):

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

  • #12234: Infinite retry loop when StreamIdleTimeoutError occurs during tool input generation
  • #11865: Tasks/Subagents with Codex frequently getting stuck with no timeout/retry
  • #11112: Agent stuck at 'Preparing write...' in a tool execution loop
  • #3743: Loop in certain models (explicitly mentions 2-8B models like yours)
  • #11529: Kimi K2.5 loops over in reasoning with smaller models

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

@github-actions[bot] commented on GitHub (Feb 8, 2026): This issue might be a duplicate of existing issues. Please check: - #12234: Infinite retry loop when StreamIdleTimeoutError occurs during tool input generation - #11865: Tasks/Subagents with Codex frequently getting stuck with no timeout/retry - #11112: Agent stuck at 'Preparing write...' in a tool execution loop - #3743: Loop in certain models (explicitly mentions 2-8B models like yours) - #11529: Kimi K2.5 loops over in reasoning with smaller models Feel free to ignore if none of these address your specific case.
Author
Owner

@Nindaleth commented on GitHub (Feb 14, 2026):

doom_loop — triggered when the same tool call repeats 3 times with identical input

(ref) I don't see any tool calls in your screenshot.

@Nindaleth commented on GitHub (Feb 14, 2026): > `doom_loop` — triggered when the same tool call repeats 3 times with identical input ([ref](https://opencode.ai/docs/permissions/#available-permissions)) I don't see any tool calls in your screenshot.
Author
Owner

@Heinrich-XIAO commented on GitHub (Feb 14, 2026):

Yeah. That's what I mean. It makes sense for it to catch non-tool call doom loops.

@Heinrich-XIAO commented on GitHub (Feb 14, 2026): Yeah. That's what I mean. It makes sense for it to catch non-tool call doom loops.
Author
Owner

@Nindaleth commented on GitHub (Feb 14, 2026):

Oh I see, you are targeting this as a feature request. Ok cool, but please mark the issue as such (e.g. using [FEATURE] tag in the title), the feature works as currently designed and is not a bug.

@Nindaleth commented on GitHub (Feb 14, 2026): Oh I see, you are targeting this as a feature request. Ok cool, but please mark the issue as such (e.g. using `[FEATURE]` tag in the title), the feature works as currently designed and is not a bug.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#8845