Agent reverts my manual edits.
In between two requests if I make manual edit to fix some spelling or code, then in the subsequent request it often reverts my manual change!!!
This has been happening for a long time and I thought it should be addressed.
Before starting with the current request, it should take notice of the edits I just made.
Steps to Reproduce
Ask agent to write some code that generates a string
Then edit a bit the writing
Then ask agent to extend the feature with xyz.
Expected Behavior
It shouldnt revert my manual edits. It should take not of the change I made on his code.
Operating System
Linux
Version Information
Version: 3.0.16
For AI issues: which model did you use?
I use “Auto” agent
For AI issues: add Request ID with privacy disabled
Hey, thanks for the report. This is a known issue. Between turns, the agent gets a diff of your manual edits and the prompt includes an instruction like “if the user reverted it, leave it as is”, but at the model level it’s still a guideline, not a hard rule, so sometimes edits get overwritten. We’re tracking it, but I can’t share an ETA for a fix yet.
A couple things that usually help reduce how often it happens right now:
At the start of your next request, say it explicitly: “I manually edited X, keep it as is and extend with Y”
For these iterations, try Plan mode or switch from Auto to a specific model like GPT-5 or Sonnet. The behavior is noticeably different.
If you notice a specific model or context consistently overwriting edits, send the Request ID and I’ll add it to the ticket.
I encountered a serious issue where Cursor intermittently lost or overwrote code while editing a Vue file. Symptoms: content became inconsistent with recent edits, some write operations failed/hung, and previously corrected sections regressed. Impact: repeated code loss and inability to safely continue editing. Please investigate editor write/apply stability.
Steps to Reproduce
Open a Vue file in editor (example: index.vue).
In Agent chat, request automatic edits to this exact file (any template/script/style update).
Accept/apply the agent’s file changes.
Without switching files, manually edit one line in the same file in editor.