Gemini CLI Fix: Retry Loop Ignores AbortSignal Causing Timeout Failure
chelsealong · ghdev · 2026-08-26
A PR submitted to Google Gemini CLI fixes a timeout control failure in BaseLlmClient.
The Problem:
- The generateContent and generateJson methods in BaseLlmClient accept an abortSignal and pass it to individual API requests, but fail to pass it to the signal option of retryWithBackoff.
- Consequently, a caller-side timeout only aborts the in-flight HTTP request. The retry loop itself remains unbounded, continuing its full exponential backoff schedule (e.g., 5s/10s/20s/30s) regardless of the timeout having fired.
The Fix:
- Properly forwards the abortSignal to retryWithBackoff, ensuring that a timeout can immediately terminate the retry loop.
- This resolves a secondary symptom in Issue #29065: when SessionSummaryService fails due to a misconfiguration (hardcoded model name), it previously stuck in a retry loop for over 65 seconds. Now it fails fast and silently (returning null).
Note: This PR does not fix the root cause of Issue #29065 (the hardcoded model name) but addresses the resulting uncontrolled retry behavior.
More from coding & agent
- DHH cracks Linux deep sleep on Zenbook A16: 0.16W overnight draw — cgarciae88 · 2026-11-30
- Sakana AI open-sources Agentic Scientist, pushing toward self-improving AI researchers — SakanaAILabs · 2026-11-30
- Blogger migrates Ghost blog to self-hosting in hours with Claude — kevinakwok · 2026-11-30
- Business-prose model open-sourced: trained on a single 96GB GPU, all quant formats in one repo — IridiumEagle · 2026-11-30
- Devs say vibe-coding workflow is draining the joy of programming — weskambale · 2026-11-30
- Slipwing: Open-Source Windows MCP Server Lets Agents Drive Chrome and Desktop Apps in the Background — Sudden_Analysis8617 · 2026-11-30