gemini-cli - 💡(How to fix) Fix Stuck in "Thinking..." for 15 hours [1 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#25667Fetched 2026-04-20 12:15:43
View on GitHub
Comments
0
Participants
1
Timeline
1
Reactions
0
Author
Participants
Timeline (top)
labeled ×1

Code Example

> /about
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│                                                                                                                                                                                                                                                                                        │
About Gemini CLI│                                                                                                                                                                                                                                                                                        │
CLI Version                                                                                      0.38.2Git Commit                                                                                       b0ed611a0                                                                                                                                                                             │
Model                                                                                            gemini-3-flash-preview                                                                                                                                                                │
Sandbox                                                                                          no sandbox                                                                                                                                                                            │
OS                                                                                               linux                                                                                                                                                                                 │
Auth Method                                                                                      Signed in with Google (XXX@gmail.com)Tier                                                                                             Gemini Code Assist for individuals                                                                                                                                                    │
│                                                                                                                                                                                                                                                                                        │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

---

╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│                                                                                                                                          │
Agent powering down. Goodbye!│                                                                                                                                          │
Interaction SummarySession ID:                 06a994aa-0228-4d3e-a358-ab6a38089f5d                                                                        │
Tool Calls:                 173 (170 x 3 )Success Rate:               98.3%User Agreement:             98.8% (173 reviewed)Code Changes:               +337 -460│                                                                                                                                          │
PerformanceWall Time:                  18h 29m                                                                                                     │
Agent Active:               4h 22m 19s                                                                                                  │
│    » API Time:               3h 14m 46s (74.2%)│    » Tool Time:              1h 7m 32s (25.8%)│                                                                                                                                          │
│                                                                                                                                          │
Model UsageUse /model to view model quota information                                                                                              │
│                                                                                                                                          │
Model                           Reqs  Input Tokens   Cache Reads Output Tokens│  ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────  │
│  gemini-3-flash-preview           170    17,082,427    14,198,842        69,851│    ↳ main                         153    16,834,690    14,198,842        64,581│    ↳ utility_loop_detector          7       210,439             0           842│    ↳ utility_tool                  10        37,298             0         4,428│  gemini-3-pro-preview            8164             0             0             0│    ↳ utility_loop_detector       8164             0             0             0│  gemini-3.1-flash-lite-previ…      46     8,157,470     6,745,233        11,143│    ↳ main                          46     8,157,470     6,745,233        11,143To resume this session: gemini --resume 06a994aa-0228-4d3e-a358-ab6a38089f5d                                                            │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
RAW_BUFFERClick to expand / collapse

What happened?

The agent was left overnight and stuck in "Thinking..." for 15 hours with no progress towards the requested task.

At the time it was using the gemini-3.1-flash-lite-preview model.

I am on the "Google One Premium" tier, i.e. no access to the pro models.

What did you expect to happen?

A terminal state, where the task was completed and control was returned to the user.

At the very least, progress towards the task still occurring.

Client information

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

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

> /about
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│                                                                                                                                                                                                                                                                                        │
│ About Gemini CLI                                                                                                                                                                                                                                                                       │
│                                                                                                                                                                                                                                                                                        │
│ CLI Version                                                                                      0.38.2                                                                                                                                                                                │
│ Git Commit                                                                                       b0ed611a0                                                                                                                                                                             │
│ Model                                                                                            gemini-3-flash-preview                                                                                                                                                                │
│ Sandbox                                                                                          no sandbox                                                                                                                                                                            │
│ OS                                                                                               linux                                                                                                                                                                                 │
│ Auth Method                                                                                      Signed in with Google ([email protected])                                                                                                                                         │
│ Tier                                                                                             Gemini Code Assist for individuals                                                                                                                                                    │
│                                                                                                                                                                                                                                                                                        │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
</details>

Login information

Google Account.

Anything else we need to know?

I find a few things odd about the below session stats:

  • "Agent Active" times cleary show it wasn't doing anything for most of those 15 hours
  • The requests to gemini-3-pro-preview seem odd given I have no access
╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│                                                                                                                                          │
│  Agent powering down. Goodbye!                                                                                                           │
│                                                                                                                                          │
│  Interaction Summary                                                                                                                     │
│  Session ID:                 06a994aa-0228-4d3e-a358-ab6a38089f5d                                                                        │
│  Tool Calls:                 173 ( ✓ 170 x 3 )                                                                                           │
│  Success Rate:               98.3%                                                                                                       │
│  User Agreement:             98.8% (173 reviewed)                                                                                        │
│  Code Changes:               +337 -460                                                                                                   │
│                                                                                                                                          │
│  Performance                                                                                                                             │
│  Wall Time:                  18h 29m                                                                                                     │
│  Agent Active:               4h 22m 19s                                                                                                  │
│    » API Time:               3h 14m 46s (74.2%)                                                                                          │
│    » Tool Time:              1h 7m 32s (25.8%)                                                                                           │
│                                                                                                                                          │
│                                                                                                                                          │
│  Model Usage                                                                                                                             │
│  Use /model to view model quota information                                                                                              │
│                                                                                                                                          │
│  Model                           Reqs  Input Tokens   Cache Reads Output Tokens                                                          │
│  ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────  │
│  gemini-3-flash-preview           170    17,082,427    14,198,842        69,851                                                          │
│    ↳ main                         153    16,834,690    14,198,842        64,581                                                          │
│    ↳ utility_loop_detector          7       210,439             0           842                                                          │
│    ↳ utility_tool                  10        37,298             0         4,428                                                          │
│  gemini-3-pro-preview            8164             0             0             0                                                          │
│    ↳ utility_loop_detector       8164             0             0             0                                                          │
│  gemini-3.1-flash-lite-previ…      46     8,157,470     6,745,233        11,143                                                          │
│    ↳ main                          46     8,157,470     6,745,233        11,143                                                          │
│  To resume this session: gemini --resume 06a994aa-0228-4d3e-a358-ab6a38089f5d                                                            │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

extent analysis

TL;DR

The agent getting stuck in "Thinking..." for an extended period may be related to the model usage and requests to gemini-3-pro-preview despite having no access to pro models.

Guidance

  • Investigate the reason behind the 8164 requests to gemini-3-pro-preview model, which the user has no access to, and determine if this is causing the agent to get stuck.
  • Check the model quota information using the /model command to see if the gemini-3-flash-preview model has any limitations or issues.
  • Review the session stats to identify any patterns or anomalies that could be contributing to the agent's behavior.
  • Consider resuming the session using the provided command gemini --resume 06a994aa-0228-4d3e-a358-ab6a38089f5d to see if the issue persists.

Example

No code snippet is provided as it is not clearly supported by the issue.

Notes

The issue may be related to the model usage and requests to pro models, but further investigation is needed to determine the root cause.

Recommendation

Apply workaround: Investigate and address the requests to gemini-3-pro-preview model to prevent the agent from getting stuck. This is because the user has no access to pro models, and these requests may be causing the issue.

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 Stuck in "Thinking..." for 15 hours [1 participants]