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.

Original post →

More from coding & agent

coding & agent channel →