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
Infinite Loop in "Thinking" State Due to Repeated Text-Only Responses Without Tool Calls #9846
Analysis Result: Root Cause of the Conversation Getting Stuck in Infinite Thinking
Through careful analysis of the logs, I've identified the root cause:
Core Issue: Model Repeatedly Outputs Plain Text Without Calling Tools, Resulting in an Infinite Loop
This pattern appears at least 4 times in the logs:
Model outputs plain text (without calling any tools), for example:
"First stop the running scenario, then fix the error:"
"It can be stopped, let me first stop the scenario, then fix the code:"
"Fix completed. Now clear the previous error logs, then run the scenario to verify:"
"Let me first clear the old logs, then run the scenario to verify the fix:"
System automatically detects no tool calls and sends an error message:
javascript
[ERROR] You did not use a tool in your previous response! Please retry with a tool use.
Model outputs plain text again, still without calling tools → Returns to step 2, forming an infinite loop.
After testing, tool calling works normally again once "Native Tool Call" and "Parallel Tool Calling" are disabled.
Thanks for the detailed analysis. PR #9933 was just merged — it adds loop detection that should help with this class of repeated response patterns. Expect the fix in the next release. If you still see infinite thinking loops with text-only responses specifically (no tool calls at all) after updating, please reopen with your provider and model info.
Activity
linear commentedon Mar 17, 2026
CLINE-1545
feat: add doom loop detection for repeated identical tool calls
feat: add repeated tool call loop detection
feat: add repeated tool call loop detection
feat: add repeated tool call loop detection
feat: add repeated tool call loop detection
feat: add repeated tool call loop detection
feat: add repeated tool call loop detection
feat: add repeated tool call loop detection
feat: add repeated tool call loop detection
feat: add repeated tool call loop detection
feat: add repeated tool call loop detection
feat: add repeated tool call loop detection
feat: add repeated tool call loop detection
feat: add repeated tool call loop detection
feat: add repeated tool call loop detection
feat: add repeated tool call loop detection (#9933)
ClineXDiego commentedon Mar 24, 2026
Thanks for the detailed analysis. PR #9933 was just merged — it adds loop detection that should help with this class of repeated response patterns. Expect the fix in the next release. If you still see infinite thinking loops with text-only responses specifically (no tool calls at all) after updating, please reopen with your provider and model info.
feat: add repeated tool call loop detection (cline#9933)