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

Terminal Scrolling Uncontrollably During Claude Code Interaction

Open JacobGoldenArt opened this issue 5 months ago • 203 comments

Bug Description often when using claude code via cursor or vs code (in their built in terminals) the claude code terminal starts scrolling superfast by itself and often I can't stop it unless I kill the terminal tab and restart claude. Other times it will do something similar when I am trying to type my prompt and I have to repeatedly scroll down to find where I'm typing.

Environment Info

  • Platform: darwin
  • Terminal: cursor
  • Version: 1.0.53
  • Feedback ID:

Errors

[{"error":"Error: Command failed: security find-generic-password -a $USER -w -s \"Claude Code\"\nsecurity: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.\n\n    at genericNodeError (node:internal/errors:984:15)\n    at wrappedFn (node:internal/errors:538:14)\n    at checkExecSyncError (node:child_process:890:11)\n    at execSync (node:child_process:962:15)\n    at AI (file:///Users/daad/.nvm/versions/node/v22.0.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:728:6320)\n    at file:///Users/daad/.nvm/versions/node/v22.0.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:640:16554\n    at Q (file:///Users/daad/.nvm/versions/node/v22.0.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:542:14406)\n    at MF (file:///Users/daad/.nvm/versions/node/v22.0.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:640:14339)\n    at zX (file:///Users/daad/.nvm/versions/node/v22.0.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:640:13205)\n    at MB (file:///Users/daad/.nvm/versions/node/v22.0.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:640:19174)","timestamp":"2025-07-16T18:08:48.001Z"},{"error":"Error: 1: 1 Error: End of central directory record signature not found. Either not a zip file, or file is truncated.\n    at Ef (file:///Applications/Cursor.app/Contents/Resources/app/out/vs/code/node/cliProcessMain.js:52:28755)\n    at file:///Applications/Cursor.app/Contents/Resources/app/out/vs/code/node/cliProcessMain.js:52:30083\n    at /Applications/Cursor.app/Contents/Resources/app/node_modules/yauzl/index.js:40:7\n    at /Applications/Cursor.app/Contents/Resources/app/node_modules/yauzl/index.js:190:5\n    at Immediate.<anonymous> (/Applications/Cursor.app/Contents/Resources/app/node_modules/yauzl/index.js:705:38)\n    at process.processImmediate (node:internal/timers:483:21) {\n  code: 'Extract',\n  name: 'Extract'\n}\nFailed Installing Extensions: file:///Users/daad/.nvm/versions/node/v22.0.0/lib/node_modules/%40anthropic-ai/claude-code/vendor/claude-code.vsix\n(node:77441) [DEP0168] DeprecationWarning: Uncaught N-API callback exception detected, please run node with option --force-node-api-uncaught-exceptions-policy=true to handle those exceptions properly.\n(Use `Cursor --trace-deprecation ...` to show where the warning was created)\n\n    at Lq6 (file:///Users/daad/.nvm/versions/node/v22.0.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1208:5219)\n    at async qq6 (file:///Users/daad/.nvm/versions/node/v22.0.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1208:2582)","timestamp":"2025-07-16T18:08:50.169Z"},{"error":"AxiosError: Request failed with status code 403\n    at Hz (file:///Users/daad/.nvm/versions/node/v22.0.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:544:1070)\n    at Unzip.EA (file:///Users/daad/.nvm/versions/node/v22.0.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:545:9955)\n    at Unzip.emit (node:events:532:35)\n    at Unzip.emit (node:domain:488:12)\n    at endReadableNT (node:internal/streams/readable:1696:12)\n    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)\n    at Pa.request (file:///Users/daad/.nvm/versions/node/v22.0.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:547:2081)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async H04 (file:///Users/daad/.nvm/versions/node/v22.0.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1402:467)\n    at async Promise.all (index 0)\n    at async file:///Users/daad/.nvm/versions/node/v22.0.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1388:6358","timestamp":"2025-07-16T18:12:38.520Z"}]

JacobGoldenArt avatar Jul 16 '25 18:07 JacobGoldenArt

I have this once my conversation gets too long. Very annoying and they seem to have no interest in fixing it anytime soon. Its been happening for a long time

Jakepawl avatar Jul 16 '25 18:07 Jakepawl

I've experienced this as well.

tibbon avatar Jul 16 '25 19:07 tibbon

Also having this even with a very small conversation in Cursor IDE.

Squee451 avatar Jul 18 '25 23:07 Squee451

I've experienced this too

yusufmo1 avatar Jul 19 '25 20:07 yusufmo1

This also happens in the windows version at MS-DOS terminal.

kudzu-forest avatar Jul 20 '25 16:07 kudzu-forest

ditto. i've noticed it happens most when i start typing a slash command.

nerdo avatar Jul 22 '25 03:07 nerdo

another issue is when using claud code plugin in cursor/vscode; when you resize the terminal (at the bottom), the claude code (top righ corner) section seems to go back to the top and start scrolling from top to bottom.

RealmX1 avatar Jul 24 '25 11:07 RealmX1

also encountering this behavior in iterm2 on osx

jpke avatar Jul 24 '25 11:07 jpke

Common Anthropic ... this is happening for months ... FIX IT

jwaes avatar Jul 31 '25 19:07 jwaes

Any news on this? It seems like a pretty common issue and makes it so that you are forced to quit and start a new session in order to stop the crazy scrolling when it starts doing it.

JacobGoldenArt avatar Aug 01 '25 17:08 JacobGoldenArt

Genuinely surprised no one has addressed this?

auroraflux avatar Aug 14 '25 10:08 auroraflux

Genuinely surprised no one has addressed this? pobably it is really hard fix. it definetely has something to do with terminal at least the mechanism of scrolling up or down

Adamcf123 avatar Aug 19 '25 16:08 Adamcf123

super annoying

zachlandes avatar Aug 23 '25 00:08 zachlandes

this needs to be a priority fix, it really is a major issue that breaks flow and can lead to crashes. This bug even made me spend more time with competitors .

misterdojo777 avatar Aug 24 '25 13:08 misterdojo777

This regularly crashes my claude code sessions

zachlandes avatar Aug 26 '25 18:08 zachlandes

I am also impacted by this, and wondering of any workarounds? Some suggest to launch cursor with --disable-gpu, did anyone see a difference with this?

pandaiolo avatar Aug 28 '25 12:08 pandaiolo

Guaranteed to crash VS Code every time if not proactively restarted.

jejanov avatar Sep 05 '25 19:09 jejanov

So, Claude can't fix this?

andre-wstudio avatar Sep 07 '25 21:09 andre-wstudio

Yup, here too. Every keystroke causes the terminal to twitch upward then back down to my text input, causing "flickering" effect while typing. If it continues too long, typing fast can lead to crashing VS Code.

It's a silly problem that seems easy to solve. In diagnosing this, I found that "clear terminal" (context/overflow menu of the terminal toolbar) only clears it temporarily - it's as if Claude Code (the application) is actively redrawing the entire terminal session (and all its history) on each keystroke. That seems crazy and irrational, and doesn't seem like it could be the case - but could it be, really?

In any case, the solution may be to either have it clear the console periodically, or to (... I shudder to think it's this bad), NOT redraw the entire conversation - like, ever - but moreso to just redraw a section of it.

Or maybe this is a bug in VS Code all along - that the terminal is being improperly drawn when it gets too long, and it's VS Code that's redrawing the whole terminal, even if I say "clear terminal" (that'd be a next-level bug, but then again, ... this is Microsoft code quality we're talking about). That makes things even more difficult to diagnose.

FalconFour avatar Sep 07 '25 23:09 FalconFour

Yup, here too. Every keystroke causes the terminal to twitch upward then back down to my text input, causing "flickering" effect while typing. If it continues too long, typing fast can lead to crashing VS Code.

It's a silly problem that seems easy to solve. In diagnosing this, I found that "clear terminal" (context/overflow menu of the terminal toolbar) only clears it temporarily - it's as if Claude Code (the application) is actively redrawing the entire terminal session (and all its history) on each keystroke. That seems crazy and irrational, and doesn't seem like it could be the case - but could it be, really?

In any case, the solution may be to either have it clear the console periodically, or to (... I shudder to think it's this bad), NOT redraw the entire conversation - like, ever - but moreso to just redraw a section of it.

Or maybe this is a bug in VS Code all along - that the terminal is being improperly drawn when it gets too long, and it's VS Code that's redrawing the whole terminal, even if I say "clear terminal" (that'd be a next-level bug, but then again, ... this is Microsoft code quality we're talking about). That makes things even more difficult to diagnose.

I'm not using VS Code, just the terminal inside PyCharm, but that also happens when I use the terminal alone.

andre-wstudio avatar Sep 08 '25 12:09 andre-wstudio

I am now cancelling my subscription to Claude Max because of this. Codex does not have this issue and neither does Gemini-CLI.

I also encourage you all to try OpenCode CLI as well.

auroraflux avatar Sep 08 '25 22:09 auroraflux

I am now cancelling my subscription to Claude Max because of this. Codex does not have this issue and neither does Gemini-CLI.

I also encourage you all to try OpenCode CLI as well.

Can I use my account, or is it only intended for APIs?

andre-wstudio avatar Sep 08 '25 22:09 andre-wstudio

I am now cancelling my subscription to Claude Max because of this. Codex does not have this issue and neither does Gemini-CLI. I also encourage you all to try OpenCode CLI as well.

Can I use my account, or is it only intended for APIs?

OpenCode allows you to use OAuth with Claude so that you can use your Plus/Max subscription instead of an API token, yes!

auroraflux avatar Sep 08 '25 22:09 auroraflux

I am now cancelling my subscription to Claude Max because of this. Codex does not have this issue and neither does Gemini-CLI. I also encourage you all to try OpenCode CLI as well.

Can I use my account, or is it only intended for APIs?

OpenCode allows you to use OAuth with Claude so that you can use your Plus/Max subscription instead of an API token, yes!

Amazing, thanks for the tip! Is this the one? https://github.com/sst/opencode

andre-wstudio avatar Sep 08 '25 22:09 andre-wstudio

I am now cancelling my subscription to Claude Max because of this. Codex does not have this issue and neither does Gemini-CLI. I also encourage you all to try OpenCode CLI as well.

Can I use my account, or is it only intended for APIs?

OpenCode allows you to use OAuth with Claude so that you can use your Plus/Max subscription instead of an API token, yes!

Amazing, thanks for the tip! Is this the one? sst/opencode

You are quite welcome! Yes, that's the one. You'll have to experiment and read the docs, it is not exactly like Claude Code but it is heavily inspired by it in a lot of ways. It supports things like MCP and other stuff just like CC does.

I am still learning to use it myself. However, on principle, I'm still cancelling my Claude Max subscription because I do not feel that Anthropic is paying enough attention to the product itself.

auroraflux avatar Sep 08 '25 22:09 auroraflux

It seriously affects daily use!

eromoe avatar Sep 26 '25 07:09 eromoe

This is not only a usability issue but now a security concern as it makes it incredibly difficult for the user to verify the actions and validate edits / actions. Considering all the latest research on Agent scheming, this needs to be patched.

BEEFF avatar Sep 26 '25 10:09 BEEFF

I’ve stopped using Cursor’s integrated terminal to get around this. You can use other IDE’s or term2 outside of cursor. This resolved the issue for me. The issue seems to be in Cursor only for me. I use iTerm2.

It does seem odd that this wouldn’t be a level 1 priority given that it is Anthropic’s UI/UX.

I reported this issue months ago and it had only gotten worse.

jejanov avatar Sep 29 '25 14:09 jejanov

Can someone promote this bug to top priority. This looped scroll can run to half an hour without stop and block off the work with service. The isue is Blocker, and have huge impact on user experience. Take your claude and ask him to fix this bloody issue it will take 10minutes. What are you waiting?

sensa-ua avatar Sep 30 '25 08:09 sensa-ua

Facts. As paying users this should have been address weeks ago.

AJReade avatar Sep 30 '25 11:09 AJReade