Gemini CLI Fix: Handle 429 Rate Limit Errors with Retries
ashmita-web · ghdev · 2026-08-19
This PR fixes an issue where the withEvalRetries helper in Gemini CLI silently missed 429 rate-limit and quota-exhaustion errors. Previously, a RESOURCEEXHAUSTED error would propagate as an uncaught failure, blocking PRs and nightly runs unnecessarily instead of being treated as a transient API hiccup.
Key Changes:
- Extended getApiErrorCode() to detect 429 patterns (e.g., RESOURCEEXHAUSTED, Too Many Requests).
- Updated reliability logging to retry or skip rate-limit errors, consistent with existing 500/503 handling.
- Added unit tests covering the "retry-then-skip" behavior on permanent 429s and recovery scenarios.
More from coding & agent
- PAL adds E2EE multi-machine remote memory for Claude Code with BYO S3 — rchardkovacs · 2026-11-30
- Reddit asks: did anyone keep autoresearch agent loops in daily workflows? — Jumpy-Cobbler1020 · 2026-11-30
- Dev ports 4 Obsidian plugins to Antigravity native plugins, all open-sourced on GitHub — vista8 · 2026-11-30
- Tactile sensing remains fragmented across 18 sensors; year-long push for a ROS 2 standards working group finds no takers — kscottz · 2026-11-30
- "Harness to Weights": Folding Agent Scaffolding Into a Base VLM Without Gradients — YangYou1991 · 2026-11-30
- Qiaomu UI Learn ships as Antigravity plugin with 13,500+ real UI references for agent replication — vista8 · 2026-11-30