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

**URL:** <https://forum.cursor.com/t/keep-file-undo-file-prompt-keeps-appearing-on-manually-edited-files/152661>\
**Category:** Bug Reports\
**Tags:** review\
**Created:** [February 23, 2026, 2:50pm UTC](https://forum.cursor.com/t/keep-file-undo-file-prompt-keeps-appearing-on-manually-edited-files/152661 "2026-02-23T14:50:36Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alex\_Tro](https://avatars.discourse-cdn.com/v4/letter/a/f6c823/32.png) [@Alex\_Tro](https://forum.cursor.com/u/Alex_Tro)\
**Post date:** [February 23, 2026, 2:50pm UTC](https://forum.cursor.com/t/keep-file-undo-file-prompt-keeps-appearing-on-manually-edited-files/152661/1 "2026-02-23T14:50:36Z")

</div>

### 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

---

<div class="post-metadata">

**Author:** ![deanrie](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/deanrie/32/1263_2.png) [@deanrie](https://forum.cursor.com/u/deanrie)\
**Post date:** [February 23, 2026, 7:37pm UTC](https://forum.cursor.com/t/keep-file-undo-file-prompt-keeps-appearing-on-manually-edited-files/152661/3 "2026-02-23T19:37:35Z")

</div>

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](https://forum.cursor.com/t/151723), 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.

---

<div class="post-metadata">

**Author:** ![Alex\_Tro](https://avatars.discourse-cdn.com/v4/letter/a/f6c823/32.png) [@Alex\_Tro](https://forum.cursor.com/u/Alex_Tro)\
**Post date:** [February 23, 2026, 7:50pm UTC](https://forum.cursor.com/t/keep-file-undo-file-prompt-keeps-appearing-on-manually-edited-files/152661/4 "2026-02-23T19:50:11Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Kavish.Shah](https://avatars.discourse-cdn.com/v4/letter/k/7ab992/32.png) [@Kavish.Shah](https://forum.cursor.com/u/Kavish.Shah)\
**Post date:** [February 26, 2026, 5:43am UTC](https://forum.cursor.com/t/keep-file-undo-file-prompt-keeps-appearing-on-manually-edited-files/152661/9 "2026-02-26T05:43:35Z")

</div>

Is there any solution to this? I’m facing the same issue after recent update to Cursor app on Mac

Version: 2.5.25  
VSCode Version: 1.105.1  
Commit: 7150844152b426ed50d2b68dd6b33b5c5beb73c0  
Date: 2026-02-24T07:17:49.417Z  
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 25.3.0

---

<div class="post-metadata">

**Author:** ![trithesun](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/trithesun/32/99566_2.png) [@trithesun](https://forum.cursor.com/u/trithesun)\
**Post date:** [February 27, 2026, 3:04am UTC](https://forum.cursor.com/t/keep-file-undo-file-prompt-keeps-appearing-on-manually-edited-files/152661/10 "2026-02-27T03:04:41Z")

</div>

I’m also experiencing this issue, and so are my colleagues.

---

<div class="post-metadata">

**Author:** ![MidnightOak](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/midnightoak/32/77882_2.png) [@MidnightOak](https://forum.cursor.com/u/MidnightOak)\
**Post date:** [February 27, 2026, 3:29am UTC](https://forum.cursor.com/t/keep-file-undo-file-prompt-keeps-appearing-on-manually-edited-files/152661/11 "2026-02-27T03:29:46Z")

</div>

@Kavish.Shah @trithesun Try deleting all recent chats (ideally all of them), also close all open file windows, restart Cursor.

---

<div class="post-metadata">

**Author:** ![trithesun](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/trithesun/32/99566_2.png) [@trithesun](https://forum.cursor.com/u/trithesun)\
**Post date:** [March 2, 2026, 9:40am UTC](https://forum.cursor.com/t/keep-file-undo-file-prompt-keeps-appearing-on-manually-edited-files/152661/12 "2026-03-02T09:40:46Z")

</div>

@MidnightOak i opened a new tab but issued was not resolved  
My old tab contain data important, so i can’nt delete it

---

<div class="post-metadata">

**Author:** ![MidnightOak](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/midnightoak/32/77882_2.png) [@MidnightOak](https://forum.cursor.com/u/MidnightOak)\
**Post date:** [March 2, 2026, 10:07am UTC](https://forum.cursor.com/t/keep-file-undo-file-prompt-keeps-appearing-on-manually-edited-files/152661/13 "2026-03-02T10:07:03Z")

</div>

unfortunately deleting the chats has been the only solution I’ve found.

---

<div class="post-metadata">

**Author:** ![MidnightOak](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/midnightoak/32/77882_2.png) [@MidnightOak](https://forum.cursor.com/u/MidnightOak)\
**Post date:** [March 3, 2026, 5:18am UTC](https://forum.cursor.com/t/keep-file-undo-file-prompt-keeps-appearing-on-manually-edited-files/152661/14 "2026-03-03T05:18:35Z")

</div>

I had a similar issue today, I deleted all chats, reloaded cursor, but what eventually seemed to work was copying the contents of the entire file, then deleting all contents, saving, then pasting it back and saving. Maybe worth a try.

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/99069_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [March 25, 2026, 5:19am UTC](https://forum.cursor.com/t/keep-file-undo-file-prompt-keeps-appearing-on-manually-edited-files/152661/15 "2026-03-25T05:19:18Z")

</div>

Closed on March 25, 2026, 5:19am UTC

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