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
- Gemini shown off modding Minecraft to turn players into any Spider-Man — zacharynado · 2026-10-16
- IBM engineer maps 5 levels of AI coding, from manual to a 3-day agent software factory — TejasKumar_ · 2026-10-16
- 10 open-source repos that let your AI agent reverse-engineer apps and games — victor_explore · 2026-10-16
- The new CTO job: agent management and QA loops, 'cable management' instead of coding — HankYeomans · 2026-10-16
- Why company AI agents go stale: adoption needs in-house knowledge, not just better agents — EdenEmarco177 · 2026-10-16
- Open-source MCP lets coding agents search Obsidian's 9,000-plugin directory before reinventing wheels — pitfa19 · 2026-10-16