Keep File / Undo File prompt keeps appearing on manually edited files

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Title: Keep File / Undo File prompt keeps appearing on manually edited files
Description:
In recent Cursor versions, the “Keep File” / “Undo File” prompt (and the floating “Undo / Keep” control) appears on files that I am editing manually, with no AI suggestions involved. The UI behaves as if there are pending AI-suggested changes to accept or reject, but the changes are my own edits.
What happens:
I edit a file by hand (e.g. typing, deleting, commenting out code).
Cursor shows the diff-style review UI with “Keep File” and “Undo File” (and sometimes a floating “Undo / Keep” near the bottom-right).
The gutter shows add/remove indicators (red/green) as if the changes were from an AI suggestion.
This happens repeatedly while I work, making it hard to use the editor normally.
Expected behavior:
The Keep/Undo review UI should only appear when there are actual AI-suggested or agent-applied changes. Manual edits should not trigger this prompt.
Environment:
[Version: 2.5.20
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: Darwin arm64 24.6.0]
Impact:
This makes it very difficult to work in the latest Cursor versions. Please treat this as a high-priority UX bug.

Steps to Reproduce

Steps to reproduce
Open any file in the editor (e.g. a React/TS component).
Edit the file only by hand (type, delete, comment out a line, add a line). Do not use AI suggestions, Tab autocomplete, or Apply.
Make a few edits in a row (e.g. change a variable, add a comment).
Observe: the “Keep File” / “Undo File” bar appears at the top, and/or the floating “Undo / Keep” control appears (e.g. bottom-right).
The gutter shows red/green diff markers as if the changes were from an AI suggestion.
Optional: click “Keep File”, then edit the same file again by hand — the prompt can reappear.
Expected: No Keep/Undo review UI for manual edits; it should only appear for AI/agent-suggested changes.
Actual: Keep/Undo UI appears for manual edits and keeps coming back, making normal editing difficult.

Operating System

MacOS

Version Information

Version: 2.5.20
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: Darwin arm64 24.6.0

For AI issues: which model did you use?

Auto

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, thanks for the detailed report.

A couple of quick follow-up questions before we dig in. This will help narrow down the possible causes.

  1. Before this started happening, did you use Agent or any AI features (Cmd+K, Tab, Apply) in these same files during this session (or a previous one)? There’s a known issue where diff reviews from past agent runs can “stick” to files and show up later, even when you’re editing manually.
  2. Does this happen in a completely new project with no AI usage at all, or only in projects where the agent previously made changes?
  3. Are you using a multi-root workspace (more than one root folder)?

If it turns out agent changes were applied earlier, it’s probably a variant of this known issue, where stale diff reviews don’t get cleared properly. A few workarounds that often help:

  • Close the specific chats where those reviews were originally created
  • Stage and commit the files, this sometimes resets the Keep/Undo state
  • As a last resort: rename the file, fully quit Cursor, reopen it, then rename it back

If this is really happening with no prior AI involvement, that’s a different bug, and I’ll pass it to the team.

Let me know.

  1. Yes, most probably it is stick on files that already was update by agent