Skip to content

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

Closed

Description

@alok-108

Correction: The first version of this issue said the published enterprise policy reference was stale. That was wrong. The site builds the reference from policies.template.md, and code.visualstudio.com/docs/enterprise/policies is correct for 1.142. Only the unpublished docs/enterprise/policies.md file is a 1.136 snapshot. I've narrowed the issue to the problem that does reach readers.

Problem

VS Code 1.142 removed two sandbox settings and one device policy, but three hand-written docs pages still list them as current:

Removed in 1.142 Removed by Still documented in
chat.agent.sandbox.allowAutoApprove setting microsoft/vscode#339401 ai-settings.md#L209, agent-sandboxing.md#L259
ChatAgentSandboxAllowAutoApprove policy microsoft/vscode#339401 manage-ai-settings.md#L326
chat.agent.sandbox.fileSystem.windows setting (Local harness sandboxing on Windows) microsoft/vscode#340446 ai-settings.md#L212, agent-sandboxing.md#L260

None of these IDs exist in the VS Code source at the 1.142.0 release commit (e9eaf94). An admin who follows manage-ai-settings.md and deploys ChatAgentSandboxAllowAutoApprove to require approval for sandboxed commands gets no effect.

Behavior in 1.142

  • When sandboxing is on, the Local harness auto-approves sandboxed terminal commands. It still asks first when a command needs to run outside the sandbox or with unrestricted network access. When chat.tools.terminal.enableAutoApprove (policy ChatToolsTerminalEnableAutoApprove) is false, it auto-approves nothing (source).
  • The Local harness sandboxes on macOS and Linux only (source).

Minor, for maintainers

  • docs/metadata.json (OrgSettings) still lists chat.agent.sandbox.allowAutoApprove.
  • docs/enterprise/policies.md is a 1.136 snapshot. It isn't published, but anyone reading it on GitHub sees outdated policy names.

Activity

  1. changed the title [-]Enterprise policy reference is still generated from VS Code 1.136: deprecated sandbox policies shown as enforcing, removed and missing policies[/-] [+]Docs still list sandbox settings and policy removed in VS Code 1.142 (chat.agent.sandbox.allowAutoApprove, fileSystem.windows)[/+] on Oct 15, 2026
  2. alok-108 commented on Oct 15, 2026

    @alok-108
    ContributorAuthor

    Correction: the original description said the published enterprise policy reference was out of date. I was wrong. I'd compared the repo file docs/enterprise/policies.md without checking the live page, which the site builds from policies.template.md and which is correct for 1.142. I've edited the issue down to the part that is real: three pages still document a setting and a policy that 1.142 removed. Sorry for the noise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions