Cursor agent incorrectly edits Cursor .mdc rules

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Cursor agent always removes Cursor rules headers in any edit operation (for all edits not related to this section, but rules content). At least on model auto

---
description: Code standards for maintaining consistency and following user preferences
globs: ["**/*.ts", "**/*.js", "**/*.tsx", "**/*.jsx"]
alwaysApply: true
---

Steps to Reproduce

Ask in the Cursor Agent chat to edit one of your rules. It will end up with a file where this header is stripped.

Expected Behavior

Unrelated edits shouldn’t touch this header area

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.5.4
VSCode Version: 1.99.3
Commit: f48f0974d52c41214775efcb96bbb5d7acd581c0
Date: 2025-08-22T20:11:36.742Z
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.5.0

(but applied to all versions for a long time)

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, thanks for the report. I couldn’t reproduce it. Could you try updating to version 1.5.7, and if the issue persists, please record a short video of this behavior? Also, could you share the request ID? First, you’ll need to disable privacy mode.

Can confirm. Same issue. Asking it to put it back works (and burns a request). But then the next edit and it’s gone again. Rinse and repeat.

If I remember correctly, someone replied to me in a different thread that it was fixed in 1.5.5. I can confirm it is fixed.

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