Sometimes “Keep” buttons and diff appear for changes after a file has been committed. In those situations the “Keep All” button has also been missing. I have “Auto-Accept on Commit” enabled but the UI doesn’t reflect committed state.
This affects manual editing of the file as the diff generation and displayed “Keep” buttons slow down the view.
Feature request: Option to disable Keep buttons and diff views entirely. This would be useful when using an external git GUI, as I usually Keep All anyway and discard/stage in the external editor.
Steps to Reproduce
Make changes to a file. Commit changes without using “Keep” or “Keep All” buttons. Open/view the file in IDE.
Expected Behavior
Any “Keep” buttons or diffs should disappear after the file has been committed.
Operating System
MacOS
Current Cursor Version (Menu → About Cursor → Copy)
In the problematic file, manually delete highlighted blocks, save, then immediately Undo Ctrl+Z
Ctrl+Shift+P → Developer: Reload Window
Run without extensions: cursor --disable-extensions
Got the request for a feature to disable Keep/diffs entirely - passing it to product. Let me know if any workaround helps and send the data above, I’ll attach it to the task.
@deanrie Thanks for the info and possible workarounds. After reading the linked topic this issue seems different, but might be related. I tested but unfortunately none of the workarounds had any effect.
Accept changes via Git panel instead of inline UI
I don’t see any changes to accept in the Git panel (working tree clean).
In the problematic file, manually delete highlighted blocks, save, then immediately Undo Ctrl+Z
I have many changes in the file and autosave enabled, so it’s difficult to perform this in the exact sequence.
Ctrl+Shift+P → Developer: Reload Window
Did not have any effect.
Run without extensions: cursor --disable-extensions
Update: One workaround I found is to make a new change, then stage and make a second commit. This triggered the “Keep All” button to appear, which I could then use to keep all changes from both commits and dismiss the diff view.
Thanks for the clarification and the workaround you found!
Yes, it’s a related but slightly different variation of the same Edit Review UI issue. The bug is already being tracked, I’ll add your Auto-Accept on Commit case to the ticket.
Your workaround (new commit triggers Keep All) - great find, I’ll add it to the bug description.
Regarding the feature request to disable Keep/diffs - passing it to the team.