Phantom Diff Changes That Wont Go Away

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

I am stuck in a “Review” / “Apply” state in a specific file (HeatmapStrategy.cpp). There are green diff lines indicating pending changes from the AI, but the UI is unresponsive to clearing them.

Clicking “Keep All” or “Undo All” does nothing.

Saving, closing the file, and reopening does not clear the state. If I open and close, it asks to save changes, this also does nothing to the green diff highlights, but the file does save.

Restarting Cursor does not clear the state.

If I delete the file and create a new one with the same name and content, the green diff lines immediately reappear. This suggests the diff state is stuck in the workspace storage/cache rather than the file itself.

Steps to Reproduce

Not so sure how it happened. I tried to find the chat the changes came from and accept them there, but it’s too far back and not visible. I can see the commit in the timeline, but I’m unsure how to reproduce this anywhere else.

Expected Behavior

Clicking “Keep All” or “Undo All” should commit or revert the changes and return the editor to a normal editing state.

Operating System

Windows 10/11

Current Cursor Version (Menu → About Cursor → Copy)

Version: 2.0.77 (user setup)
VSCode Version: 1.99.3
Commit: ba90f2f88e4911312761abab9492c42442117cf0
Date: 2025-11-13T23:10:43.113Z
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.26200
^^ It’s Windows 11.

For AI issues: which model did you use?

Probably GPT-5, although unsure.

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, thanks for the report. This is a known issue that the team is already tracking.

Similar reports: Stuck with changes i cannot accept

To help us investigate, please check:

  • Open Help → Toggle Developer Tools → Console - do you see any errors when this file is open?
  • Does this issue affect only HeatmapStrategy.cpp or other files as well?

A temporary workaround that helped another user:

  • Manually remove the highlighted changes in the file
  • If a file version conflict dialog appears (overwrite/discard), choose “overwrite”
  • Then discard the changes via git

The fact that the same diff appears again after deleting the file confirms that it is stuck in the workspace storage. Please let me know if this workaround helps.

Thanks a lot, next time I’ll look harder for existing posts, but glad to know it’s being worked on. In the developer tools console, there aren’t any errors pertaining to the file. It’s only this file which has the issue.

Ahhhh! What DID work was copying the whole file in the clipboard, pressing CTRL+Z until it reverted to a state before the glitch, and then paste back the copied code! This removed the “Accept Changes” box and removed the green highlighted code.

Yay! Love Cursor, thanks again for the advice! :smiley:

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.