Updating Cursor during Agent review wiped hundreds of files

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

After working with the Agent on a large change set, the review bar above the chat input showed a huge file count (around 380–393 files) with a Review button. While that review was still open, I updated Cursor. I chose Keep to keep the changes, but after Cursor restarted, many of those files were wiped or emptied — not just “agent edits undone,” the actual file contents were gone (or reduced to stubs). This happened to me twice in similar conditions. I only recovered because Windows had a backup.

Steps to Reproduce

  1. Open a large project in Cursor.
  2. Run an Agent chat that edits a number of files, so the review bar above the chat input shows the number of edited files with a Review button.
  3. While that Agent review bar is still open/pending, update Cursor (or restart Cursor during the update).
  4. When prompted about the changes, choose Keep.
  5. After Cursor restarts, check the files that were listed in that review.

What happened for me: a large number of those files were wiped/emptied after the restart, even though I chose Keep!

Expected Behavior

  • Keep should preserve the files and the accepted Agent changes.
  • If I don’t keep the changes, Cursor should only discard the pending Agent edits and restore the previous versions — it should never delete or blank the original files.
  • Updating or restarting Cursor while a large Agent review is open should be safe. At worst, Cursor should restore the pending review or ask again. It should never wipe project files.

Operating System

Windows 10/11

Version Information

3.16.17 (user setup)

Additional Information

  • Happened twice, both times while a large Agent review was open and I updated Cursor.
  • The UI involved is the Agent review strip above the chat input — the one that shows a large count like “393 Files” and a Review button (not the normal Source Control / git panel). Screenshot attached.
  • Impact is severe: large parts of a real project can disappear. Recovery only worked because Windows File History / backup was available.
  • Please treat “Agent review open + app update/restart” as a critical safety case, especially for large multi-file reviews.

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hi @SomeGOF, thanks for the detailed report. I’m glad Windows File History allowed you to recover them. What you described appears to match a potential issue we’re already tracking involving pending Agent review state being restored during startup. Choosing Keep should preserve the files. Updating or restarting should never blank or replace their contents.

For now:

  • Before updating or restarting, open Review Changes and resolve every pending change with Keep All or Undo All. Wait until the review list and file count are completely clear before restarting.
  • If you restored affected files and Cursor still shows them as pending, first verify that the recovered contents are visible in the editor, then choose Keep for those entries to clear the pending state.
  • Continue using Git or Windows File History as the durable recovery source. You can also check each affected file’s Timeline for a Local History snapshot from immediately before the wipe.

We’ve let the team know about this report, and I’ll update this thread when there is more to share.