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

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.