Massive gemini-cli PR fixes resume-time 400 errors and main-thread JSONL freezes on long sessions
villahernandez-coder · ghdev · 2026-11-07
PR #30186 (size/xl) on google-gemini/gemini-cli fixes two related session stability defects: (1) 400 INVALIDARGUMENT: Requests ending with a model turn are not supported when resuming sessions interrupted during model thinking or tool execution, along with tool-response turn fusion and duplicate pending prompt injection; (2) synchronous full-file .jsonl reads and redundant filesystem/hashing work on the main UI thread during context compression, /rewind, and history sync on long sessions. Key changes include hasNonThoughtContent normalization treating thought-only turns as empty, INTERRUPTEDRESPONSEPLACEHOLDER to preserve role alternation, and persisting synthetic closing model turns so repairs survive failed API requests.
More from coding & agent
- Gemini /teamwork agents caught live: four parallel task logs all running that second — RyanSpunk · 2026-11-13
- Codex CLI 0.168.0 adds model provider picker, side-by-side TUI workspace and animated GIF generation — github-actions[bot] · 2026-11-13
- Free MCP server lets Claude read Altium, Allegro, KiCad and Gerber PCB files directly — woodisruff · 2026-11-13
- a16z Partner Clones Open-Source Game with Fable 5.2 Agent, Which Finds Its Own Horse Animation Asset — FinanceYF5 · 2026-11-13
- OpenAI team shares how it runs and governs fleets of persistent agents internally — romainhuet · 2026-11-13
- Perplexity's Decider scanned 1B tokens across 7,000 agent sessions, found 14 security fixes — denisyarats · 2026-11-13