Cursor deletes entire file when changes are rejected

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

It has been reported before, but it did not happen to me until recent update.
Stopping while changing files, and then click ‘Reject’ gets the entire file deleted. Like gone, not only changes, completely erased.

Steps to Reproduce

give a task, let it start changing a file, hit stop, click reject

Expected Behavior

reverting to state prior changing

Operating System

Windows 10/11

Version Information

Version: 2.4.31 (user setup)
VSCode Version: 1.105.1
Commit: 3578107fdf149b00059ddad37048220e41681000
Date: 2026-02-08T07:42:24.999Z
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.26100

For AI issues: which model did you use?

it was left to Auto

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, thanks for the report. This is a known issue and we’re already tracking it. Here’s the main thread with details: Rejecting suggested changes can delete the entire file

Until there’s a fix, here’s what can help protect your data:

  1. Commit to Git before you accept or reject agent changes
  2. If the file is already deleted, restore it via Checkpoints (open the chat for that change, find the message right before the deletion, click Restore Checkpoint) or run git checkout -- <file_name>
  3. Another option is the Timeline view (bottom left in Explorer), pick the last good version

The team is aware.

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.