Auto-accept proposed changes / Expose "Keep All" as a command

Feature request for product/service

Cursor IDE

Describe the request

Our company tracks coding metrics that are only populated when code changes are accepted via “Keep All”. Currently this requires manual intervention for every set of proposed changes.

Problem

There’s no way to automatically accept proposed changes or programmatically trigger “Keep All”:

  • No keyboard shortcut is registered for “Keep All” in the Keybindings settings
  • The command isn’t exposed to the VS Code extension API (verified by listing all available commands)

Proposed Solutions (any of these would work)

  1. Add an “Auto-Keep” setting - Automatically accept all proposed changes without requiring manual confirmation
  2. Expose “Keep All” as a command - Register something like composer.keepAll or cursor.keepAllChanges so it can be:
  • Bound to a keyboard shortcut
  • Called from extensions
  • Automated via scripting

What I Tried

Built a VS Code extension that polls for keep-related commands, but none of the available commands (editor.action.inlineDiffs.acceptAll, chatEditing.acceptAllFiles, etc.) trigger the “Keep All” functionality.

1 Like

I really need this too. I often end up with lots of files that aren’t in the current chat so I have to manually go through tends of files clicking “Keep All” then “Review Next File” over and over, and it’s very easy to accidentally press Undo All. And the Alt+L keyboard shortcut for “Review Next File” seems unreliable.

I also don’t really understand why it says “1 of 2 files” or something next to this UI sometimes. Presumably related to the chat it came from, but with multiple chats there’s no real context and it just causes the buttons to jump around making pressing the wrong one much more error prone.

I end up pressing accept/undo randomly until I’ve got them all to go away then discarding changes in git.