Scrolling during streaming output jumps to top of session

Status Fixed / completed
Maintainer reply ✓ Yes — ashwin-ant
Activity 10 comments · opened Mar 17, 2026 · closed Apr 19, 2026
💡 Likely answer: A maintainer (ashwin-ant, collaborator) responded on this thread — see the highlighted reply below.

Description

When Claude is streaming output (adding lines to the chat), scrolling with the mouse wheel causes the terminal to jump to the very top of the session instead of scrolling normally.

Steps to reproduce

  1. Start a conversation with some history (enough to scroll)
  2. Ask Claude something that produces a long response
  3. While the response is streaming, touch the scroll wheel on your mouse

Expected behavior

Terminal should scroll relative to current position (up or down depending on scroll direction).

Actual behavior

Terminal jumps to the very beginning of the session (top).

Environment

  • Windows 11 Pro 10.0.26200
  • Started happening after the latest Claude Code update

View original on GitHub ↗

10 Comments

github-actions[bot] · 5 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/34903
  2. https://github.com/anthropics/claude-code/issues/34673
  3. https://github.com/anthropics/claude-code/issues/34503

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

timrutter · 5 months ago

this happens for me. using iTerm on mac, claude version 2.1.79.
it only happens when claude is producing output. I scroll up a bit and as soon as it next outputs something, it jumps to the very start of the text. Means you have to wait till its finished before you can read anything

pohlipit23 · 5 months ago

same for me

slamadingdong · 5 months ago

Same, windows 11 wsl, Version: 2.1.76 . Very annoying, adds lots of friction

gentoosys · 5 months ago

same. please allow to disable line-by-line streaming and restore previous behavior, when CC just gave answer in one-shot

nullbio · 5 months ago
same. please allow to disable line-by-line streaming and restore previous behavior, when CC just gave answer in one-shot

They already did that, it doesn't fix it.

sstraus · 5 months ago

👍 We're experiencing the same issue embedding xterm.js 6.0.0 in a Tauri app. The scroll position jumps when Claude Code redraws its TUI while the user is scrolled up. Confirmed root cause: cursor-up sequences exceeding viewport height + ESC[2J/ESC[3J.

ashwin-ant collaborator · 4 months ago

This was fixed in v2.1.101 — Stopped emitting ERASE_SCROLLBACK (CSI 3J) on full resets in non-fullscreen mode, so terminal scrollback is preserved instead of being wiped (which made the view appear to jump to the top of the session) during streaming. If you're still seeing this in the latest version, please comment with your version and repro and we'll reopen.

github-actions[bot] · 4 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.