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
- Musk amplifies dev's verdict: Grok Bot easier to use than Codex and Claude — elonmusk · 2026-10-15
- Blob0 launches: a macOS file-manager-style desktop client for S3 and Cloudflare R2 — yihui_indie · 2026-10-15
- The 6-Layer AI Engineer Skill Stack for 2026: Vectors to Multi-Agent Ops — mdancho84 · 2026-10-15
- Building a Mechanical Engineering Agent Workflow in ChatGPT: 30-Node Canvas Shows Promise — burhop · 2026-10-15
- Open-source Harness Engineering course hits 19k stars, shows $9 vs $200 gap between failing and working agent setups — thisguyknowsai · 2026-10-15
- A 6-person team shipped healthcare prior-auth AI agents in 3 months — here's the playbook — alex_verem · 2026-10-15