Subject: Critical Bug in Cursor 1.3 – File Loss on Undo

Describe the Bug

Hi everyone,
I’m writing this while reinstalling Cursor 1.3.

Just wanted to report a critical bug in the new version of Cursor that the platform prompted me to install today. The issue is that the editor deletes or clears the contents of files agent was editing if I try to undo changes and revert. Instead of restoring the previous version, the file either gets emptied or completely removed.
Initially, everything worked as expected — there were no visible issues for a while. Then, at some point, I noticed one file had suddenly disappeared. The dev server started crashing, and I assumed maybe the AI agent had deleted the file by mistake.
I checked the chat history, but there was no message or command indicating any file deletion. It was confusing.
Later, I encountered a similar issue — another file was gone, and a component wouldn’t compile. Again, no sign of a delete action in the chat.
Finally, I gave the AI agent a new task and tried to undo the changes — that’s when I discovered that every edited file was permanently deleted when reverted. No warning, no prompt, and no way to recover the files.

Steps to Reproduce

Steps to Reproduce

Open a file in Cursor 1.3.

Make edits to the file.

After some time, try to undo changes or revert the file.

Observe file content or file existence after undo.

Expected Behavior

Undoing changes should safely revert the file to its previous state, without deleting or clearing its contents.

Operating System

Windows 10/11

Current Cursor Version (Menu → About Cursor → Copy)

1.3.0
Unfortunately, I’ve already reinstalled the previous version of Cursor, and I’m reporting this only now, so I don’t have exact steps to reproduce it again. But I’m confident this behavior happened specifically after updating to version 1.3.0

Does this stop you from using Cursor

Yes - Cursor is unusable

3 Likes

We’re investigating this right now. Apologies. Are you able to open “toggle developer tools” and then send any console logs that contain “checkpoint”? You can use that as a filter

I have the same issue, when I do “restore checkpoint” files where the cursor made modifications, got deleted, and then I need to recover those file by the git history, which make the cursor history deleted, and I couldn’t get back the work that was done by cursor, meaning I’m loosing my progress around feature that I’m trying to implement with cursor… so, time wasted (

Cursor Info:
Version: 1.3.0 (Universal)

VSCode Version: 1.99.3

Commit: 410000a83355c025daba0c6156955bf08687d080

Date: 2025-07-23T05:46:59.221Z (1 day ago)

Electron: 34.5.1

Chromium: 132.0.6834.210

Node.js: 20.19.0

V8: 13.2.152.41-electron.0

OS: Darwin arm64 24.5.0

Hey, yes, sorry about that. We’re releasing an update soon that should fix this issue. In the meantime, you can switch to the previous version. You can download it here:

uppp

Hi Andrewh,

Today Cursor auto-updated to the latest version, and unfortunately, I’m once again facing the same issue — but this time I can confirm it and provide a more precise diagnosis.

So yes, I can now definitively confirm that files are being deleted when rolling back after edits.

Here’s the exact sequence to reproduce the issue:

  1. Give the agent a task
  2. Click Restore Checkpoint – everything still works fine at this stage
  3. Click Redo Checkpoint – this is where the file gets completely deleted from the system

And here are the logs you asked for:

ERR [gitCheckpoints] Failed to restore inline diff metadata: NS: Could not read file “c:\AIHelper\packages\server\src\ai\aiHandler.js” (Error: Cannot resolve non-existing file “c:\AIHelper\packages\server\src\ai\aiHandler.js”)
at RQs.G (vscode-file://vscode-app/c:/Users/Iguazo/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:7012:67617)
at RQs.F (vscode-file://vscode-app/c:/Users/Iguazo/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:7012:67437)
at async RQs.D (vscode-file://vscode-app/c:/Users/Iguazo/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:7012:66803)
at async Ott._restoreInlineDiffMetadata (vscode-file://vscode-app/c:/Users/Iguazo/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:1532:20)
at async Ott._restoreFilesFromGitRoot (vscode-file://vscode-app/c:/Users/Iguazo/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:1534:1879)
at async vscode-file://vscode-app/c:/Users/Iguazo/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:1529:28775
at async Ott.restoreCheckpoint (vscode-file://vscode-app/c:/Users/Iguazo/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:1529:29628)
at async Wq.checkoutToLatest (vscode-file://vscode-app/c:/Users/Iguazo/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:1560:1999)
error @ workbench.desktop.main.js:57

Версия: 1.3.0 (user setup)
Фиксация: 1.99.3
Дата: 410000a83355c025daba0c6156955bf08687d080
Electron: 2025-07-23T05:57:24.496Z
ElectronBuildId: 34.5.1
Chromium: undefined
Node.js: 132.0.6834.210
V8: 20.19.0
ОС: 13.2.152.41-electron.0

The problem is that the program automatically updates itself.
Is there any way to disable auto-updates?

Sorry about this. 1.3.1 is rolling out now and you should update. Will fix it. Email me [email protected] if I can help resolve any remaining issues.

Thanks for the quick follow-up!

Glad to hear 1.3.1 is rolling out — I’ll update right away and keep an eye on it.
No worries, I had backups, so nothing critical was lost. Really appreciate the support!
I’ll definitely reach out if anything else comes up. Thanks again!

1 Like

Great. If anyone else has issues, email me [email protected]

I had the same issue

I have not seen the 1.3.1 upgrade popup yet

Version: 1.3.0
VSCode Version: 1.99.3
Commit: 410000a83355c025daba0c6156955bf08687d080
Date: 2025-07-23T05:46:49.430Z
Electron: 34.5.1
Chromium: 132.0.6834.210
Node.js: 20.19.0
V8: 13.2.152.41-electron.0
OS: Darwin arm64 24.5.0

AGI is here guys!! but also the most juvenile bugs you can imagine.

Still the same in 1.3.9. When click “Undo” the whole file is gone.