Feature Request: Auto-accept changes on git commit

Feature request for product/service

Background Agent (GitHub, Slack, Linear,…)

Describe the request

First of all — I’ve been using Cursor with great satisfaction! The recent updates have been fantastic, and I really appreciate the continuous improvements the team is making. The AI-assisted coding experience keeps getting better with each release.
Feature Request
Title: Auto-accept pending AI-generated changes when user commits to git
Description:
Currently, when working in Agent mode, after the AI generates code changes, users need to explicitly click “Keep All” or “Accept” (or use keyboard shortcuts) to finalize the changes before they can be committed.
I’d like to propose an option where committing changes via git automatically accepts/finalizes any pending AI-generated modifications.
Rationale:
When a user decides to commit the generated code to their repository, they are implicitly accepting those changes. The act of committing is already an explicit confirmation that the user approves of the current state of the files. Requiring an additional “Accept” step feels redundant in this workflow.
Proposed behavior:
Add a setting (optional, off by default) like: “Auto-accept pending changes on git commit”
When enabled, if the user commits (via terminal, Git panel, or any git integration), any pending AI-generated changes in the committed files would be automatically marked as accepted
This would streamline the workflow for users who review changes and commit them directly
Benefits:
Reduces friction in the AI-assisted development workflow
Eliminates redundant confirmation steps
Makes the commit action the single source of truth for “I accept these changes”
Thank you for considering this enhancement!

Operating System (if it applies)

Linux