Gemini CLI Fix: Prevents Output Doubling on Invalid Truncation
Eswar809 · ghdev · 2026-08-24
Fixed a bug in Google Gemini CLI where formatTruncatedToolOutput would roughly double the output size when maxChars was 0 or negative. The logic now guards against invalid truncation budgets by returning the original content unchanged, preventing incorrect slice calculations. Unit tests have been updated to cover these edge cases.
More from coding & agent
- Self Labs launches Agent Vault to let AI agents log in and pay with credit cards — EXM7777 · 2026-10-16
- XERJ hits #1 on GitHub Trending, claims 40x token savings vs grep for AI agents — alexcovo_eth · 2026-10-16
- Plane Agents: triggers, not prompts, are what turn chatbots into workflow agents — JosephJacks_ · 2026-10-16
- Claude eng lead Felix Rieseberg publishes tutorial on being more ambitious with AI — danshipper · 2026-10-16
- Qwen Code Desktop v0.25.2 ships managed-agent fixes and MCP config repair — github-actions[bot] · 2026-10-16
- NVIDIA makes 7 AI agent courses free, from agent basics to securing agents — ifioknkem · 2026-10-16