Skip to content

Add agent sandbox permissions settings page - #59448

Merged
rtfeldman merged 4 commits into
mainfrom
settings-for-sandboxing
Jun 17, 2026
Merged

Add agent sandbox permissions settings page#59448
rtfeldman merged 4 commits into
mainfrom
settings-for-sandboxing

Conversation

@MartinYe1234

@MartinYe1234 MartinYe1234 commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Adds a dedicated Sandbox settings page under the AI settings, letting users review and manage the elevated terminal sandbox permissions that are always allowed without prompting.

The page exposes:

  • Network: an "Allow All Domains" toggle and an editable list of allowed domains (exact domains or leading-*. subdomain wildcards), with validation.
  • Filesystem: an "Allow All Filesystem Writes" toggle and an editable list of writable paths.
  • Sandbox: an "Allow Unsandboxed Terminal Commands" toggle.

This replaces the single "Allow Unsandboxed Terminal Commands" setting item with the new page, and updates the agent panel's settings shortcut to open it. "Allow always" sandbox grants now persist to settings only and are no longer also cached as an in-memory thread grant.

Closes AI-413

Release Notes:

  • Added a settings page for managing the agent terminal sandbox permissions (allowed domains, writable paths, and unsandboxed command execution).

@MartinYe1234 MartinYe1234 self-assigned this Jun 16, 2026
@cla-bot cla-bot Bot added the cla-signed The user has signed the Contributor License Agreement label Jun 16, 2026
@zed-community-bot zed-community-bot Bot added the staff Pull requests authored by a current member of Zed staff label Jun 16, 2026
@MartinYe1234
MartinYe1234 marked this pull request as ready for review June 16, 2026 19:58
@MartinYe1234
MartinYe1234 requested a review from rtfeldman June 16, 2026 19:58
@rtfeldman
rtfeldman added this pull request to the merge queue Jun 17, 2026
Merged via the queue into main with commit 54cd092 Jun 17, 2026
32 checks passed
@rtfeldman
rtfeldman deleted the settings-for-sandboxing branch June 17, 2026 15:02
This was referenced Jun 18, 2026
jolutz pushed a commit to jolutz/zed that referenced this pull request Aug 8, 2026
Adds a dedicated Sandbox settings page under the AI settings, letting
users review and manage the elevated terminal sandbox permissions that
are always allowed without prompting.

The page exposes:
- Network: an "Allow All Domains" toggle and an editable list of allowed
domains (exact domains or leading-`*.` subdomain wildcards), with
validation.
- Filesystem: an "Allow All Filesystem Writes" toggle and an editable
list of writable paths.
- Sandbox: an "Allow Unsandboxed Terminal Commands" toggle.

This replaces the single "Allow Unsandboxed Terminal Commands" setting
item with the new page, and updates the agent panel's settings shortcut
to open it. "Allow always" sandbox grants now persist to settings only
and are no longer also cached as an in-memory thread grant.

Closes AI-413

Release Notes:

- Added a settings page for managing the agent terminal sandbox
permissions (allowed domains, writable paths, and unsandboxed command
execution).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement staff Pull requests authored by a current member of Zed staff

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants