Skip to content

Remove MXC sandbox support for local harness - #340446

Merged
Dileep Yavanmandha (dileepyavan) merged 6 commits into
mainfrom
DileepY/sandbox-windows-cleanup
Oct 8, 2026
Merged

Dileep Yavanmandha (dileepyavan) merged 6 commits into
mainfrom
DileepY/sandbox-windows-cleanup

Conversation

@dileepyavan

Copy link
Copy Markdown
Member

Summary

  • Remove MXC sandbox runtime support and related configuration
  • Remove remaining MXC build artifacts, entry points, dependencies, and tests
  • Update sandbox behavior and tests for the supported runtime paths

Testing

  • Not run as part of PR creation

Copilot AI balanced review requested due to automatic review settings October 8, 2026 06:36
@dileepyavan Dileep Yavanmandha (dileepyavan) changed the title Remove MXC sandbox support Remove MXC sandbox support for local harness Oct 8, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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.

@github-actions

github-actions Bot commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Screenshot Changes

Base: 0f5a4b26 Current: a0801a7c

Changed (1)

sessions/chatCompositeBar/MixedStatuses/Light
Before After
before after

@dileepyavan
Dileep Yavanmandha (dileepyavan) marked this pull request as ready for review October 8, 2026 20:21
@vs-code-engineering

Copy link
Copy Markdown
Contributor

📬 CODENOTIFY

The following users are being notified based on files changed in this PR:

Anthony Kim (@anthonykim1)

Matched files:

  • src/vs/workbench/contrib/terminal/terminalContribExports.ts
  • src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/terminal.chatAgentTools.contribution.ts
  • src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sandboxOutputAnalyzer.ts
  • src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/sandboxSettingsReader.ts
  • src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalChatAgentToolsConfiguration.ts
  • src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.ts
  • src/vs/workbench/contrib/terminalContrib/chatAgentTools/test/browser/terminalSandboxService.test.ts
  • src/vs/workbench/contrib/terminalContrib/chatAgentTools/test/common/terminalChatAgentToolsConfiguration.test.ts

Dmitriy Vasyura (@dmitrivMS)

Matched files:

  • test/sanity/src/context.ts

@dileepyavan
Dileep Yavanmandha (dileepyavan) merged commit c7282ad into main Oct 8, 2026
36 checks passed
@dileepyavan
Dileep Yavanmandha (dileepyavan) deleted the DileepY/sandbox-windows-cleanup branch October 8, 2026 21:54
@vs-code-engineering vs-code-engineering Bot added this to the 1.142.0 milestone Oct 8, 2026
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]>
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.

3 participants