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
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 (
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:
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:
Give the agent a task
Click Restore Checkpoint – everything still works fine at this stage
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
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!