Cursor modified the file, but completely corrupted it

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Cursor modified the file, but completely corrupted it. That’s a big mistake.

Steps to Reproduce

Luckily I had a backup.

Expected Behavior

Automatically creates an Undo procedure that restores the file to the way it was before you started working on it.

Screenshots / Screen Recordings

Operating System

Windows 10/11

Current Cursor Version (Menu → About Cursor → Copy)

Version: 2.1.39 (user setup)
VSCode Version: 1.105.1
Commit: 60d42bed27e5775c43ec0428d8c653c49e58e260
Date: 2025-11-27T02:30:49.286Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Windows_NT x64 10.0.26100

For AI issues: which model did you use?

Auto

For AI issues: add Request ID with privacy disabled

ca924c78-3e7b-4735-ba04-8c4af9721e88

Does this stop you from using Cursor

No - Cursor works, but with this issue

hi @Neculai_I_Fantanaru and thank you for the detailed bug report.

AI models may make mistakes and may corrupt files.

Make sure to use Git for versioning of code as that way code is easier to be restored in previous version. You can ask agent to initialize Git for you on the project.

1 Like