Reverting Changes is Complelty Broken

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Reversion of changes does not work if you do undo it completly destroys all your changes and they are unrecoverable.

Steps to Reproduce

Make a request
make a nother request
click undo and it undoes ■■■■■■■ everything
You try and revert to the last step by clicking the arrow button
It doesn’t fix the undo and everything is still gone

Operating System

MacOS

Version Information

Version: 2.5.17
VSCode Version: 1.105.1
Commit: 7b98dcb824ea96c9c62362a5e80dbf0d1aae4770
Date: 2026-02-17T05:58:33.110Z (1 wk ago)
Build Type: Stable
Release Track: Default
Electron: 39.3.0
Chromium: 142.0.7444.265
Node.js: 22.21.1
V8: 14.2.231.22-electron.0
OS: Darwin arm64 25.3.0

Does this stop you from using Cursor

Yes - Cursor is unusable

Hey, thanks for the report. This is a known issue. A couple quick clarifications:

If the files were created by the agent in the current session, Undo treats the “original state” as the file not existing, so it deletes it completely. That’s by design, but it’s not very intuitive and it can be confusing.

If the files already existed before you started the agent and they still get deleted on Undo, that’s a different bug.

Can you confirm which case you’re seeing?

Workaround: before big agent sessions, make a git commit so you can always roll back with git checkout if something goes wrong.

Also try updating to the latest version (2.5.25+) since some Undo fixes are already out.