Repository navigation
Remove MXC sandbox support for local harness - #340446
Merged
Dileep Yavanmandha (dileepyavan) merged 6 commits intoOct 8, 2026
Merged
Conversation
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Packaged extension-host CLI sessions lose their sandbox binary lookup without receiving replacement assets.
1 open finding
What changed in this PR
Removes VS Code’s MXC integration while retaining SDK-managed sandboxing for Copilot Agent Host sessions.
Changes:
- Removes MXC runtime code, dependencies, configuration, and build handling.
- Disables Local-harness sandboxing and custom Agent Host terminal tools on Windows.
- Updates sandbox tests, settings descriptions, and permission-toggle visibility.
| File | Description |
|---|---|
| test/sanity/src/context.ts | Removes MXC validation exceptions. |
| src/vs/workbench/contrib/terminalContrib/chatAgentTools/test/common/terminalChatAgentToolsConfiguration.test.ts | Updates configuration expectations. |
| src/vs/workbench/contrib/terminalContrib/chatAgentTools/test/browser/terminalSandboxService.test.ts | Tests unsupported Windows behavior. |
| src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.ts | Removes MXC helper integration. |
| src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalChatAgentToolsConfiguration.ts | Removes Windows filesystem settings. |
| src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/sandboxSettingsReader.ts | Removes the Windows setting key. |
| src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sandboxOutputAnalyzer.ts | Skips Windows sandbox analysis. |
| src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/terminal.chatAgentTools.contribution.ts | Removes MXC registration and settings tracking. |
| src/vs/workbench/contrib/terminal/terminalContribExports.ts | Removes the Windows setting export. |
| src/vs/workbench/contrib/chat/browser/widget/input/chatInputPart.ts | Gates sandbox toggles by execution OS. |
| src/vs/workbench/contrib/chat/browser/chat.shared.contribution.ts | Documents Windows terminal limitations. |
| src/vs/platform/sandbox/test/node/sandboxHelper.test.ts | Removes MXC payload coverage. |
| src/vs/platform/sandbox/test/node/mxcMain.test.ts | Deletes MXC runner tests. |
| src/vs/platform/sandbox/test/common/terminalSandboxEngine.test.ts | Replaces MXC tests with Windows-disable coverage. |
| src/vs/platform/sandbox/node/sandboxHelper.ts | Removes Windows MXC helpers. |
| src/vs/platform/sandbox/node/mxcMain.ts | Deletes the MXC runner. |
| src/vs/platform/sandbox/common/terminalSandboxMxcRuntime.ts | Deletes the MXC runtime adapter. |
| src/vs/platform/sandbox/common/terminalSandboxEngine.ts | Removes MXC paths and disables Windows sandboxing. |
| src/vs/platform/sandbox/common/settings.ts | Adds the execution-OS support predicate. |
| src/vs/platform/sandbox/common/sandboxHelperService.ts | Removes MXC contracts. |
| src/vs/platform/sandbox/common/sandboxHelperIpc.ts | Removes MXC IPC methods. |
| src/vs/platform/sandbox/browser/sandboxHelperService.ts | Removes browser MXC stubs. |
| src/vs/platform/agentHost/test/node/copilotShellTools.test.ts | Updates platform-specific sandbox tests. |
| src/vs/platform/agentHost/test/node/copilotSessionLauncher.test.ts | Checks Windows omits custom shell tools. |
| src/vs/platform/agentHost/test/node/copilotAgentSession.test.ts | Checks Windows retains SDK shell initialization. |
| src/vs/platform/agentHost/node/copilot/copilotSessionLauncher.ts | Disables Windows custom terminal tools. |
| src/vs/platform/agentHost/node/copilot/copilotAgentSession.ts | Preserves Windows SDK shell behavior. |
| src/vs/platform/agentHost/node/copilot/copilotAgent.ts | Removes the core MXC binary override. |
| src/vs/platform/agentHost/node/copilot/agentHostSandboxEngine.ts | Removes MXC host methods. |
| src/vs/platform/agentHost/node/agentHostServices.ts | Removes MXC service registration. |
| src/vs/platform/agentHost/common/sandboxConfigSchema.ts | Removes Windows filesystem setting mapping. |
| src/vs/platform/agentHost/common/copilotCliConfig.ts | Documents Windows SDK runtime usage. |
| remote/package.json | Removes the remote MXC dependency. |
| remote/package-lock.json | Removes locked MXC packages. |
| package.json | Removes the core MXC dependency. |
| package-lock.json | Removes locked MXC packages. |
| extensions/copilot/src/extension/chatSessions/copilotcli/node/copilotCli.ts | Removes the extension MXC path override. |
| eslint.config.js | Removes the permitted MXC import. |
| cglicenses.json | Removes the MXC license override. |
| build/next/index.ts | Removes MXC build entry points. |
| build/lib/test/copilot.test.ts | Updates sandbox payload packaging expectations. |
| build/lib/copilot.ts | Retains SDK sandbox payloads; removes MXC filtering. |
| build/gulpfile.vscode.ts | Removes desktop MXC packaging handling. |
| build/gulpfile.reh.ts | Removes server MXC packaging handling. |
| build/darwin/verify-macho.ts | Removes MXC architecture exceptions. |
| build/darwin/create-universal-app.ts | Removes MXC universal-app handling. |
Files not reviewed (1)
- remote/package-lock.json: Generated file
🧠 Review effort: Balanced
Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.
Co-authored-by: Copilot <[email protected]>
Contributor
Co-authored-by: Copilot <[email protected]>
Dileep Yavanmandha (dileepyavan)
marked this pull request as ready for review
October 8, 2026 20:21
Contributor
📬 CODENOTIFYThe following users are being notified based on files changed in this PR: Anthony Kim (@anthonykim1)Matched files:
Dmitriy Vasyura (@dmitrivMS)Matched files:
|
Dileep Yavanmandha (dileepyavan)
enabled auto-merge (squash)
October 8, 2026 20:39
Aiday Marlen Kyzy (aiday-mar)
approved these changes
Oct 8, 2026
Dileep Yavanmandha (dileepyavan)
deleted the
DileepY/sandbox-windows-cleanup
branch
October 8, 2026 21:54
Alok Pandey (alok-108)
added a commit
to alok-108/vscode-docs
that referenced
this pull request
Oct 15, 2026
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.
Nick Trogh (ntrogh)
added a commit
to microsoft/vscode-docs
that referenced
this pull request
Oct 15, 2026
* Remove sandbox settings and policy that VS Code 1.142 removed 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. * Correctness pass --------- Co-authored-by: Nick Trogh <[email protected]>
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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
Testing