I’m not sure if this is a bug or by design. But I use this structure:
.cursor/rules/personal
with .mdc rules under that.
so imagine I have
.cursor/rules/personal/impl-plan.mdc
Then when I start a new chat with that file, the context shows impl-plan.mdc, but in fact it thinks it’s under .cursor/rules which would be an empty file. Then I asked the chat about it:
My prompt:
Every time I drag .cursor/rules/personal/impl-plan.mdc into the chat window, it creates a reference to a file only under .cursor/rules
Cursor reply:
I see the issue. When you drag the file .cursor/rules/personal/impl-plan.mdc into the chat window, Cursor is incorrectly truncating the path to just show it as being under .cursor/rules without including the “personal” subdirectory. This appears to be a bug in how Cursor handles file references from subdirectories within the rules folder.
It’s very annoying that i have to explicitly include the relative reference inside the chat window and can’t use context.