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
- Start a conversation with some history (enough to scroll)
- Ask Claude something that produces a long response
- 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
10 Comments
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
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
same for me
Same, windows 11 wsl, Version: 2.1.76 . Very annoying, adds lots of friction
Still broken as of v2.1.81:
https://github.com/anthropics/claude-code/issues/36582
https://github.com/anthropics/claude-code/issues/35403
https://github.com/anthropics/claude-code/issues/36816
https://github.com/anthropics/claude-code/pull/35683
https://github.com/anthropics/claude-code/issues/33814
https://github.com/anthropics/claude-code/issues/34845
https://github.com/anthropics/claude-code/issues/33367
https://github.com/anthropics/claude-code/issues/34400
https://github.com/anthropics/claude-code/issues/826
https://github.com/anthropics/claude-code/issues/36621
https://github.com/anthropics/claude-code/issues/36128
https://github.com/anthropics/claude-code/issues/35766
https://github.com/anthropics/claude-code/issues/34242
https://github.com/anthropics/claude-code/issues/18299
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.
👍 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.
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.
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.