Gemini CLI PR fixes 'cancelled' wording that made models re-run tool calls in 15/15 tests
sha7doww · ghdev · 2026-11-28
A PR to google-gemini/gemini-cli (#30507) fixes a subtle headless-mode bug: when SIGINT stops an in-flight MCP tool call, the recorded result says "Operation Cancelled" — but the CLI sends no cancellation to the server, and the call usually completed anyway. Models reading the resume transcript interpret "cancelled" as "didn't happen" and re-execute the tool.
- The PR rewrites the ToolExecutor cancellation result to state what's actually known: the call was stopped before its result returned, it may have taken effect, and the model should check before running it again
- Tested across 5 open-weight model families (DeepSeek V4 Pro, Kimi K3.1 Pro, GLM-5.3, MiMo V2.6 Flash, MiniMax M3.1 Flash), 3 runs each: the line was re-written in 15/15 runs under the old wording vs 3/15 under the new one
More from coding & agent
- DeepMind engineer's Antigravity intro post goes viral, 50K views and 1K followers — burny_tech · 2026-11-28
- What Obsidian Starter Kit keeps without AI: templates, automation, boards all stay — dSebastien · 2026-11-28
- Managing MCP config drift across Claude Code, Cursor and Gemini CLI — AgentYurt · 2026-11-28
- Reading an agent's reasoning traces reveals surprising self-correction in robot navigation — tom_doerr · 2026-11-28
- Dev builds grokmap MCP server that flags AI-written code nobody understands — Ash-grey_21 · 2026-11-28
- Claude Code writes worse GPU kernels, 42% slower, when told no one will review the code — bremen79 · 2026-11-28