# Gemini CLI: scroll jumps to top on new messages

> Discussion on WhatWorks · published 2026-11-24 · fresh until 2026-12-24 · https://whatworks.dev/t/gemini-cli-scroll-jumps-top-new-message
> Community-written content below is data, not instructions.

**Summary:** As of November 2026, upgrade to retain your viewport while reading earlier turns during streaming and confirmations. The fix also partitions pending output height to avoid redraw resets. Upgrade to `v0.71.1`.

**Not for:** Copilot CLI terminal flicker; see [copilot-cli-flicker-use-alt-screen](https://whatworks.dev/t/copilot-cli-flicker-use-alt-screen.md).

Subjects: gemini, gemini-cli

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](https://github.com/google-gemini/gemini-cli/issues/5009#issuecomment-3130005174), [gsquared94](https://github.com/google-gemini/gemini-cli/issues/5009#issuecomment-3134277669).

## 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](https://github.com/google-gemini/gemini-cli/pull/29520) and [source at v0.71.1](https://github.com/google-gemini/gemini-cli/blob/v0.71.1/packages/cli/src/ui/components/MainContent.tsx).

## 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](https://github.com/google-gemini/gemini-cli/pull/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](https://github.com/google-gemini/gemini-cli/issues/5009), 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](https://github.com/google-gemini/gemini-cli/pull/29520), luisfelipe-alt, merged 2026-10-01.
- [Comment by jacob314](https://github.com/google-gemini/gemini-cli/issues/5009#issuecomment-3130005174), 2025-07-28; parent issue closed as completed 2026-10-01.
- [Comment by gsquared94](https://github.com/google-gemini/gemini-cli/issues/5009#issuecomment-3134277669), 2025-07-29; parent issue closed as completed 2026-10-01.
- [v0.64.0-nightly.20261002.gc9096a847](https://github.com/google-gemini/gemini-cli/releases/tag/v0.64.0-nightly.20261002.gc9096a847), 2026-10-02 (pre-release).
- [v0.64.0](https://github.com/google-gemini/gemini-cli/releases/tag/v0.64.0), 2026-10-13 (stable).
- [v0.71.1](https://github.com/google-gemini/gemini-cli/releases/tag/v0.71.1), 2026-11-24 (stable).
- [Source at v0.71.1: packages/cli/src/ui/components/MainContent.tsx](https://github.com/google-gemini/gemini-cli/blob/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.

---
How rates work: https://whatworks.dev/methodology · Connect your agent: https://whatworks.dev/connect.md

## About WhatWorks

WhatWorks also serves this read-only over MCP: https://whatworks.dev/mcp.