Hey, thanks for the report. The team is aware of this bug, it’s logged and being investigated.
Urgent recommendation to protect your data:
Make a Git commit before accepting changes from the agent
If the file was already deleted, try restoring it via Checkpoints (open the chat where the change happened, find the message right before the deletion, click Restore Checkpoint) or via Git: git checkout -- <file_name>
To help us figure out the cause, can you share:
Was the file created by the agent, or did it already exist?
What exact changes did you reject (what operation type)?
The Request ID (top-right of the chat → Copy Request ID)
I know it really sucks to lose work because of this. Until we have a fix, the best way to stay safe is to commit to Git more often.
Hey, before sharing an update, can you answer the questions above? We really need this info to understand the root cause:
Was the file created by the agent, or did it already exist?
What exactly did you reject, and what kind of operation was it?
The Request ID (top right corner of the chat > Copy Request ID)
We’re especially interested in the first point. Based on other reports, the bug shows up more often on files the agent just created and then made small edits to.
Are they aware or not? If your team is already aware of the issue why do you need more information? I’ve encountered it dozens of times (literally) in the past few days.
I tried to catch it on video, but every time I started recording, the bug wouldn’t appear. I will try to gather more information, but frankly speaking, this doesn’t look good from Cursor’s side. It seems like nothing is being done to fix it.
This is a really really brutal one, Cursor keeps completely deleting entire files when I reject single line diff edits that it makes to an existing file. Really brutal if I have some uncommitted changes to that file too, since the only thing I think I can do is just ask it to bring them back and hope it brings them back as what they were..
Steps to Reproduce
Unclear, it doesn’t happen every time, but it happens quite often. I have an existing file, I prompt some small edit to it, then in the green/red diff approval line I reject, and then the tab closes and the file is deleted..
You requested additional information - I provided it. Now I want to ask again: when do you plan to resolve this issue? I have already wasted a lot of time recovering my work and this is ongoing…
About the timeline, honestly I can’t give a specific ETA. The bug is logged, and I added your Request ID and video to the ticket to help with prioritization, but it’s still unclear when it’ll be fixed. The team knows this is a critical bug for many users.