Gemini CLI PR fixes OAuth cache poisoning: rejected init promises now evicted
adityajai119 · ghdev · 2026-11-14
A community PR (#30296) to google-gemini/gemini-cli fixes a cache defect in getOauthClient(): when initOauthClient() failed (authorization timeout, consent cancellation, or transient network errors), the rejected promise stayed in oauthClientPromises forever, so every later call for that authType rethrew the stale error until process restart.
The fix attaches a .catch() that evicts the entry only if the cache still points to that rejected promise—guarding against a late rejection evicting a newer client after clearOauthClientCache()—then rethrows. It closes issue #29052 and includes unit test, build, lint, and bundle smoke validation steps.
More from coding & agent
- Solo dev builds real-time conference translation platform for 70 languages with an agentic harness — evisoft · 2026-11-14
- Open-source Blender add-on runs NVIDIA Kimodo, ARDY and MotionBricks locally for AI motion generation — bdsqlsz · 2026-11-14
- TestPrune: pruning regression tests to unblock AI-driven autonomous bug fixing — burkov · 2026-11-14
- Context beats model choice: Databricks benchmark shows 91% vs 58% for data agents — CautiousUse8597 · 2026-11-14
- Developer skips localhost entirely: prompts go straight to production with AI agent safeguards — marclou · 2026-11-14
- HeyGen MCP demo: one ChatGPT prompt books tickets and sends an avatar birthday video — toolstelegraph · 2026-11-14