Bug Description:
First, I want to say how much I appreciate the work on Cursor’s rule system—being able to edit rules with the Cursor agent is awesome! This is just a small UI issue I’ve noticed:
When the AI/agent edits or creates the globs: field in a .mdc rule file, the file pattern matches don’t always show up in the “File pattern matches” section of the UI. The patterns are active and working, or thats what cursor tells me at least. but they’re hidden from view unless I manually edit the file.
Steps to Reproduce:
-
Use the Cursor agent (AI) to create or edit a .mdc rule file and set a globs: pattern in the frontmatter.
-
Open the rule in the Cursor UI.
-
Notice that the “File pattern matches” field may not display the glob(s) set by the agent.
-
Manually edit the .mdc file and change the globs: field.
-
Now, the UI displays the updated glob(s) as expected.
Screenshots:
Environment:
-
OS: macOS (Darwin 24.5.0)
-
Cursor version: (please fill in your version, e.g., 0.x.x)
Does this block you from using Cursor?
No, it doesn’t block me—just makes it a bit confusing to know which files a rule is matching if I use the agent to edit rules.
Extra context / Suggestion:
It would be great if the UI always displayed the current globs: from the file’s frontmatter, no matter how they were set (by me or by the AI). Maybe even a “view raw frontmatter” option or a warning if there’s a mismatch.
Thanks again for all your hard work—this is just a small thing that would make rule editing even more seamless!