Right-click “Add File/Directory to Cursor Chat” strips the path; drag-and-drop keeps it

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Attaching the same file or folder to chat produces different payloads depending on how it is added.

Right-click in Explorer

Add File to Cursor Chat
Add File to New Cursor Chat
Add Directory to Cursor Chat
The chip in the input looks like only the basename (index.tsx, components). Hover in the UI can still show the full path, but the model only receives the name. In a repo with many same-named files/folders, the agent cannot tell which one was attached.

Drag the same file or folder from Explorer into the chat input The attachment keeps the full workspace path (e.g. src/pages/infrastructure/overview/cost/index.tsx). The agent can locate it.

So the client already has the path. Right-click add-to-chat drops it; drag-and-drop does not.

Steps to Reproduce

  1. Open a repo with duplicate names (many index.tsx,many components
    folders).
  2. Explorer right-click a nested file Add File to Cursor Chat.
  3. Ask the agent for the full path of the attached file. It only sees index.tsx.
  4. Clear the mention. Drag the same file from Explorer into the chat input.
  5. Ask again. The agent sees the full path.
  6. Repeat with a folder using Add Directory to Cursor Chat vs drag-and-drop.

Expected Behavior

Right-click add-to-chat should send the same full path as drag-and-drop, matching the chip tooltip.

Operating System

MacOS

Version Information

Version: 3.19.19
VS Code Extension API: 1.128.0
Commit: 6496ea8a068aebfcd21990e70ff522e9abf10c80
Date: 2026-09-08T16:25:33.352Z
Layout: IDE
Build Type: Stable
Release Track: Default
Electron: 42.10.0
Chromium: 148.0.7778.280
Node.js: 24.18.1
V8: 14.8.178.38-electron.0
xterm.js: 6.1.0-beta.291
OS: Darwin arm64 25.6.0

Does this stop you from using Cursor

No - Cursor works, but with this issue

You’re right that right-click “Add to Chat” should carry the same full path drag-and-drop does - this isn’t intended behavior, and nothing on your end.

For now, drag the file or folder into the chat input instead of the right-click menu; that keeps the full path.

Could you share a short screen recording of the two flows side by side (right-click add vs. drag-in, each followed by asking the agent for the file’s full path)? That’ll help us move it along.

Here’s a recording of the issue. You can see at the end that the path is different when I copy it.

@Mage_Shao perfect, that recording shows it exactly, thanks. The right-click add carries only the name while the drag carries the full path. We’re getting this filed so all the add-to-chat entry points send the same full path. Drag-in stays the reliable workaround in the meantime, and I’ll post here when it’s fixed.