Auto applies code changes without approve, Discard changes doesnt work

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

When asked to do a change in the code, Agent applies the changes without asking for the approve (keep?). If i discard a change from restoring previous checkpoint the char reset but the code still contain the edits.

Same behaviour even when specific model selected.

Steps to Reproduce

Use Auto Agent mode, send a prompt to asking do a code change. and restore a chekpoint

Screenshots / Screen Recordings

Operating System

Windows 10/11

Version Information

Version: 2.5.20 (user 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.22631

For AI issues: which model did you use?

Auto Mode, and Sonnet 4.5

Does this stop you from using Cursor

No - Cursor works, but with this issue

2 Likes

Hey, the first issue (changes are applied without showing diffs) is a known bug being tracked here: Only some diffs are shown when the agent makes changes. A fix is already in progress, so please try updating to the latest version once it’s available.

For now, after changes, forcing diffs to show can sometimes help: Ctrl+Shift+P > Developer: Reload Window.

About the checkpoint issue, could you share a bit more about what happens when you restore a checkpoint? Specifically, do the files look like they roll back but the code stays changed, or does nothing change at all?

For me non of the changes showing, but hopefully it will get fixed.

I’m not sure if the video is clear enough. I asked to do a code change (add a paragraph) it did one line change and it was auto applied. then i click ā€œDiscard all changes up to this checkpoint?ā€œ i said Yes, then the chat was reverted but the line it added still stay one the code. File did not role back. and if i asked to new change, it applies on top of the change i asked to revert.

Sorry if I’m not clear enough.

No, everything’s clear. The description is pretty detailed.

So, with ā€œDiscard all changes up to this checkpointā€, the chat rolls back, but the files stay modified. This is a separate bug from the diff issue. There are similar reports, like this one: Changes getting applied without asking, existing files getting deleted when undoing changes.

I’ve shared this with the team. For now, as a workaround, make a git commit before agent sessions so you can roll back with git checkout -- <file> or git stash.

Let me know if there’s anything else.

Facing the same bug since yesterday, it used to ask whether to keep it or remove but now it just auto applies changes to the code.

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

Same issue here. Pretty bad not being able to review what the model is modifying. It has been causing me a lot of trouble.

Reloading the window just made things worse. Now it says there are no changes to review, although the model has changed 4 different files.

äøéœ€č¦é™ēŗ§

ctrl + shift + P 输兄 Developer: Reload Window