Gemini CLI now surfaces InvalidStreamError details and suggests /compress
DavidAPierce · ghdev · 2026-07-29
What changed
This PR propagates InvalidStreamError details from Gemini CLI’s core layers up to the UI, so the terminal can show more specific troubleshooting guidance instead of a generic failure.
Key behavior
- The core Turn / geminiChat flow now carries the error type and message in ServerGeminiInvalidStreamEvent payloads.
- The UI hook useGeminiStream checks for NORESPONSETEXT and shows a friendly suggestion to run /compress.
- Other invalid-stream cases fall back to the raw error message.
Validation
The author updated unit tests across core and CLI packages, including event translator, turn logic, non-interactive CLI behavior, and the mid-conversation retry flow when empty text responses occur.
More from coding & agent
- UNC's Wanda: agentic AI for neuroimaging validated on 123,000 brains — PTenigma · 2026-12-02
- Software products need an API/MCP/plugin now: agents will drive acquisition and retention — omooretweets · 2026-12-02
- AI coding tools are self-configuring: install Claude Code and you're done — _jaydeepkarale · 2026-12-02
- Image-to-Blender showdown: Neon crushes Opus with a huge gap — YouJiacheng · 2026-12-02
- Matt Shumer says collaborating with Jacob humbles his AI-orchestration skills ahead of Spawn — mattshumer_ · 2026-12-02
- LiveCraft benchmark: top agents score just 30.3/100 in real-time Minecraft worlds — Chengxing Xie · 2026-12-02