Gemini CLI fix stops subagent recovery from faking GOAL success on MAX_TURNS
dylanyunlon · ghdev · 2026-09-17
PR #29367 in google-gemini/gemini-cli fixes a P1 bug where a subagent interrupted at MAXTURNS was reported as success with Termination Reason: GOAL. The recovery path in LocalAgentExecutor unconditionally overwrote terminateReason; the fix preserves the original reason, adds a recovered flag, routes non-GOAL recoveries to SubagentState.ERROR, hardens complete-task with an interruption heuristic, and surfaces "Agent Interrupted" in the UI. 16 files changed (+597/-37), 17 new tests, 332 passing.
More from coding & agent
- Avoiding AI brain rot: Miles Cranmer's lecture on learning with AI — _ScottCondron · 2026-11-02
- /be-ambitious: a Claude skill that stops safe, watered-down outputs — CodeByPoonam · 2026-11-02
- Scrapling web scraping framework tops 92k GitHub stars, ships MCP server for AI workflows — D4Vinci · 2026-11-02
- Vercel open-sources Agent Desktop: reliable computer use via OS accessibility trees, 7.8k stars in a day — vercel-labs · 2026-11-02
- Karpathy's nanochat: the best ChatGPT $100 can buy, near 60k GitHub stars — karpathy · 2026-11-02
- Solo dev shows Water Pro progress: buoyancy, caustics, shoreline waves coming — flngr · 2026-11-02