Copying/pasting file/folder names in chat does not work as expected

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

I often find myself copying messages I’ve put into chat context so that I can re-execute them (i.e. to paste them into a new chat with a different agent, or to repeat myself in the same chat). However, copying file and folder references (the little file/folder chips) that were added to the chat context does not work as expected. Specifically:

  • If I copy a message that has a file reference, re-pasting that message causes Cursor to “guess” which file I’m referring to, which I think means just finding the most recently touched file with that name. In many codebases, that will often lead to the wrong file being referenced (for example my codebase which works with foo entities might have plenty of files named foo.js i.e. models/foo.js, db/foo.js, api/foo.js, service/foo.js).
  • If I copy a message that has a folder reference, re-pasting that message causes the folder reference to disappear entirely. There’s just a gap in my message where I had put the folder name.

Steps to Reproduce

  • Use a codebase with at least two files of the same name (in different directories)
  • Type a message into chat, and include file and folder references in that message
  • Copy that message and try to paste it as another chat message
  • Observe the two bugs described above

Expected Behavior

  • Copying a message with file and folder references and re-pasting it adds the exact same files and folders to context

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.6.45
VSCode Version: 1.99.3
Commit: 3ccce8f55d8cca49f6d28b491a844c699b8719a0
Date: 2025-09-22T18:22:38.013Z
Electron: 34.5.8
Chromium: 132.0.6834.210
Node.js: 20.19.1
V8: 13.2.152.41-electron.0
OS: Darwin arm64 24.6.0

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, yeah, unfortunately this doesn’t work yet. I’d recommend creating it as a feature request so we can consider it in the future. Feature Requests

Thanks; submitted one at Copying/pasting file/folder names in chat should work as expected

1 Like

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.