In the Cursor IDE and CLI, when the agent tries to run a command, all commands fail

Hey, thanks for the report. I’ll need a bit more info to understand the issue for sure:

  1. What exact error do you see when the agent tries to run the command? A screenshot of the agent terminal output would help a lot.
  2. Which shell are you using, zsh, bash, or fish?
  3. You mentioned you tried the Legacy Terminal Tool. Did you also switch Auto-Run Mode? Open Cursor Settings Cmd+Shift+J > Agents > Auto-Run Mode > set Ask Every Time instead of Run in Sandbox. This fully disables the sandbox, and commands will ask for confirmation before running.

This looks like a known macOS sandbox issue. Similar cases were fixed with this workaround:

If disabling the sandbox still doesn’t help, please send the exact error text and we’ll dig deeper.