Keep / Undo buttons missing and “Discard to checkpoint” not reverting changes (auto-applies edits)

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

When I generate code changes using Cursor Chat, the Keep and Undo buttons are missing most of the time.

In those cases, the changes are automatically applied to the file without giving me the option to review or undo that specific change.

Additionally, when I click the return icon in the message and select “Discard all changes up to this checkpoint?”, then click Continue, the changes are not reverted properly to that checkpoint.

This happens intermittently:

  • Sometimes I see Keep/Undo buttons.
  • Most of the time I do not see them.
  • When they are missing, changes are auto-applied and difficult to revert precisely.

This makes it risky to use Cursor for production work because unintended changes cannot be easily undone.

Steps to Reproduce

  1. Open any project in Cursor IDE.
  2. Use Chat to generate or modify code.
  3. Observe that in many cases:
  • Keep / Undo buttons do not appear.
  • Changes are automatically applied.
  1. Click the return icon in the chat.
  2. Select “Discard all changes up to this checkpoint?”
  3. Click “Continue”.
  4. Notice that the changes are not properly reverted.

Expected Behavior

  1. Keep and Undo buttons should always appear after Agent generated changes.
  2. Changes should not be auto-applied without explicit confirmation.
  3. “Discard all changes up to this checkpoint” should correctly revert all changes made after that checkpoint.

Screenshots / Screen Recordings

Operating System

Windows 10/11

Version Information

IDE:
Version: 2.5.20 (system setup)
VSCode Version: 1.105.1
Commit: 511523af765daeb1fa69500ab0df5b6524424610
Date: 2026-02-19T20:41:31.942Z
Build Type: Stable
Release Track: Default
Electron: 39.4.0
Chromium: 142.0.7444.265
Node.js: 22.22.0
V8: 14.2.231.22-electron.0
OS: Windows_NT x64 10.0.26200

CLI: Not used

For AI issues: which model did you use?

I am using “Agent” with Auto mode

Additional Information

  1. This issue occurs intermittently but frequently.
  2. It affects normal development workflow.
  3. I am using the latest stable version of Cursor.
  4. This behavior was not consistent in earlier versions.

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey there, I have the same issue, and I just lost some valuable code based on lazy experimentation, sigh. Reverting to checkpoints doesn’t work, and code stays the same, not reverting. I’m also on Windows 11 and have the latest version. Though I can see the revert to checkpoint button, it just doesn’t work.

Weird thing is that it’s working on my Mac, so something is wrong with the Windows build.

Hey, both issues are related and already known.

The root cause is a diffs display bug. When the agent’s changes don’t show up as diffs, the Keep and Undo buttons don’t appear either. And when diffs are missing, reverting to a checkpoint breaks too. The chat looks reverted, but the actual files stay changed. Main thread: Only some diffs are shown when agent makes changes.

@lukamrkonjic it’s the same issue and the same root cause. The Mac vs Windows difference is interesting, noted.

The team is aware and tracking it. For now, the safest workaround is to make a git commit before each agent session. That way you can always roll back with git checkout -- . or git stash if checkpoint revert fails.

Also check if an update is available. A fix related to diffs issues was released recently.

1 Like

Thanks for the quick reply Dean! Can’t wait for the update, it’s one of my favorite features with Cursor.

Have a wonderful day!

2 Likes