Bug Report – Undo All Deletes Files Instead of Reverting Changes (macOS)

:lady_beetle: Bug Report – Undo All Deletes Files Instead of Reverting Changes (macOS)

Product: Cursor Editor
OS: macOS (Apple Silicon / Intel – observed on Mac)
Issue Type: Critical – Data loss risk

:red_exclamation_mark: Problem Summary

When multiple files are edited and I use “Undo All” (or equivalent bulk undo action), instead of reverting the changes inside the files, Cursor sometimes deletes the files completely from the project.

This causes unintended file removal rather than rolling back edits.

:repeat_button: Steps to Reproduce (Observed Behavior)

  1. Open a project in Cursor on macOS

  2. Edit multiple files (add/remove content)

  3. Trigger Undo All (or bulk undo for recent changes)

  4. Instead of reverting content → files get deleted

:white_check_mark: Expected Behavior

All modified files should revert to their previous state (content undo only)

:cross_mark: Actual Behavior

Some or all edited files are removed from the filesystem

:police_car_light: Impact

High risk of accidental data loss during normal undo workflow.

:pushpin: Additional Notes

• Happens specifically with multi-file edits
• More noticeable when working fast across many files
• Standard undo per file works fine — bulk undo triggers the issue


Please investigate — this can cause serious project damage if unnoticed.

Hi there!

We detected that this may be a bug report, so we’ve moved your post to the Bug Reports category.

To help us investigate and fix this faster, could you edit your original post to include the details from the template below?

Bug Report Template - Click to expand

Where does the bug appear (feature/product)?

  • Cursor IDE
  • Cursor CLI
  • Background Agent (GitHub, Slack, Web, Linear)
  • BugBot
  • Somewhere else…

Describe the Bug
A clear and concise description of what the bug is.


Steps to Reproduce
How can you reproduce this bug? We have a much better chance at fixing issues if we can reproduce them!


Expected Behavior
What is meant to happen here that isn’t working correctly?


Screenshots / Screen Recordings
If applicable, attach images or videos (.jpg, .png, .gif, .mp4, .mov)


Operating System

  • Windows 10/11
  • MacOS
  • Linux

Version Information

  • For Cursor IDE: Menu → About Cursor → Copy
  • For Cursor CLI: Run agent about in your terminal
IDE:
Version: 2.xx.x
VSCode Version: 1.105.1
Commit: ......

CLI:
CLI Version 2026.01.17-d239e66

For AI issues: which model did you use?
Model name (e.g., Sonnet 4, Tab…)


For AI issues: add Request ID with privacy disabled
Request ID: f9a7046a-279b-47e5-ab48-6e8dc12daba1
For Background Agent issues, also post the ID: bc-…


Additional Information
Add any other context about the problem here.


Does this stop you from using Cursor?

  • Yes - Cursor is unusable
  • Sometimes - I can sometimes use Cursor
  • No - Cursor works, but with this issue

The more details you provide, the easier it is for us to reproduce and fix the issue. Thanks!

Hey @Foram_Shah,

Thanks for reporting this! This looks a lot like a similar issue reported the other day.

https://forum.cursor.com/t/undo-suggestion-deletes-entire-file-after-accepting-a-created-file-one-small-suggestion/150638/4

I’ve attached your report to the bug report filed internally.

Hey there.

This will be fixed in the next update of 2.5. Appreciate the report!