Ask HN: How to require confirmation for git reset in Cursor after recent update?
1 points| theorchid | 10 days ago
Every time an agent attempted to execute any of these git commands, I was required to confirm the actions, even in the sandbox.
With the latest Cursor update, this setting has disappeared. Now agents can once again freely execute git reset/git checkout and delete all changes made.
These commands are not in the Command Allowlist.
How can I make the agent ask me for confirmation again so that I can click "Allow" for such commands?
theorchid|9 days ago
In Auto-Run in Sandbox mode, the Command Allowlist isn’t applied. Sandbox replaces per-command approvals with filesystem and network restrictions, but the UI doesn’t explain this well.
Workaround: enable Legacy Terminal Tool in Cursor Settings > Agents > Inline Editing & Terminal. With that, the allowlist works as expected, and git commands will require approval again.