Agent began pushing code without permission 😨

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Without any prompt to do so or permission granted (which has always been my default setting for any product changes), the agent triggered a commit and push.

Steps to Reproduce

Well you tell me, the last commit and push I requested and manually authorised, was only 10 minutes earlier. There had been no change to settings, or the model.

Sonnet 4.6 Medium

Expected Behavior

Agent waits for instruction or confirmation that I want the changes committed and pushed to main. I authorise the commit and push via the ‘run’ button within the chat ui

Screenshots / Screen Recordings

Operating System

MacOS

Version Information

Version: 3.1.10 (Universal)
VSCode Version: 1.105.1

For AI issues: which model did you use?

Sonnet 4.6

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, thanks for the report. I see the screenshot with git commands in the terminal, that’s definitely annoying when the agent runs things without asking.

To dig in, I need to see your terminal settings. Can you share a screenshot of Settings > Agents > Terminal? I’m mainly looking for:

  1. What Auto-Run is set to (Off / Run in Sandbox / Run Everything)
  2. Your Command Allowlist settings, if any

How the agent behaves with git commands depends a lot on these settings. For example, if it’s set to Run in Sandbox, git commands might run automatically inside the sandbox without a confirmation prompt.

As a workaround for now, make sure Auto-Run is set to Off. Then the agent should ask for confirmation for every terminal command.

Let me know what you have set and I’ll suggest next steps.