Feature request for product/service
Cursor IDE
Describe the request
Overview
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 I would want it to. 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
fooentities might have plenty of files namedfoo.jsi.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
Desired Behavior
- Copying a message with file and folder references and re-pasting it adds the exact same files and folders to context
Additional Information
I originally filed this as a bug (Copying/pasting file/folder names in chat does not work as expected) but @deanrie directed me to submit it as a feature request.
Operating System (if it applies)
MacOS