Skip to content

Remove sandbox settings and policy that VS Code 1.142 removed - #10487

Merged
Nick Trogh (ntrogh) merged 3 commits into
microsoft:mainfrom
alok-108:fix/sandbox-removed-settings
Oct 15, 2026
Merged

Nick Trogh (ntrogh) merged 3 commits into
microsoft:mainfrom
alok-108:fix/sandbox-removed-settings

Conversation

@alok-108

@alok-108 Alok Pandey (alok-108) commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

VS Code 1.142 removed two sandbox settings and one device policy. Three docs pages still listed them as current. This PR removes those references and describes how 1.142 behaves now.

Fixes #10486

What 1.142 changed

Removed Removed by Behavior in 1.142
chat.agent.sandbox.allowAutoApprove setting and ChatAgentSandboxAllowAutoApprove policy microsoft/vscode#339401: "Remove chat.agent.sandbox.allowAutoApprove and preserve the previous default sandbox auto-approval behavior, including existing network-confirmation restrictions." When sandboxing is on, the Local harness auto-approves sandboxed commands. It still asks first when a command needs to run outside the sandbox or with unrestricted network access, and it auto-approves nothing when chat.tools.terminal.enableAutoApprove is false (commandLineSandboxAnalyzer.ts#L20-L33).
chat.agent.sandbox.fileSystem.windows setting microsoft/vscode#340446 (removes Local harness sandboxing on Windows) The Local harness sandboxes on macOS and Linux only (settings.ts#L28-L29). The chat.agent.sandbox.enabled description says the same: "The Local harness supports sandboxing on Linux and macOS only."

At the 1.142.0 release commit (e9eaf94), neither setting ID nor the policy name appears anywhere in the VS Code source. The generated policy reference on code.visualstudio.com no longer lists ChatAgentSandboxAllowAutoApprove.

Changes

  • docs/agents/reference/ai-settings.md: Removes the chat.agent.sandbox.allowAutoApprove and chat.agent.sandbox.fileSystem.windows rows from the Local harness sandbox settings table.
  • docs/agents/run/agent-sandboxing.md: In "Local harness sessions and custom terminal tools", marks both settings as removed, the same way the section already handles chat.agent.sandbox.enabledWindows. Describes the current approval behavior, points to chat.tools.terminal.enableAutoApprove as the remaining control, and notes that the Local harness sandboxes on macOS and Linux only.
  • docs/enterprise/manage-ai-settings.md: Removes ChatAgentSandboxAllowAutoApprove from the deprecated sandbox policies table. Adds a sentence that sends admins to the existing "Configure terminal auto-approval" section on the same page (ChatToolsTerminalEnableAutoApprove).

Not changed

  • docs/metadata.json (OrgSettings) still lists chat.agent.sandbox.allowAutoApprove, along with other pre-1.142 setting IDs. The policy generation process seems to maintain this list, so I didn't edit it by hand. After this PR, no page references that setting, so the leftover entry has no visible effect.
  • docs/enterprise/policies.md is a 1.136 snapshot marked "DO NOT TOUCH". The site builds the policy reference from policies.template.md, and the published page is correct for 1.142.

Validation

  • Compared against microsoft/vscode at e9eaf94 (1.142.0): the settings registry, build/lib/policies/policyData.jsonc, and the sandbox command analyzer.
  • After this change, docs/ has no remaining references to the removed setting or policy, except as "removed" notes.
  • I followed docs-writing.instructions.md: no em dashes or typographic quotes, and in-article links start with #. git diff --check is clean.

VS Code 1.142 removed the chat.agent.sandbox.allowAutoApprove setting and
its ChatAgentSandboxAllowAutoApprove policy (microsoft/vscode#339401), and
the chat.agent.sandbox.fileSystem.windows setting along with Local harness
sandboxing on Windows (microsoft/vscode#340446). The docs still listed them
as current settings and policies.

- ai-settings: drop the two removed settings from the Local harness table.
- agent-sandboxing: mark both settings as removed, describe the current
  approval behavior for sandboxed commands, and note that the Local harness
  sandboxes on macOS and Linux only.
- manage-ai-settings: drop the removed policy and point admins to
  ChatToolsTerminalEnableAutoApprove.
@alok-108
Alok Pandey (alok-108) force-pushed the fix/sandbox-removed-settings branch from f90e387 to 62e79d1 Compare October 15, 2026 16:29
@ntrogh
Nick Trogh (ntrogh) merged commit edf1125 into microsoft:main Oct 15, 2026
2 checks passed
@alok-108
Alok Pandey (alok-108) deleted the fix/sandbox-removed-settings branch October 22, 2026 22:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docs still list sandbox settings and policy removed in VS Code 1.142 (chat.agent.sandbox.allowAutoApprove, fileSystem.windows)

4 participants