[BUG] workbench.action.increaseViewSize (and other VSCode commands) swallowed by Claude Code webview when panel/auxiliary bar is focused

Resolved 💬 3 comments Opened May 1, 2026 by Brikas Closed Jun 1, 2026

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?

workbench.action.increaseViewSize (and likely other VSCode workbench commands) does not work when the Claude Code panel is focused — whether docked in the panel area or the auxiliary/secondary sidebar. The shortcut is silently swallowed and nothing happens.

The same shortcut works correctly when any other view is focused (e.g. the terminal, Chat, Explorer).

This is part of a broader pattern: the Claude Code extension renders inside a VSCode webview, and that webview intercepts keyboard events before they reach VSCode, so VSCode commands bound to shortcuts fail silently while the Claude panel has focus.

What Should Happen?

Keyboard shortcuts bound to VSCode workbench commands (like workbench.action.increaseViewSize / workbench.action.decreaseViewSize) should be passed through to VSCode when the Claude Code panel is focused, just as they are for all other views.

Steps to Reproduce

  1. Bind workbench.action.increaseViewSize to a keyboard shortcut in keybindings.json
  2. Open the Claude Code panel (panel area or auxiliary/secondary sidebar)
  3. Click inside the Claude Code panel to focus it
  4. Trigger the shortcut
  5. Expected: panel resizes. Actual: nothing happens.

Related / Previously Closed Issues

This is a new report of a known root cause. The following issues all describe the same underlying problem (webview swallowing keyboard events) and were closed due to inactivity — not because they were fixed:

  • #12358 — macOS system shortcuts (Cmd+H, Cmd+M) not working when Claude panel is focused
  • #8177 — keyboard shortcuts broken in VSCode Extension (macOS)
  • #24637 — custom keyboard shortcut (Shift+Alt+uworkbench.action.toggleMaximizedPanel) swallowed by Claude Code webview

Claude Code Version

v2.1.123

Platform

Windows (also reported on macOS in linked issues)

Additional Information

No workaround exists for resizing the Claude panel via keyboard while it is focused. The only escape is to first click focus elsewhere and then trigger the shortcut, which doesn't help for panel-resize actions.

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗