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
- Agent Memory Should Track Outcomes, Not Just Steps: Adding Success Counters to Workflows — No_Advertising2536 · 2026-08-24
- AI Agents struggle to fail fast, often avoiding error responsibility — mattpocockuk · 2026-08-24
- MCP servers criticized as new grift wrapping scripts in paywalled APIs — jasonkneen · 2026-08-24
- Open-Source 14-Agent System Runs 24/7 Company on Laptop, No Vector DB — thisdudelikesAI · 2026-08-24
- Agno Builder Now Supports Visual Construction of Agents and Code Export — pritisinghhhh · 2026-08-24
- 48h Hackathon Winner: Draw infrastructure, AI audits it — aahiknsv · 2026-08-24