File Substitution in Multi-Workspace Mode

Describe the Bug

When two open folders at the same hierarchy level (in my case, both at the folder root) contain files with identical names, dragging a file from the second folder into the chat with the Agent causes the Agent to read the file from the first folder instead.

Steps to Reproduce

  1. Open a chat with the Agent.
  2. Add two root-folders to the workspace, each containing a file with the same relative path and filename.
  3. Drag-and-drop the file from the second folder into the Agent’s chat input area and ask the Agent to read it. (This issue was encountered in Ask mode, but has also been seen in Agent mode.)
  4. ???
  5. PROFIT!

Operating System

Windows 10/11

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.1.6 (user setup)
VSCode Version: 1.96.2
Commit: 5b19bac7a947f54e4caa3eb7e4c5fbf832389850
Date: 2025-06-25T02:20:02.577Z
Electron: 34.5.1
Chromium: 132.0.6834.210
Node.js: 20.19.0
V8: 13.2.152.41-electron.0
OS: Windows_NT x64 10.0.22631

Does this stop you from using Cursor

No - Cursor works, but with this issue