[BUG] View intermittently jumps to top of terminal when reviewing code edits while scrolled up
Resolved 💬 33 comments Opened Jun 1, 2025 by Cheffromspace Closed Apr 8, 2026
Environment
- Platform (select one):
- [x] Anthropic API
- Claude CLI version: 1.0.6 (Claude Code)
- Operating System: Windows 11, Ubuntu 22.04
- Terminal: Windows Terminal
- Verbose mode: false
Description: When reviewing code changes in Claude Code's edit panel (with accept prompt), if the view is scrolled up from the bottom position, it can automatically jump to the top of the terminal output. This happens without user interaction and appears to be intermittent or delayed.
Steps to Reproduce:
- Use Claude Code to generate/edit code
- When the edit review panel appears with the accept prompt
- Be in a scrolled-up position (not at the very bottom of the output)
- Wait/observe - view may jump to top after a delay or refresh
Expected Behavior: The view should remain at the current scroll position while reviewing changes.
Actual Behavior: The view intermittently jumps to the top of terminal output when not positioned at the very bottom. The jump may occur after a delay, suggesting a possible refresh/redraw issue.
Impact: Disrupts reviewing large diffs as users lose their place, particularly problematic for lengthy code reviews.
33 Comments
Same on Mac with iTerm2 terminal
Same on WezTerm, it's driving me crazy.
Also been having this issue for the past few days
+1 on Windows / WSL2 Ubuntu 22.04.5 LTS
+1 on GPU 5090
Still very much an issue on 1.0.93 using JetBrains Rider on Windows.
+1
I get this same think on Apple M4 Pro 26.1 (25B78) - using terminal Termius Version 9.34.4 (9.34.4)
For me it happens when Claude Code asks a question and then I type escape her push the esc button and clarify. Then it will randomly jump up over some time.
+1 on Windows / WSL2 Ubuntu 22.04.5 LTS
Here too. OSX using bash
I'm also having issues on macOS 26.1, though I'm pretty sure I've seen this in Windows Terminal (I just don't use it as much).
+1 on macOS 26.2 using bash
This is really annoying!!! I'm using Termius (iTerm wrapper) and happens as well
Same, windows WSL2 with ubuntu 22.04, using Tabby, claude code version v2.0.76
This happens for me for basically any long terminal view history, even across chats when using /clear. I'm using terminal in PHPStorm and having the issue there.
my workaround for iTerm2 has been to set
Settings > Advanced > "Prevent CSI 3 J from clearing scrollback history?" -> set to "Yes"
But this results in the terminal output growing very quickly and repeating output since it's no longer self clearing. Definitely not a long term fix but better than having the output autoscroll to top randomly and making CC unusable.
I started having this as well, very annoying.
I'm on latest Windows Terminal, Claude Code running inside Docker Desktop for Windows.
I think I started seeing when I started using
ccstatusline, never had it before... But I can't be sure, I leave it here as a link so we can gather more voices.Still the issue exists! Windows powershell
I started using Code CLI two weeks ago and didnt notice this issue (I dont think it ever occured). It only seems to have started doing this "scroll to top" behavior sometime in the last 2-5 days. I observe this in Windows 10 using the new Windows Terminal.
seems like with context windows getting larger this is getting more annoying
I started using Code CLI two weeks ago and didnt notice this issue (I dont think it ever occured). It only seems to have started doing this "scroll to top" behavior sometime in the last 2-5 days. I observe this in Windows 10 using the new Windows Terminal.: same, it a nightmare, how to fix it???!!!!!
Yeah it has regressed again
Same here. On Mac Sonoma 14.7.4, iTerm2 terminal.
Same thing. Can confirm that i am using status line
I can confirm, same issue, Windows Powershell with WSL
Same issue, using terminus.
Passing TERM=dumb does prevent this, but then it doesn't look as nice.
same issue windows terminal powershell
Still happens here:
<img width="489" height="467" alt="Image" src="https://github.com/user-attachments/assets/4d9e5e27-adaf-4317-9bd0-29881aa43247" />
I had the issue too, but I don't think I've seen it since I started using tmux: I think tmux has its own scrollback, that is independent of the terminal emulator’s buffer and that Claude Code cannot touch.
This happens to me all the time, and it makes Claude Code basically unusable.
macOS Sonoma 15.6.1
iTerm2 3.6.9
zsh 5.9
Claude Code 2.1.81
I've only used Claude Code a few months, but this is new - looks like this was back in June - if this got fixed, it's broken again. macos Tahoe 26.3.1. Iterm2, w/ OMZsh build 3.6.9. Basically unusable is right. Start reading in the middle of what it's changed, bam - straight to the top. I think this started for me... last week? week before as I write this.
seems like a relatively new issue for me too. within last week or 2. have been using CC for many months now.
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.