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
- Open a repo with duplicate names (many index.tsx,many components
folders). - Explorer right-click a nested file Add File to Cursor Chat.
- Ask the agent for the full path of the attached file. It only sees index.tsx.
- Clear the mention. Drag the same file from Explorer into the chat input.
- Ask again. The agent sees the full path.
- 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