Repository navigation
agentHost: retire legacy sandbox policy enforcement - #339396
Merged
Merged
Conversation
Roll back the connection-owned sandbox requirement from #339144 while preserving native managed sandbox enforcement, restoration and ordinary setting forwarding. Deprecate the legacy settings and device policies, and mark the retired policy surface not applicable to Agent Host. *🤖 Authored with GitHub Copilot on behalf of @rwoll.* Co-authored-by: Copilot <[email protected]>
Contributor
📬 CODENOTIFYThe following users are being notified based on files changed in this PR: Raymond Zhao (@rzhao271)Matched files:
Anthony Kim (@anthonykim1)Matched files:
|
Dileep Yavanmandha (dileepyavan)
previously approved these changes
Oct 2, 2026
Contributor
There was a problem hiding this comment.
Copilot review overview
🔵 Needs a closer look
Removing an enterprise sandbox enforcement guarantee warrants maintainer sign-off, especially without live deployment migration validation.
Review effort: Balanced
Findings: None
What changed in this PR
Retires legacy sandbox policy enforcement in Copilot Agent Host in favor of native managed settings, while preserving Local behavior.
Changes:
- Removes connection-owned mandatory sandbox requirements while retaining ordinary setting forwarding.
- Deprecates nine legacy settings and updates four device-policy descriptions and classifications.
- Aligns diagnostics, tests, and contributor guidance with the retired policy contract.
| File | Description |
|---|---|
| src/vs/workbench/test/browser/actions/policyDiagnosticsMarkdown.test.ts | Updates readiness output expectations. |
| src/vs/workbench/contrib/terminalContrib/chatAgentTools/test/common/terminalChatAgentToolsConfiguration.test.ts | Tests deprecation metadata and unchanged defaults. |
| src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalChatAgentToolsConfiguration.ts | Adds deprecations and replacement guidance. |
| src/vs/platform/agentHost/test/node/sessionSandbox.test.ts | Tests overridable defaults and native requirements. |
| src/vs/platform/agentHost/test/node/protocolServerHandler.test.ts | Retains permission lifecycle coverage without legacy sandbox contributions. |
| src/vs/platform/agentHost/test/node/agentHostPolicySupport.test.ts | Checks retired policy classifications. |
| src/vs/platform/agentHost/test/node/agentHostManagedSettingsService.test.ts | Removes legacy requirement aggregation tests. |
| src/vs/platform/agentHost/test/node/agentHostBootstrap.test.ts | Verifies permissions remain separate from sandbox policy. |
| src/vs/platform/agentHost/test/electron-browser/agentHostProtocolClient.test.ts | Checks legacy requirements are no longer transmitted. |
| src/vs/platform/agentHost/test/common/agentHostPolicyReadiness.test.ts | Excludes retired policies from readiness gaps. |
| src/vs/platform/agentHost/node/protocolServerHandler.ts | Removes legacy sandbox notification handling. |
| src/vs/platform/agentHost/node/agentServiceFoundation.ts | Removes obsolete configuration-service dependency. |
| src/vs/platform/agentHost/node/agentHostManagedSettingsService.ts | Removes client sandbox requirement aggregation. |
| src/vs/platform/agentHost/node/agentConfigurationService.ts | Resolves sandbox requirements from runtime policy only. |
| src/vs/platform/agentHost/common/meta/vscode/agentSandboxPolicyMeta.ts | Clarifies runtime ownership in documentation. |
| src/vs/platform/agentHost/common/agentHostPolicySupport.ts | Marks four retired policies not applicable. |
| src/vs/platform/agentHost/common/agentHostPolicyReadiness.ts | Removes retired-policy gap handling. |
| src/vs/platform/agentHost/browser/agentHostProtocolClient.ts | Stops forwarding legacy mandatory requirements. |
| src/vs/platform/agentHost/AGENTS.md | Documents runtime-only mandatory enforcement. |
| build/lib/policies/policyData.jsonc | Updates exported descriptions and classifications. |
| .github/skills/policy-and-managed-settings/policy-support-maintenance.md | Clarifies retired-policy classification boundaries. |
| .github/skills/policy-and-managed-settings/legacy-permission-policy.md | Documents retirement and migration guidance. |
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Ross Wollman (rwoll)
enabled auto-merge (squash)
October 2, 2026 21:57
Ross Wollman (rwoll)
disabled auto-merge
October 2, 2026 21:59
Contributor
Keep rollout-selection coverage for all four retired sandbox policies while expecting no readiness gaps. Update the Settings editor renderer assertion for the completed deprecation notice without changing product behavior. *🤖 Authored with GitHub Copilot on behalf of @rwoll.* Co-authored-by: Copilot <[email protected]>
Ross Wollman (rwoll)
enabled auto-merge
October 2, 2026 22:07
Dileep Yavanmandha (dileepyavan)
approved these changes
Oct 2, 2026
Raymond Zhao (rzhao271)
approved these changes
Oct 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Retire legacy VS Code sandbox policies from the Copilot Agent Host policy contract and roll back the mandatory legacy sandbox requirement added by #339144. Enterprise sandbox enforcement in Agent Host should use Copilot managed settings, not migration of the old preview device policies.
notApplicable, rather than outstanding Agent Host parity gaps. Update diagnostics, tests, and contributor documentation together. New Agent Host sandbox controls are not deprecated.Admin and user impact
ChatAgentSandboxEnabled: onno longer guarantees sandboxing in Agent Host. Existing setting forwarding remains, so it can supply an On default, but a session Off selection can override it.To require sandboxing in Copilot Agent Host, use native managed
sandbox.enabled: true. Usesandbox.allowBypass: falsewhen bypass must be prohibited. Outbound network restrictions usesandbox.userPolicy.network.allowOutbound.Local harness behavior is unchanged. Native managed restrictions, permitted-bypass controls, restored-session reconciliation, and other legacy permission translations remain intact.
notApplicablerecords the retirement of the legacy policy contract; it does not mean forwarded settings have no effect or certify enforcement parity.The deprecated device policies are
ChatAgentSandboxEnabled,ChatAgentSandboxAllowNetwork,ChatAgentSandboxAllowUnsandboxedCommands, andChatAgentSandboxAllowAutoApprove.Validation
main; core compilation completed with zero errors.Live MDM deployment was not exercised. Release notes and sandbox migration guidance have also been updated locally in
vscode-docsfor separate publication.🤖 Authored with GitHub Copilot on behalf of Ross Wollman (@rwoll).