New /worktree command requires approval for setup steps

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

When creating a new worktree using /worktree, I need to manually approve the setup steps that used to be run automatically without manual intervention.

Steps to Reproduce

  1. Have a .cursor/worktrees.json with commands like pnpm install in setup-worktree
  2. Use /worktree to create a new worktree

Expected Behavior

  1. Cursor automatically creates a worktree (expectation fail here already, see: New /worktree waits for approval due to sandbox → workaround: manually approve at this point)
  2. Cursor runs setup steps without manual intervention required

Screenshots / Screen Recordings

Operating System

Linux

Version Information

Version: 3.1.17
VSCode Version: 1.105.1
Commit: fce1e9ab7844f9ea35793da01e634aa7e50bce90
Date: 2026-04-19T19:33:58.189Z
Layout: editor
Build Type: Stable
Release Track: Default
Electron: 39.8.1
Chromium: 142.0.7444.265
Node.js: 22.22.1
V8: 14.2.231.22-electron.0
OS: Linux x64 6.19.7-200.fc43.x86_64

For AI issues: which model did you use?

Composer 2 (expectation: shouldn’t matter)

Additional Information

Going to downgrade to v2 again, because this completely breaks my workflow. Just upgraded to create bug reports.

Does this stop you from using Cursor

Yes - Cursor is unusable

This is the same limitation covered in your other thread. The setup commands from worktrees.json also run through the agent’s shell tool, so they hit the same approval flow.

I’ve responded there with the details and workaround (the Agent Window bypasses this). Closing this one to keep discussion in one place.