Auto-scroll to bottom on new content prevents reading earlier output

Status Fixed / completed
Maintainer reply None cached
Activity 4 comments · opened Mar 15, 2026 · closed Mar 15, 2026

Problem

When Claude Code outputs long content (e.g. rendering a full article, showing search results), the terminal auto-scrolls to the bottom on every new chunk of content. This makes it impossible to read earlier parts of the output while new content is still being generated or while the agent is working.

Reproduction

  1. Ask Claude to render a long piece of text (e.g. a full markdown article, 100+ lines)
  2. While output is appearing, scroll up to read the beginning
  3. The view snaps back to the bottom on the next update

Expected behavior

If the user has manually scrolled up, the view should stay where they scrolled to — not fight them by jumping back to the bottom. Auto-scroll should only apply when the user is already at the bottom (i.e. following the output).

This is a standard pattern in terminal emulators, chat apps, and log viewers: auto-scroll only when the user hasn't manually scrolled away.

Impact

Forces workarounds like copying to clipboard and reading in an external editor, which breaks the flow of reviewing content inline.

Environment

  • macOS (Terminal / iTerm2)
  • Claude Code (latest as of March 2026)

View original on GitHub ↗

4 Comments

avocade · 7 months ago

Closing as duplicate of #25042 and #34354 — same auto-scroll behavior. Adding a +1 there instead.

github-actions[bot] · 7 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/33367
  2. https://github.com/anthropics/claude-code/issues/34400
  3. https://github.com/anthropics/claude-code/issues/34673

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

synergy49 · 7 months ago

Lit is impossible to work properly with claude code and this bug right now. This is a must and a game changer guys.

github-actions[bot] · 6 months ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.