Gemini CLI fixes web_fetch blocking agents for 9 minutes with 120s timeout
HappyYi-z · ghdev · 2026-12-05
PR #30638 in google-gemini/gemini-cli adds an overall 120-second deadline to webfetch. Previously, when the primary model returned retryable errors and fallback hosts timed out, a single call could block the agent for 9 minutes — or loop indefinitely under gemini-2.5-pro.
It follows the AbortController + timer + abortable() pattern established for websearch in #30415:
- The 120s cap (chosen over websearch's 60s) covers retries, multi-URL HTTP fallback, response body reads, fallback summarization, and direct fetch mode
- Wraps isBlockedHost, primary/fallback generateContent, fetchWithTimeout, and readResponseWithLimit in abortable(), cancelling the ReadableStreamDefaultReader on abort so stalled body reads terminate cleanly
- No fallback processing after abort/timeout — errors are rethrown instead
- Returns a cancelled ToolResult immediately when pre-aborted or caller-aborted, and WEBFETCHPROCESSINGERROR on timeout
More from coding & agent
- qiaomu-3d: Open-Source Skill Turns One Sentence Into Watertight 3D Models, No Blender Needed — vista8 · 2026-12-05
- Blender compressed to ~1MB and packaged as a skill that turns text into 3D models — vista8 · 2026-12-05
- Intent-1 launches as the first intent model, cutting assistant token costs by up to 80% — Scobleizer · 2026-12-05
- kuron: open-source tool lets Claude simulate your clickable app before writing code — Other_Train9419 · 2026-12-05
- umbrelOS 2.1 Beta 3 ships shared photo libraries, smart search, and Murmur for AI agents — JosephJacks_ · 2026-12-05
- Monid launches: agents call 4,300+ tools from one balance, pay per call — _jaydeepkarale · 2026-12-05