Skip to content

Infinite Loop in "Thinking" State Due to Repeated Text-Only Responses Without Tool Calls #9846

Closed

Description

@a690089735

Plugin Type

VSCode Extension

Cline Version

3.73.0

What happened?

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.

Steps to reproduce

Provider/Model

No response

System Information

No response

Activity

  1. linear commented on Mar 17, 2026

    @linear
  2. ClineXDiego commented on Mar 24, 2026

    @ClineXDiego
    Contributor

    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.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    VS CodeIssues specific to VS Code

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions