claude-code - 💡(How to fix) Fix Classic TUI renderer scrolls to bottom on focus regain (no setting to disable) [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#57828Fetched 2026-05-11 03:24:18
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Timeline (top)
labeled ×3commented ×1

When using Claude Code's classic (default) terminal renderer, scrolling up to read earlier output and then clicking away from and back to the terminal window snaps the view back to the bottom of the output. The user has to scroll up again to find their place. This makes it hard to reference earlier context while working in another window.

Root Cause

When using Claude Code's classic (default) terminal renderer, scrolling up to read earlier output and then clicking away from and back to the terminal window snaps the view back to the bottom of the output. The user has to scroll up again to find their place. This makes it hard to reference earlier context while working in another window.

Fix Action

Fix / Workaround

Workaround attempted

RAW_BUFFERClick to expand / collapse

Summary

When using Claude Code's classic (default) terminal renderer, scrolling up to read earlier output and then clicking away from and back to the terminal window snaps the view back to the bottom of the output. The user has to scroll up again to find their place. This makes it hard to reference earlier context while working in another window.

Steps to reproduce

  1. Run claude in a terminal (classic / default TUI mode).
  2. After Claude has produced enough output to fill more than one screenful, scroll up using the terminal scrollback so earlier output is visible.
  3. Click on another window to move focus away from the terminal.
  4. Click back on the terminal.

Expected

Scroll position is preserved — the view stays where the user left it.

Actual

The view jumps to the bottom of the output. The user must scroll back up to where they were reading.

Workaround attempted

Setting "autoScrollEnabled": false in ~/.claude/settings.json had no effect. Per the schema description ("Auto-scroll the conversation view to bottom (fullscreen mode only)"), that setting only applies to the fullscreen renderer. There appears to be no equivalent setting for the classic renderer.

Environment

  • Claude Code version: 2.1.138
  • OS: Debian GNU/Linux 12 (bookworm)
  • Terminal emulator: xfce4-terminal
  • TERM: xterm-256color, COLORTERM: truecolor
  • TUI mode: classic / default (not fullscreen)

Note

The behaviour does not occur with other CLI applications in the same terminal emulator, so it appears to originate in Claude Code's classic renderer rather than the terminal.

Suggested fix

Either honour autoScrollEnabled: false in the classic renderer too, or add a separate setting (e.g. preserveScrollOnFocus) so users on the classic renderer have a way to opt out of the snap-to-bottom.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix Classic TUI renderer scrolls to bottom on focus regain (no setting to disable) [1 comments, 2 participants]