# Add global setting to enable or disable the agent sandbox \(\#59497\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/dd7e50e66bb00208421f94fd1e3d51fede3afe74)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: dd7e50e66bb00208421f94fd1e3d51fede3afe74

Requested commit: dd7e50e66bb00208421f94fd1e3d51fede3afe74

Commit: dd7e50e66bb00208421f94fd1e3d51fede3afe74

Tree: 1827386b040eca91d109bf53d3ac2069c4462781

Author: Richard Feldman

Committer: GitHub

## Message

```
Add global setting to enable or disable the agent sandbox (#59497)

Adds a global `agent.sandbox_permissions.enabled` setting (defaulting to
on) that controls whether agent-run terminal commands are wrapped in an
OS-level sandbox, and surfaces it as an Enable Sandbox toggle at the top
of the sandbox settings page. When the toggle is off, the rest of the
sandbox settings UI is hidden, and `sandboxing_enabled` now requires
both the existing feature flag and this setting so commands actually run
unsandboxed.

Because the setting defaults to `true` rather than `false`, the compiled
`SandboxPermissions` gets a manual `Default` impl instead of the derived
one.

Release Notes:

- Added a setting to enable or disable the agent terminal sandbox,
toggleable from the agent sandbox settings page.
```

## Parents

- [dfd44a45dde9a191f37194f8c6d40fefd9a32bc9](https://git.cafe/gitcafe/zed/commit/dfd44a45dde9a191f37194f8c6d40fefd9a32bc9?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/dd7e50e66bb00208421f94fd1e3d51fede3afe74?format=markdown)
