[BUG] "terminal scrolling infinite loop" or "uninterruptible high speed scrolling bug"
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
When the window is minimized, Claude Code starts thinking or generating text, and then the UI suddenly freezes — it starts flickering and behaves like an infinite scroll loop video https://github.com/user-attachments/assets/0f6689e6-1313-47d8-9188-688f1195392c
What Should Happen?
normal
Error Messages/Logs
https://github.com/user-attachments/assets/0f6689e6-1313-47d8-9188-688f1195392c
Steps to Reproduce
pencere küçükltüldüğünde yazmaya düşünmeye başlar ve garip uı kısmı bir anda kitlenir ve titireme ve sonsuz scroll gibi hareketler yapar
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
No response
Claude Code Version
2.0.22 (Claude Code)
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
PowerShell
Additional Information
No response
Found 3 possible duplicate issues:
- https://github.com/anthropics/claude-code/issues/8983
- https://github.com/anthropics/claude-code/issues/8312
- https://github.com/anthropics/claude-code/issues/10619
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
👎
Yeah this issue is literally driving me insane lmao
Anthropic engineers, get this on your roadmap ASAP! Literally causing 50x + crashes daily! There's already multiple of these open, when will you fix??
sorunu çözdüm powershell sürümünü en sone getirin windowsta sorun çözülüyor malesef windows powershell default olarak 2016 dan kalma güncelledim 3 . gündeyim sorun ortadan kalktı !
this issue is there for months already.
this issue is there for months already.
Yeah and no indication that the team is picking this up. There are many duplicates of the same issue, no team reaction.
This bug has a regression with the built-in Simple Browser of the VSCode as well. When the infinite scrolling loop hits off, it will open the Simple Browser and continuously steal the focus of the TUI, when there are localhost URLs in the TUI output.
I'd really like a solution or even just a workaround for this. running on remote linux term on local window cmd is the same. it happens a lot when i use mcp that prints a lot of text.
This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.
Yes it is still occurring.
This might be a duplicate of #769. The OP reported (in Turkish) that they solved their problem by upgrading PowerShell, so in that sense this bug appears to be closable.
This is a bug that I experience also on linux/putty.
This happens on MAC, Windows, and Linux terminals.
Note that I had Claude Code make me another REPL for something else. Guess what. The REPL also has the same scrolling problem. The REPL library used was Ink in nodejs. So maybe a bug of the REPL framework that Claude Code uses?
This is a joke, right? How is it that an issue that is plaguing every user on all platforms is not at the top of your priority list? We are paying a good sum every month to use this tool, and yet the experience is complete garbage. Random scroll to the top, infinite repaint and reposition make work really hard. There are close to at least half a dozen open issues around the same bug. Apologies for tagging some contributors, but I think the community needs some assurance that there is a fix or a new tool on the horizon. @bcherny @ashwin-ant @claude
thats the reason we want to use open code
Yup, it seems it's the REPL framework Ink. Here's some comments posted by the Windows Terminal team about this issue.
https://github.com/microsoft/terminal/issues/19772
Fix this shit pls... its super annoying, latest version
We hit this too and collected working workarounds into a repo: claude-code-scroll-fix
Quick fix (Windows Terminal): Add "snapOnOutput": false to your profiles.defaults in settings.json. Reduces jumping ~60-70%.
Complete fix: Run Claude inside tmux — it completely decouples your scroll position from Claude's cursor repositioning. The repo has a one-click installer that sets up WSL + tmux + a Windows Terminal profile.
Root cause: Claude Code uses CSI escape sequences to rewrite the thinking spinner in-place, and terminals follow the cursor position back up. snapOnOutput only fixes output-triggered scrolling, not cursor repositioning — tmux fixes both.
+1 — experiencing this on GNOME Terminal (same behavior as IntelliJ terminal). Cursor randomly scrolls up during streaming output.
Dang, this still isn't fixed, can we get this fixed? It is super annoying. Happens in WSL CLI (Linux Ubuntu) as well.