Webview input frequently loses focus on Remote-SSH, breaking Cmd+V/Cmd+C

Resolved 💬 3 comments Opened Apr 14, 2026 by tomihiroueda Closed May 26, 2026

Environment

  • Client: Cursor (VSCode fork) on macOS
  • Extension: Claude Code for VS Code v2.1.107
  • Mode: Remote-SSH (extension runs on remote Linux VPS)

Symptom

In the Claude Code chat input (webview), Cmd+V (paste) and Cmd+C (copy) frequently stop working. Right-click → Paste still works, which suggests the webview itself can receive paste, but the keyboard shortcut doesn't reach it.

Recovering requires running Developer: Reload Window. The issue recurs multiple times per session.

Reproduction

  1. Open Cursor, connect to a remote host via SSH
  2. Open Claude Code extension chat panel
  3. Use the extension normally for a while
  4. Eventually Cmd+V/Cmd+C in the chat input stops responding

Not tied to a specific action — appears tied to webview focus state drift over time.

Hypothesis

Looks like the webview intermittently fails to register focus with the VSCode host, so native clipboard shortcuts have no target. More frequent under Remote-SSH than local.

Workarounds

  • Right-click → Paste
  • Developer: Reload Window

Request

Investigate whether the chat input webview can more reliably claim focus, or register explicit keybindings for clipboard actions within the webview context.

View original on GitHub ↗

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