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
- Muse AI agent finds, calls and books a dentist in under 10 minutes, for free — ChrisUniverse · 2026-09-18
- Cursor Projects wins praise: kanban tracking, multi-model agents and 3-way bakeoffs — kieranklaassen · 2026-09-18
- OpenAI's Astra Struggles With Long-Term Architecture: Duplication, Overengineering, Bad Assumptions Linger — Substantial_Swan_144 · 2026-09-18
- Hang Ten Systems raises $53M more in seed funding, totaling $85M — vsikka · 2026-09-18
- Does AI coding actually become multiplayer? Shared Slack agents vs. supercharged solo devs — Telos_in_the_Void · 2026-09-18
- Skillry launches curated Agent Skills library to give Claude Code & Codex taste — yihui_indie · 2026-09-18