Skip to content

Fix forced sandbox issue#313409

Merged
jruales merged 1 commit into
mainfrom
jruales/2026.04-fix-forced-sandbox
Apr 30, 2026
Merged

Fix forced sandbox issue#313409
jruales merged 1 commit into
mainfrom
jruales/2026.04-fix-forced-sandbox

Conversation

@jruales
Copy link
Copy Markdown
Contributor

@jruales jruales commented Apr 30, 2026

Copilot AI review requested due to automatic review settings April 30, 2026 01:36
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Fixes a configuration migration edge case where the deprecated chat.agent.sandbox key is now also a namespace prefix for newer settings, which caused the sandbox to be force-enabled on restart when filesystem sandbox settings were present.

Changes:

  • Updates the chat.agent.sandbox migration to only run when the deprecated setting value is actually a boolean.
  • Prevents writing back undefined to the deprecated prefix key when it’s acting as a derived namespace object, avoiding clobbering/side effects on sub-settings.
Show a summary per file
File Description
src/vs/workbench/contrib/terminal/common/terminalConfiguration.ts Hardens the deprecated chat.agent.sandbox configuration migration to avoid misinterpreting namespace objects and forcing chat.agent.sandbox.enabled to "on".

Copilot's findings

  • Files reviewed: 1/1 changed files
  • Comments generated: 0

@jruales jruales enabled auto-merge (squash) April 30, 2026 01:45
@jruales jruales merged commit 82d6660 into main Apr 30, 2026
30 checks passed
@jruales jruales deleted the jruales/2026.04-fix-forced-sandbox branch April 30, 2026 01:54
@vs-code-engineering vs-code-engineering Bot added this to the 1.119.0 milestone Apr 30, 2026
@isidorn
Copy link
Copy Markdown
Collaborator

isidorn commented Apr 30, 2026

Thank you very much for this one 🙏

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.

Setting chat.agent.sandbox.fileSystem.mac forcefully enables chat.agent.sandbox.enabled on restart

5 participants