Skip to content

CLI v0.1.22 enters infinite loop #479

@wcatoc

Description

@wcatoc

Description of the bug:

am using @google/gemini-cli and have encountered a critical bug.

CLI Version: The issue started immediately after upgrading from 0.1.21 to 0.1.22.

Behavior: When the Google API backend returns a specific server-side error, version 0.1.22 of the CLI enters an infinite retry loop, rapidly exhausting the API quota.

Workaround: Downgrading to version 0.1.21 stops the infinite loop (the command fails cleanly after one attempt with the server error).

This suggests a bug in the error-handling logic of v0.1.22.

I have the full JSON error report that was generated by the client. I have redacted any sensitive information from my prompt and have attached the log file to this issue.

Actual vs expected behavior:

No response

Any other information you'd like to share?

gemini-client-error-Turn.run-sendMessageStream-2025-08-20T12-13-02-902Z.json

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions