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

[BUG] Can't inspect previously generated content. Key up, key down and mouse scroll are not working.

Open heyagent opened this issue 6 months ago • 18 comments

Environment

  • Platform: Claude Code Max
  • Claude CLI version: 1.0.29 (Claude Code)
  • Operating System: Windows 11 WSL2
  • Terminal: Windows Terminal

Bug Description

When I'm using the key up or key down or when I'm scrolling with the mouse, instead of having the terminal content go up and down, I'm having the events sent to the prompt input. So if I click up, I go up in messages, if I click down, I go down in messages, and if I scroll up or down, it is the same behavior.

Steps to Reproduce

  1. Execute a prompt
  2. Try to scroll up so you can understand and see the generated content.
  3. Moving up or down is not supported and only the prompt keeps getting changed as we have focused only on the message input.

Expected Behavior

I expect to be able to see the entire content as long as it is in history as I scroll up or down.

Actual Behavior

The prompt message keeps getting changed and I can't move the content in the terminal up or down.

Additional Context

Started happening at 1.0.27 version. Sometimes I'm getting IDE disconnected but I'm not sure if it is related to this bug.

heyagent avatar Jun 19 '25 08:06 heyagent

facing the same issue

Same issue. Facing it in Terminal, Terminus, VSCode, and Putty. Claude Code is running on Armbian 25.5.1 Bookworm 6.1.115 minimal.

enragedshoe avatar Jun 27 '25 13:06 enragedshoe

On my mac terminal, I fixed this by going into Terminal -> Settings -> Profiles -> Keyboard -> Uncheck the box at the bottom for "Scroll alternate screen"

rshambaugh avatar Jun 30 '25 01:06 rshambaugh

I'm getting the same thing with some agents. Weird part is it's just for that agent, not convo specific. Even tried opening in a different type of terminal, same thing. Once solution, move the agent's folder to a new location, start a new convo and it is back to normal. very annoying.

VibeCodingWW avatar Aug 09 '25 15:08 VibeCodingWW

I too am experiencing the same issues in Tliex, Gnome Term, tmux, screen

btafoya avatar Sep 18 '25 17:09 btafoya

Same issue on alacritty

claude Version: 2.0.11

robert-e-davidson3 avatar Oct 12 '25 20:10 robert-e-davidson3

Same issue on alacritty

claude ver: 2.0.14

This has seriously interrupted my workflow. For fellow travelers I was able to use the Claude Code for VS Code extension to /resume previous conversations and scroll up and access important info and continue working.

Update next day: its working in alacritty, cannot reproduce bug

joewinke avatar Oct 13 '25 16:10 joewinke

Facing the same. Very frustrating. Only when using it with tmux

Bady-ammar avatar Oct 18 '25 04:10 Bady-ammar

I’m getting the same issue irrespective of the terminal I use if Claude code is running inside a tmux session - which is my main use case

AndyDavo avatar Oct 24 '25 11:10 AndyDavo

A workaround is to ctrl + B then [

This will enable your cursor to scroll the content using the keyboard up/down arrows (or the wheel)

Click q to exit this mode.

Bady-ammar avatar Nov 01 '25 16:11 Bady-ammar

Reproducible on ghostty as well

kartikx avatar Nov 06 '25 17:11 kartikx

happening in vscode claude extension for me now

brendongl avatar Nov 12 '25 01:11 brendongl

It suddenly is happening to me since today also. Before I had no problems. Is it in a pushed update or something?

Using Ghostty.

frankhommers avatar Nov 12 '25 15:11 frankhommers

same here, claude again unusable !

zbynekdrlik avatar Nov 17 '25 11:11 zbynekdrlik

Started happening to me as well this week, even on short conversation. I now have no ability to go back and look at message history.

The only workaround I can find it to open wsl via a PowerShell terminal.

Windows 11 with Windows Terminal - WSL (Ubuntu 22.04)

MarcusRosen avatar Nov 19 '25 23:11 MarcusRosen

In Cursor if I use a claude code remotely via ssh I have this issue as well as of the past few days. If I run claude code in a local terminal shell from Cursor it scrolls normally and I can see the message history.

WORKAROUND: I did find that if I ssh from Terminal.app on my mac and then run it, claude code scrolls normally.

codearranger avatar Nov 24 '25 04:11 codearranger