Rejecting suggested changes can delete the entire file

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Rejecting suggested changes can cause the entire file to be deleted. This has happened to me more than three times since the last update.

PS: I feel like a paying beta tester for Cursor…

Steps to Reproduce

In my case rejecting suggested changed led to the deleting the entire file.

Operating System

MacOS

Version Information

Version: 2.4.23
VSCode Version: 1.105.1
Commit: 379934e04d2b3290cf7aefa14560f942e4212920
Date: 2026-01-29T21:24:23.350Z
Build Type: Stable
Release Track: Default
Electron: 39.2.7
Chromium: 142.0.7444.235
Node.js: 22.21.1
V8: 14.2.231.21-electron.0
OS: Darwin arm64 25.2.0

For AI issues: which model did you use?

Auto

Does this stop you from using Cursor

No - Cursor works, but with this issue

1 Like

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Not sure what else to say. If I reject changes it will delete the entire file. How do you even accomplish such a thing

Steps to Reproduce

Press undo, nuke your entire file

Expected Behavior

literally anything else

Operating System

Windows 10/11

Version Information

Version: 2.4.23 (user setup)
VSCode Version: 1.105.1
Commit: 379934e04d2b3290cf7aefa14560f942e4212920
Date: 2026-01-29T21:24:23.350Z
Build Type: Stable
Release Track: Default
Electron: 39.2.7
Chromium: 142.0.7444.235
Node.js: 22.21.1
V8: 14.2.231.21-electron.0
OS: Windows_NT x64 10.0.19045

For AI issues: which model did you use?

Opus 4.5

Does this stop you from using Cursor

Yes - Cursor is unusable

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.

For those who get this issue and don’t have a committed version, this might help:

  • Ask AI to restore the file - don’t worry how accurate it is (alternatively, you could try creating an empty file - I haven’t tested this.)
  • Open the Timeline (it’s on the bottom left in the Explorer view)
  • Select the last correct edit

There’s a good chance you’ll be able to recover your work.

@deanrie when is this bug going to be solved??
Cursor keeps deleting files on the rejection. :face_with_symbols_on_mouth:

Hey, before sharing an update, can you answer the questions above? We really need this info to understand the root cause:

  1. Was the file created by the agent, or did it already exist?
  2. What exactly did you reject, and what kind of operation was it?
  3. 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.

1 Like

I was able to reproduce this bug.

  1. I reproduced it with the file which was created by the agent, but I think some deleted by the agent files were not created by it (not 100% sure)
  2. I asked to modify a file and then I rejected the suggested changes
  3. 009a7b79-8e85-4ab9-bf70-87fe8d0c2c0a

I asked the agent to create a file and accepted it. Then I asked to modify it and rejected the suggested changes. The agent removed the file.

1 Like

Enjoy…

1 Like

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

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..

Expected Behavior

Don’t delete my file

Operating System

MacOS

Version Information

Version: 2.4.27
VSCode Version: 1.105.1
Commit: 4f2b772756b8f609e1354b3063de282ccbe7a690
Date: 2026-01-31T21:24:58.143Z
Build Type: Stable
Release Track: Default
Electron: 39.2.7
Chromium: 142.0.7444.235
Node.js: 22.21.1
V8: 14.2.231.21-electron.0
OS: Darwin arm64 25.2.0

For AI issues: which model did you use?

Auto

Does this stop you from using Cursor

Yes - Cursor is unusable

@deanrie

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…

Hey, I can see you’re frustrated.

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.

I’ll let you know when there are updates.

To me this is a critical bug and it must be solved in the next upcoming update.

1 Like

It removes existing files as well.

1 Like

Sorry, forgot I made this thread. It just keeps happening so here I am again

I will try to come more often. video attached

872666c3-a7d1-4d0d-a4c1-29ecb6a8a402