Gemini CLI PR fixes viewport jumps with pin-to-bottom detection and a 40/60 height budget split
luisfelipe-alt · ghdev · 2026-09-27
A P1/P2 pull request against google-gemini/gemini-cli fixes unexpected terminal viewport jumps during streaming, tool confirmation prompts, and unconstrained-height inspection. Three coordinated changes:
- Virtualized list scroll preservation: auto-scroll to bottom fires only when the list is already pinned to the bottom (within 1px), so reviewing earlier turns no longer yanks you down.
- Height budget partitioning: when pending history items and the tool confirmation queue render together in standard buffer mode, the available terminal height is split 40%/60% to keep the dynamic region within the terminal rows and avoid full-screen Ink redraw resets.
- Unconstrained-height stability: auto-collapse now triggers only on explicit Ctrl+O / Ctrl+S / Escape; PageUp/PageDown and arrow keys no longer re-enable constrainHeight or call refreshStatic().
Useful reference for anyone building terminal UIs or studying agent CLI internals.
More from coding & agent
- Diplomacy comes to Multi-Agent Arena: test your social strategy against frontier LLM agents — ycombinator · 2026-09-27
- RowRun launches AI automation engineer that turns weekly processes into agent workflows — paw_lean · 2026-09-27
- Serve models from KitOps ModelKit on HAMi: a registry-native path to SGLang inference — HowDevelop · 2026-09-27
- Google blocks an AI assistant from managing Gmail filters: 'this app is blocked' — altryne · 2026-09-27
- Elicit's new AI-era workflow: 10-minute pre-work chats replace heavy project management — charles_irl · 2026-09-27
- Garry Tan Shares His Favorite Bug-Fixing Workflow: Capy + GStack /autoplan on GPT-6 — garrytan · 2026-09-27