gemini-cli - 💡(How to fix) Fix CLI stuck on "Thinking..." state even after successful Google OAuth re-authentication [1 comments, 2 participants]

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…
GitHub stats
google-gemini/gemini-cli#25044Fetched 2026-04-10 03:45:01
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Author
Timeline (top)
labeled ×3closed ×1commented ×1

Error Message

The Gemini CLI remains in a permanent "Thinking..." state whenever any command is issued. The CLI does not return an error, timeout, or any output, even after waiting for an extended period. There are no clear error logs being printed. Is there a way to enable a more detailed debug/verbose mode to see where the handshake is failing? The CLI should process the prompt and return a response or a specific error message (e.g., Quota exceeded or Network error).

Code Example

> /about
# paste output here
RAW_BUFFERClick to expand / collapse

What happened?

The Gemini CLI remains in a permanent "Thinking..." state whenever any command is issued. The CLI does not return an error, timeout, or any output, even after waiting for an extended period.

Environment:

Operating System: windows 10

CLI Version: v0.37.0

Authentication Method: Signed in with Google (OAuth / ADC)

Location: Karachi, Pakistan

Steps Taken to Resolve (But failed):

Performed gcloud auth application-default login to refresh tokens.

Verified that the Generative Language API is enabled in the Google Cloud Console.

Checked system time/date synchronization (confirmed it is accurate).

Tested connectivity to https://generativelanguage.googleapis.com/ via curl (Connection successful).

Deleted and regenerated application_default_credentials.json.

Verified project ID is correctly set in the local config.

Actual Behavior: The terminal hangs at "Thinking..." indefinitely.

Additional Context: There are no clear error logs being printed. Is there a way to enable a more detailed debug/verbose mode to see where the handshake is failing?

What did you expect to happen?

The CLI should process the prompt and return a response or a specific error message (e.g., Quota exceeded or Network error).

Client information

<details> <summary>Client Information</summary>

Run gemini to enter the interactive CLI, then run the /about command.

> /about
# paste output here
</details>

Login information

No response

Anything else we need to know?

No response

extent analysis

TL;DR

Enable a more detailed debug/verbose mode to diagnose the handshake failure causing the Gemini CLI to hang indefinitely.

Guidance

  • Investigate the possibility of enabling a debug or verbose mode for the Gemini CLI to gather more detailed logs, which could help identify where the handshake is failing.
  • Review the Gemini CLI documentation or help commands (e.g., gemini --help) to see if there are any options for increasing log verbosity or enabling debug output.
  • Consider checking the system's network configuration and firewall settings to ensure they are not interfering with the CLI's ability to connect to the Generative Language API.
  • If possible, test the Gemini CLI on a different network or environment to isolate if the issue is specific to the current setup.

Example

No specific code snippet can be provided without more information on the Gemini CLI's internal workings or APIs. However, an example of how to enable verbose mode in a CLI tool might look like: gemini --verbose or gemini -v, though this is speculative and depends on the actual CLI options available.

Notes

The solution is limited by the lack of detailed error logs or specific information about the Gemini CLI's internal mechanics. Enabling a debug mode, if available, would be a crucial step in diagnosing the issue further.

Recommendation

Apply workaround: Enable debug/verbose mode if possible, to gather more information about the failure point. This approach is chosen because it directly addresses the need for more detailed diagnostics without making assumptions about the underlying cause or requiring changes to the environment or CLI version.

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