Skip to content

[Bug]: Gemini model usage can lock the gateway/session loop until gateway restart #71126

@f23783

Description

@f23783

Bug type

Regression (worked before, now fails)

Beta release blocker

No

Summary

Using a Gemini model in OpenClaw can cause the system to enter a stuck/looped state that only clears after a gateway restart.

Steps to reproduce

Not fully minimized yet, but the issue appears when switching to / running Gemini models.

Expected behavior

In the same installation, other active models (for example gpt-5.4) continue serving requests normally, so Gemini model requests should also complete or fail gracefully without requiring a gateway restart.

Actual behavior

After using a Gemini model, the system becomes unresponsive / stuck in a loop and does not recover until the gateway is restarted.

OpenClaw version

2026.4.22 (00bd2cf)

Operating system

Linux 6.8.0-107-generic (x64)

Install method

npm global

Model

google-gemini-cli/gemini-3.1-pro-preview

Provider / routing chain

google-gemini-cli (CLI runner) -> gemini-3.1-pro-preview -> oauth

Additional provider/model setup details

No response

Logs, screenshots, and evidence

Impact and severity

No response

Additional information

I can try to collect more diagnostics on the next reproduction if you tell me which logs / debug flags would be most useful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions