Skip to content

"A potential loop was detected. This can happen due to repetitive tool calls or other model behavior. The request has been halted" #5116

Description

@yashasvigirdhar

What happened?

I got this message today and the model stopped the response ater this. Do we know why does this happen?

What did you expect to happen?

No error and the response should not be interrupted.

Client information

  • CLI Version: 0.1.14
  • Git Commit: de96887 (local modifications)
  • Operating System: darwin v24.3.0
  • Sandbox Environment: no sandbox
  • Model Version: gemini-2.5-pro
  • Memory Usage: 281.8 MB

Login information

No response

Anything else we need to know?

No response

Activity

  1. added
    area/coreIssues related to User Interface, OS Support, Core Functionality
    priority/p2Important but can be addressed in a future release.
    and removed
    status/need-triageIssues that need to be triaged by the triage automation.
    on Jul 29, 2025
  2. SandyTao520 commented on Jul 29, 2025

    @SandyTao520
    Contributor

    Can you share more about the conversation history? Did this happen during tool calls or model streaming texts?

  3. maxwellaguiarsilva commented on Jul 29, 2025

    @maxwellaguiarsilva

    This affected me too! Extremely simple prompts are throwing this error and generating unrelated text.

  4. gsquared94 commented on Jul 29, 2025

    @gsquared94
    Contributor

    Found possible duplicate issues:

  5. added and removed
    area/coreIssues related to User Interface, OS Support, Core Functionality
    on Jul 29, 2025
  6. yashasvigirdhar commented on Jul 31, 2025

    @yashasvigirdhar
    Author

    Can you share more about the conversation history? Did this happen during tool calls or model streaming texts?

    For my case, I am not really sure on this. Will update next time when it happens

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

    priority/p2Important but can be addressed in a future release.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions