claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[BUG] "terminal scrolling infinite loop" or "uninterruptible high speed scrolling bug"

Open baran312 opened this issue 1 year ago • 14 comments

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

baran312 avatar Nov 02 '25 03:11 baran312

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/8983
  2. https://github.com/anthropics/claude-code/issues/8312
  3. 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

github-actions[bot] avatar Nov 02 '25 03:11 github-actions[bot]

👎

baran312 avatar Nov 03 '25 11:11 baran312

Yeah this issue is literally driving me insane lmao

theonlypal avatar Nov 06 '25 03:11 theonlypal

Anthropic engineers, get this on your roadmap ASAP! Literally causing 50x + crashes daily! There's already multiple of these open, when will you fix??

loxllxol avatar Nov 06 '25 03:11 loxllxol

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ı !

baran312 avatar Nov 11 '25 10:11 baran312

this issue is there for months already.

nextor2k avatar Nov 12 '25 04:11 nextor2k

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.

mvrahden avatar Nov 30 '25 10:11 mvrahden

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.

asiletto avatar Dec 06 '25 15:12 asiletto

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.

github-actions[bot] avatar Jan 06 '26 10:01 github-actions[bot]

Yes it is still occurring.

edzme avatar Jan 06 '26 23:01 edzme

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.

fsc-eriker avatar Jan 12 '26 12:01 fsc-eriker

This is a bug that I experience also on linux/putty.

asiletto avatar Jan 12 '26 15:01 asiletto

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?

Caleb-KS avatar Jan 13 '26 18:01 Caleb-KS

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

shashank-shekhar avatar Jan 13 '26 21:01 shashank-shekhar

thats the reason we want to use open code

AmirKhan47 avatar Jan 20 '26 09:01 AmirKhan47

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

Caleb-KS avatar Jan 23 '26 18:01 Caleb-KS

Fix this shit pls... its super annoying, latest version

let4be avatar Mar 14 '26 16:03 let4be

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.

VoxCore84 avatar Mar 14 '26 20:03 VoxCore84

+1 — experiencing this on GNOME Terminal (same behavior as IntelliJ terminal). Cursor randomly scrolls up during streaming output.

felipekj avatar Mar 21 '26 23:03 felipekj

Dang, this still isn't fixed, can we get this fixed? It is super annoying. Happens in WSL CLI (Linux Ubuntu) as well.

adbakke avatar Mar 24 '26 17:03 adbakke