Skip to content

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

@tomihiroueda

Description

@tomihiroueda

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:idebugSomething isn't workingplatform:macosIssue specifically occurs on macOSplatform:vscodeIssue specifically occurs in VS CodestaleIssue is inactive

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions