gemini-cli - 💡(How to fix) Fix BUG: Client-side 429 routing loop causes runaway token consumption and exhausts billing caps

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 Flaw: When hitting server-side capacity limits, the NumericalClassifierStrategy.route throws a 429 error. Instead of gracefully failing or alerting the user, the client enters an invisible, infinite background exponential-backoff loop.

RAW_BUFFERClick to expand / collapse

What happened?

The Setup: Running gemini-cli with a local Home Assistant MCP server on a paid Tier 1 AI Studio key.

The Flaw: When hitting server-side capacity limits, the NumericalClassifierStrategy.route throws a 429 error. Instead of gracefully failing or alerting the user, the client enters an invisible, infinite background exponential-backoff loop.

The Impact: On every single background retry, it repeatedly compiles and bundles the massive Home Assistant schema into the context window, burning through millions of tokens in minutes until it slams into the billing cap, all while the console interface sits entirely frozen on "Thinking...".

What did you expect to happen?

My requests should have been handled correctly, I was within quota the whole time.

Client information

bug-report-history-1779037725185.json

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

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

> /about
# paste output here
 CLI Version                              0.42.0

</details>

### Login information

I burned through millions of tokens on Google Account and API.

### Anything else we need to know?

This is a real bad reputational issue when you're billing people for a fault in your own tools.

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: Client-side 429 routing loop causes runaway token consumption and exhausts billing caps