I confirm this pattern, happens every time, easy to reproduce!
Just this afternoon I’ve had to experience this situation multiple time which was very scary at first since I thought I had lost my code!!! I was able to recover it from the wastebasket.
Surprised to see this is still not patched. Specifically in the case of large refactors where you don’t want to commit broken / half-working states. Echoing another user, I also have learned to create “checkpoints”.
Cursor is great in ways where I can hack fast and minimize opportunity cost of trying several approaches in a short amount of time, especially when prototyping. But this limitation is unintuitive, destructive, and adds negative productivity.
It’s a critical oversight that rejecting a change can lead to file deletion when the change was not creation of the same file. It doesn’t even merit an argument. I am extremely curious how this bug made its way past devs and QA.
This issue needs immediate attention. The sudden, unwanted file deletions when undoing ai suggestions are beyond frustrating and is a critical flaw that makes using Cursor Pro unsustainable.
This is a critical problem that must be resolved urgently.
+1
Just got this critical issue again and hardly to get back the new file. That’s almost a daily routine.
Reaaaaalllly need to fix this asap.
Thanks!!!
I don’t know what happened, but all of the files in my directory just disappeared. I’ve never seen anything like this before! I found this thread and I’m worried Cursor’s bug just nuked my whole project. I’ve got a git backup but I was mid-stream making changes and just lost all of it?
Yeah this is actually crazy. I use the chat to create files, and I’ve done a lot of changes and accepted several generations. But suddenly I get a generation that I want to reject, and when I reject the change the entire file is deleted.
This even happens sometimes when using the Undo command…
This is really crazy to be honest, I’m surprised!
Our team are all on Pro, but will probably be keeping an eye out for alternatives as this is highly frustrating.
+1. I used Cursor to create a file. Later, i went back and used Cmd+K to modify a function, rejected the change, and it deleted the entire file without warning. I cannot use an IDE that deletes files when that is not what I’m expecting.
I’m having the same problem as well and it’s very annoying. It was a new file that I spent hours to make it work. And it just gone. Fortunatelly I didn’t save the project and it was React code. I restored file using DevTools Sources tab…
This must absolutely be the top priority for the development of cursor. It is not acceptable for software to delete entire data if changes are rejected.
The data is always and 100% deleted if you proceed in this way:
C’mon Cursor team, what the heck is going on? Push the fix already. Or at least acknowledge this thread with an update. Please stop ignoring your paying users.