I am using “Project Rules” files, stored as .mdc files in the .cursor/rules
folder.
When I initially set up the rules, I use the controls to set the “Rule Type”
(Always, Auto Attached, Agend Requested, Manual) and the accoring additional field for Description or File Pattern matches.
All fine.
But when I open the resulting .mdc file later, after I for instance switched the git branch, the file is directly shown a “Modified”.
When I then configure it as it initially was set up, I can see in the git diff that the top part of the file is now inconsistant.
That is very annoying when you are about to maintain and improve your Curosr rules from time to time.
Would be great if you could fix this behavior!
Thanks in advance
Steps to reproduce:
-
set up a Cursor Rule correctly and save it
-
switch the git branch to another branch and back again
-
open the (same) Cursor rules .mdc file directly or via Cusror Settings > Rules tab
→ The file is shown as modified, also with the leading context block on top
→ git diff after setting the Rule Type again:
Cursor 0.47.8
Windows 11