The agent will fix a bug (found during Agent Review), and then the code is immediately deleted. I can actually see the code change, and then see it almost instantly disappear. It is almost as if it is reloading the file …maybe
Steps to Reproduce
I don’t know, does not seem deterministic. If I close the file it is editing, and ask it to redo the edit, then the edit saves and is not deleted.
Expected Behavior
I would expect the agent to make the change and then it would be there for my review, it would not be deleted.
Operating System
Linux
Current Cursor Version (Menu → About Cursor → Copy)
It happens when the same file is open in both the Agent Review Tab and a regular editor tab. The AI applies changes, but they immediately get reverted.
Workaround:
Close the Agent Review Tab before the agent makes edits
Or close the file in the regular editor if you need to work via the Review Tab
Can you check if this workaround helps? Also, it’d be useful to know if this happens when you click an issue in Agent Review, then use “fix in chat” or normal chat while the Review Tab is still open.