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.
More from coding & agent
- KAIST's WikiTrace: evidence-linked memory fixes agent "memory-induced degradation" — dair_ai · 2026-11-11
- Why inference speed will be AI products' biggest competitive edge in 1–2 years — itsOmSarraf_ · 2026-11-11
- What happened when I moved vector retrieval into Snowflake SQL instead of orchestrating RAG outside — dima806_dima · 2026-11-11
- OpenAI engineer runs Codex for 26 days straight hunting Atlantis, spawning "vibe archaeology" — Polymarket · 2026-11-11
- He replaced a $5,000/month ghostwriter with 11 Claude Skills and earned $47,000 from one post — aryanXmahajan · 2026-11-11
- Refero Styles ships 2,000+ DESIGN.md files to give Claude Code real design taste — bbssppllvv · 2026-11-11