[BUG] Drag & drop attachment (“Drop to attach as context”) does nothing in Cursor Remote-SSH (Windows → Debian 11)

Resolved 💬 6 comments Opened Jan 26, 2026 by Coup-de-Dev Closed Mar 3, 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?

Shift + drag & drop into the Claude Code input works only visually in Cursor Remote-SSH: the UI shows “Drop to attach as context”, but when I drop the file nothing is attached (no file/path appears, no context is added, no error shown). This happens only when connected via Remote-SSH. On a local Windows workspace it works.

What Should Happen?

When I hold Shift and drop a file onto the Claude Code prompt input, the file should be attached as context (or its path should be inserted / an attachment chip should appear), so Claude can read it as part of the conversation context.

Error Messages/Logs

Steps to Reproduce

  1. On Windows 11, open Cursor 2.3.30 (VS Code base 1.105.1).
  2. Connect to a Debian 11 VPS using Remote-SSH.
  3. Open the Claude Code panel/chat (extension 2.1.19).
  4. Hold Shift and drag any file from the Explorer (or an open editor tab) over the Claude Code prompt input.
  5. Confirm the overlay appears: “Drop to attach as context”.
  6. Drop the file.

Claude Model

None

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.19 (Claude Code)

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Cursor

Additional Information

  • This issue happens only in Remote-SSH sessions. The same Shift + drag & drop workflow works in a local (non-SSH) workspace on the same Windows 11 machine.
  • The Claude Code UI correctly detects the drag operation (overlay shows “Drop to attach as context”), but the drop action is ignored (no attachment/path/context is added, no error shown). This suggests the drag-over handler works, but the drop handler fails in Remote-SSH.
  • OpenAI Codex drag & drop works in the same Cursor Remote-SSH environment, so the problem seems specific to Claude Code’s drag/drop handling under Remote-SSH rather than Cursor/Remote-SSH generally.
  • Environment details:
  • Client: Windows 11
  • Remote VPS: Debian 11
  • Cursor 2.3.30 (VS Code base 1.105.1)
  • Claude Code extension 2.1.19
  • Possible cause (hypothesis): Remote workspaces often use remote URI/path formats (e.g. vscode-remote://...) and the drop payload may differ from local sessions, so the extension may not be correctly parsing/accepting dropped items in Remote-SSH.

View original on GitHub ↗

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