Cursor deleting my source files

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Several times I’ve seen Cursor delete multiple source files without explanation. I finally got a screen recording of it in action. You can see in the recording that the project opens fine, then once I submit a prompt, at least a dozen files are instantly deleted.

Steps to Reproduce

I replicated the same behavior 4 or 5 times in a row. Then I waited 3 hours before coming back to Cursor, and now the behavior is gone. But this same problem has happened to me 4-5 times over the past 6 months at random times.

Screenshots / Screen Recordings

Operating System

MacOS

Version Information

Version: 3.3.12 (Universal)
VSCode Version: 1.105.1
Commit: 75c0dfd29aecf2cc208dbaf761d5cc459c601aa0
Date: 2026-05-06T03:47:52.249Z
Layout: editor
Build Type: Stable
Release Track: Default
Electron: 39.8.1
Chromium: 142.0.7444.265
Node.js: 22.22.1
V8: 14.2.231.22-electron.0
OS: Darwin arm64 24.6.0

Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor

Hey Mike, thanks for the recording and the detailed write-up. This kind of pattern, where it shows up sometimes and then goes away later, is the hardest to debug. So the repro window you managed to catch is really helpful.

What you’re seeing is the Submit from a previous message? dialog. When you edit and resubmit an earlier chat message, or if that dialog appears for any reason and you press Enter or Revert, Cursor rolls your workspace back to the state from before that message was originally sent.

The flow is roughly:

  1. In a later chat message, the agent created those ~12 files
  2. You edited or resubmitted an earlier message, the dialog popped up, and Revert happened
  3. The workspace rolls back to a snapshot from before those files were created, so they disappear instantly
  4. A few hours later or in a new chat, there are no later messages to roll back past, so the behavior goes away

This is by design. That’s how chat-level checkpoint and revert works. But it’s easy to miss the dialog, especially if you just hit Enter, and from your side it can look like the agent deleted files by itself, which is why it’s confusing.

Workarounds:

  • In the dialog, click Don’t revert if you want to resubmit the message but keep your current files
  • Or click Cancel or press Esc to exit
  • Safest option is to commit to git before submitting a prompt that edits an earlier message. Then even if a revert happens, git status and git restore can bring everything back

Feedback that the dialog is too easy to misclick and the wording should be clearer about what you’ll lose is noted. Your report helps confirm it. There’s no ETA for UX changes yet, but it’s on the radar.

If you see files disappear in a session where you’re 100% sure there was no revert dialog, send the Request ID and we’ll dig deeper. That would be a different bug.