gemini-cli - 💡(How to fix) Fix [Bug] Persistent "Thinking..." hang with automatic model selection (v0.3.x - v0.4.2)

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

The CLI should select a model and provide a response within a reasonable timeframe. If selection fails, it should throw a clear error or timeout instead of hanging indefinitely.

RAW_BUFFERClick to expand / collapse

What happened?

The CLI hangs indefinitely at the Thinking... stage when automatic model selection is enabled.

This is a long-standing issue that has been consistently observed since the v0.3.x versions and persists in the current v0.4.2 release. In a recent instance, the CLI remained in the "Thinking" state for over 33 minutes without any response or timeout.

Steps to Reproduce:

1.Use gemini-cli (v0.3.x through v0.4.2).

2.Ensure the configuration is set to "automatic model selection".

3.Run a prompt.

4.The process hangs at Thinking....

What did you expect to happen?

The CLI should select a model and provide a response within a reasonable timeframe. If selection fails, it should throw a clear error or timeout instead of hanging indefinitely.

Client information

OS: 例如 Windows 11

CLI Version: 0.4.2

Terminal: PowerShell /cmd

Login information

Auth Method: Logged in via Google Account (not using an API Key).

Anything else we need to know?

<img width="497" height="65" alt="Image" src="https://github.com/user-attachments/assets/cd08156c-99e2-49be-94de-af0ca9cefb20" />

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

gemini-cli - 💡(How to fix) Fix [Bug] Persistent "Thinking..." hang with automatic model selection (v0.3.x - v0.4.2)