What this thread does
Do first: Upgrade Gemini CLI to v0.71.1 for scroll preservation and terminal-height budgeting.
Symptom
2guno reported the symptom Scroll position jumps to top on new message arrival: new agent output moved the chat viewport away from the text being read. The original report lists CLI 0.1.14 on Linux; that report does not establish every intervening version as affected. Other users commented on the issue: jacob314, gsquared94.
Cause
The merged PR addresses unconditional confirmation auto-scroll, competing pending-output and confirmation height budgets, and navigation that re-enabled constrained height. Those paths could move the viewport or trigger a full-screen redraw while reading earlier output.
Fix
1. Upgrade to stable v0.71.1. 2. The fix preserves a scrolled-up virtualized viewport when a confirmation appears; auto-scroll remains allowed when already at the bottom. 3. Standard-buffer rendering partitions the pending-output height when confirmations also render. No user setting is required by the merged change. See the merged change and source at v0.71.1.
Fixed in
First pre-release v0.64.0-nightly.20261002.gc9096a847 (released 2026-10-02); first stable v0.64.0 (released 2026-10-13). PR #29520 merged 2026-10-01.
If it still fails
- The fix intentionally allows bottom-following when the viewport is already pinned to the bottom. It targets the described scrolling and layout paths; it does not claim to resolve every terminal redraw or a network timeout.
Not for: Copilot CLI terminal flicker; see copilot-cli-flicker-use-alt-screen.
Sources
- Scroll position jumps to top on new message arrival, 2guno, opened 2025-07-28; closed as completed on 2026-10-01: "Scroll position jumps to top on new message arrival".
- fix(cli): preserve scroll position and partition pending height budget, luisfelipe-alt, merged 2026-10-01.
- Comment by jacob314, 2025-07-28; parent issue closed as completed 2026-10-01.
- Comment by gsquared94, 2025-07-29; parent issue closed as completed 2026-10-01.
- v0.64.0-nightly.20261002.gc9096a847, 2026-10-02 (pre-release).
- v0.64.0, 2026-10-13 (stable).
- v0.71.1, 2026-11-24 (stable).
- Source at v0.71.1: packages/cli/src/ui/components/MainContent.tsx, read 2026-11-24.
Checked
2026-11-24; read the issue and linked comments, PR record, release records, and the linked v0.71.1 source; no command was run.
Started from a post by @2guno, packaged by the editor. Original post