[BUG] Mouse wheel captured, disabled terminal scrollback when opening Agent / Shell View

Open 💬 0 comments Opened Jul 10, 2026 by paullumen

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?

Environment

  • Claude Code: 2.1.206
  • IDE: VS Code integrated terminal
  • OS: Windows / Shell: PowerShell
  • Mousewheel scrolls through previous input messages instead of scrolling the conversation
  • Terminal scrollbar disappears
  • Page Up/Page Down behave normally.
  • Persists until terminal closed (the mouse reporting escape sequence is never disabled once captured)

What Should Happen?

The mouse wheel should continue scrolling the VS Code terminal's scrollback buffer.

The terminal scrollbar should remain visible (instead of disappearing).

Error Messages/Logs

No specific error messages related to the scroll bug.

Steps to Reproduce

  1. Launch claude in the VS Code integrated terminal.
  2. Do not enter any prompts.
  3. Press ← to open the Agents view. (Or if resuming session with active shells, can use down arrow for shell view)
  4. Return to the session by pressing Enter (also reproducible by left-clicking back into the session).
  5. Attempt to scroll using the mouse wheel.

Claude Model

Not sure / Multiple models

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

Claude Code 2.1.206

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

VS Code integrated terminal

Additional Information

  • Reproduces in a fresh session.
  • Independent of PowerShell history or conversation state.
  • Triggered even before any prompts are sent.
  • Persists until the Claude process exits.

Similar issue, but different reproduction route, found here: https://github.com/anthropics/claude-code/issues/12953

However, the workaround of using /tui [default | fullscreen] does not work in VS code. (Terminal scrollbar doesn't return, mouse scroll remains locked)

View original on GitHub ↗