waveterm icon indicating copy to clipboard operation
waveterm copied to clipboard

[Bug]: Terminal scrolls to top after Claude output

Open benjlcox opened this issue 2 months ago • 2 comments

Current Behavior

When using Claude and arbitrary points, but always when Claude asks for input, the Wave terminal will scroll all the way to the top

Expected Behavior

Don't scroll to the top :)

Steps To Reproduce

  1. Use wave
  2. Run Claude
  3. Ask claude to do something

Wave Version

0.11.6

Platform

macOS

OS Version/Distribution

Tahoe 26.0

Architecture

arm64

Anything else?

No response

Questionnaire

  • [ ] I'm interested in fixing this myself but don't know where to start
  • [ ] I would like to fix and I have a solution
  • [ ] I don't have time to fix this right now, but maybe later

benjlcox avatar Oct 02 '25 14:10 benjlcox

Sorry about this, that sounds super frustrating!

I've tested Claude Code in Wave and I don't get scrolled to the top (seems to work fine) -- also on MacOS. What shell are you using (bash, zsh)? I'm trying to think of anything that could cause this but coming up pretty blank. Is it happening on every user-input prompt or just sometimes? I just ran through a couple of sessions in a couple different repos and wasn't able to repro the issue.

I'll dig around a bit more and see if there is any xterm.js issues or places where we might inadvertently call a "scroll to top" for that container.


This won't fix your issue, but we did add a new setting term:shiftenternewline that you can set to true which allows you to use Shift+Enter in Claude Code to get newlines instead of having Shift+Enter submit.

sawka avatar Oct 10 '25 17:10 sawka

Hm, that's interesting. I'm using zsh. I'll try and see if I can dig into what might be unique (broken) about my setup

benjlcox avatar Oct 23 '25 14:10 benjlcox

I'm using zsh and I've encountered the same issue

ZhuYizhou2333 avatar Nov 24 '25 01:11 ZhuYizhou2333

Additional Feedback from User:

Current Workaround (macOS):

  • Control+Down Arrow jumps to bottom of terminal
  • Control+Up Arrow jumps to top (Note: It's Control, not Command, even on Mac)

Feature Request: Would be great to have a UI button to jump to bottom (similar to Docker Desktop terminal). Having to use keyboard shortcuts or scroll manually is frustrating, especially when Claude outputs a lot of text and the terminal auto-scrolls to the top.

This would significantly improve the UX for Claude Code users in Wave Terminal.

mawazawa avatar Nov 29 '25 00:11 mawazawa

Hello! I can tell you I have the same issue on Mac using Claude Code and Wave.

Wave Client Version 0.12.5 (202511250205)

Ctrl + UP / Down doesn't work on my configuration (French Keyboard) I'm using Option + Up / Down -> Kind of working

Best regards, JR

jrlprost avatar Nov 29 '25 14:11 jrlprost

When I paste lengthy content into a dialog and press submit, the terminal scrolls to the top, exhibiting the same behavior. In addition, I've noticed that when I hit PageDown and then any key, the terminal will scroll to the top again.

zcf0508 avatar Dec 10 '25 02:12 zcf0508

windows环境,远程登陆到linux主机,运行claudecode,面临同样的问题。

daijpeng avatar Dec 11 '25 08:12 daijpeng