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
- Sydney Codex Community Buildathon set for Nov 14 with Cerebras-backed ultrafast compute track — paw_lean · 2026-11-11
- shadcn's improve hits 10k stars: let top models plan, cheap models execute code fixes — shadcn · 2026-11-11
- OpenAI open-sources Codex Security CLI and SDK for AI-driven vulnerability scanning and fixing — openai · 2026-11-11
- Claude Opus 5.5 runs an architecture search and finds AttnRes-Canon, a new top Transformer design — SonglinYang4 · 2026-11-11
- 5 research habits worth knowing: read papers backwards, reproduce first, wire coding agents via MCP — cneuralnetwork · 2026-11-11
- 'Adam can now do CAE': AI agent showcase in engineering simulation draws buzz — burhop · 2026-11-11