Skip to content

[BUG] Mousewheel scrolls through input history instead of chat history #12953

Description

@Sp33dyFoX

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

- Claude Code version: 2.0.57
- Running via SSH in Windows PowerShell
- Mousewheel scrolls through previous input messages instead of scrolling the conversation
- Page Up/Page Down also cycle through input history
- Started after a watch command was run in a Bash tool call
- Persists after restart and reinstall

What Should Happen?

When using the mousewheel or Page Up/Page Down keys, the chat conversation history should scroll up and down, not cycle through previously typed input messages.

Error Messages/Logs

No specific error messages related to the scroll bug. The debug logs just show normal operations.

  Environment:
  - Claude Code version: 2.0.57
  - OS: Windows (PowerShell via SSH to Linux server)
  - Terminal: Windows PowerShell

  Additional context:
  - Issue started after a watch command was executed via the Bash tool
  - Reinstalling Claude Code did not fix the issue
  - Other PowerShell windows work normally
  - No error messages in ~/.claude/debug/ logs related to this issue

Steps to Reproduce

  1. Open Windows PowerShell
  2. SSH into a Linux server
  3. Run claude to start Claude Code
  4. Ask Claude to monitor something using the watch command in a Bash tool call (e.g., watch -n 2
    "some command" run in the background)
  5. The background watch process runs and outputs terminal escape sequences
  6. Kill the watch process
  7. Mousewheel scroll now cycles through input history instead of scrolling chat
  8. Exit Claude Code and restart - issue persists
  9. Reinstall Claude Code (npm i -g @anthropic-ai/claude-code) - issue persists
  10. Close PowerShell window, open new one, SSH again, run claude - issue persists

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

2.0.57

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

PowerShell

Additional Information

Everything was working fine until it wasn't. I asked Claude to assess what led up to the issue and it told me the "watch" command has a bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions