Add setting to disable or require confirmation for one-click Commit in Agent chat / Review

Feature request for product/service

Chat

Describe the request

Problem

In Agent chat and Review, the Commit action is too easy to trigger accidentally:

  • The Commit button is prominent and close to Review / file actions
  • A single click can start the commit flow (and in some cases commit immediately with an auto-generated message)
  • There is no user preference to turn this off or require a second confirmation

For teams using Git carefully (review before commit, conventional commits, multi-repo workspaces), accidental commits are costly and hard to undo cleanly.

Proposed solution

Add a Cursor Settings option, for example under Agents or Git, such as:

  1. Disable inline Commit in Agent chat / Review — hide or disable Commit; users commit via Source Control or terminal only
  2. Require confirmation before commit — first click opens a confirmation (e.g. “Commit N files with this message?”) before any git write
  3. Optional: Never auto-commit — always open the full commit dialog with editable message and file list

Use cases

  • Accidental click while scrolling or switching between Review files
  • Agent finished edits but user still wants to review diff in Source Control first
  • Umbrella / multi-repo workspaces where a mistaken commit scope is especially risky

Environment

  • Cursor version: [Help → About Cursor]
  • OS: macOS 25.5.0
  • Context: Agent chat + Review UI after agent-generated changes

Related

Similar UX pain around Review/Commit is discussed in forum threads about misleading commit state and one-click commit without showing message/files — this request is specifically for a user-controlled safety setting, not only bug fixes.

Hey @029_ai-dev!

We also noticed that it’s too easy to click this button. The team is looking at ways to improve the UX here. I shared your feedback!

+1 to this request! I really hate this “feature.” I don’t need to waste tokens on basic git commands and I click it by accident alllll the time.

Hi — wanted to add a real-world case for why a disable/confirm option would help.

While reviewing a large agent diff (~400+ lines across 6 files), I accidentally clicked the yellow Commit & Push button in the agent Changes / diff review bar at the top of the chat. I hadn’t tested the changes yet and had no intention to commit.

What happened:

  • The click sent an agent message (Execute the selected diff-tab commit-and-push action) rather than opening the normal Source Control commit flow
  • The button sits very close to other chat actions and is easy to hit while scrolling or switching context
  • It wasn’t obvious this was “ask the agent to commit” vs a normal git UI commit

What I wanted instead:

  • Either hide/disable Commit & Push in the agent diff tab, or
  • Require a second confirmation (“Commit N files and push to origin/feature-branch?”) before any git write

Workaround for now: I added a user rule telling the agent to ignore diff-tab commit/push actions unless I explicitly confirm in plain chat after testing. That helps, but the button is still there and still easy to mis-click.

Environment:

  • Cursor on Windows 10
  • Active agent session on a feature branch with uncommitted changes
  • Using agent diff review UI (Changes +413 / -46 bar)

Would love a setting under Git & PRs or Agents to turn this off or require confirmation. Thanks.