Gemini CLI PR Fixes Duplicated Tool Response Turns Breaking Session Resume

Pcmhacker-piro · ghdev · 2026-09-25

PR #29490 on google-gemini/gemini-cli fixes a bug where resuming a session with -r replayed tool results twice in client history: synthetic user turns were recorded twice, violating the Gemini API's one-response-per-call requirement and getting the resumed turn rejected. Duplicates were also checkpointed, compounding on every resume, and updateMessagesFromHistory cross-contaminated parallel tool calls. Fix adds pre-scanning, deduplication, and callId-based part filtering, with unit tests.

Original post →

More from coding & agent

coding & agent channel →