Cursor deleting entire files when I reject one line changes

Hey, thanks for the report.

There’s an identical thread with an active discussion here: Rejecting suggested changes can delete the entire file

Urgent, to protect your data:

  • Commit to Git before you accept 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>
  • Another option is Timeline view (bottom left in Explorer), pick the last good version

Until this is fixed, it’s best to commit to Git more often.