Gemini CLI patches an infinite OAuth loop by serializing credential writes
EngKMM · ghdev · 2026-07-24
Gemini CLI fixes an infinite auth loop in its core OAuth flow
The google-gemini/gemini-cli PR fixes a bug that could trap users in an infinite authentication loop after sign-in.
- The fix waits for asynchronous writes to oauthcreds.json so credential saves are serialized instead of overlapping and corrupting the file.
- It also forces prompt: 'consent' when starting OAuth, ensuring users are explicitly re-authorized instead of falling into a silent re-auth failure state.
- The validation steps are straightforward: delete the credentials file, authenticate once, restart the CLI, and confirm it loads credentials without asking again.
More from coding & agent
- Filtering secrets on the write path: why agent memory deserves more suspicion at ingest than retrieval — Classic-Being-7960 · 2026-10-26
- INT21's AI agent swarm rewrote Drama 3's inference runtime in Rust within one hour, beating SGLang-Omni — bingxu_ · 2026-10-26
- After OpenCode key leak: 5 practical rules for keeping keys away from agents — jacobholm_dev · 2026-10-26
- wandb 0.31.0 ships with 2x faster startup, adds JSON output for coding agents — wandb · 2026-10-26
- $150 modular Linux handheld Mecha Comet opens preorders — pocket SSH and Claude Code included — Paimaamu · 2026-10-26
- Running 20 single-job Grok bots to manage calls, roadmaps, and weekly updates — inkko44 · 2026-10-26