Skip to content

Fix deprecated terminal sandbox setting fallback#313593

Merged
dileepyavan merged 3 commits into
mainfrom
DileepY/settings_sandbox
Apr 30, 2026
Merged

Fix deprecated terminal sandbox setting fallback#313593
dileepyavan merged 3 commits into
mainfrom
DileepY/settings_sandbox

Conversation

@dileepyavan
Copy link
Copy Markdown
Member

@dileepyavan dileepyavan commented Apr 30, 2026

Summary

fixes #313409

Copilot AI review requested due to automatic review settings April 30, 2026 21:44
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 deprecated terminal sandbox setting fallback so chat.agent.sandbox is only used when that exact deprecated key is explicitly set by the user, avoiding accidental fallback caused by namespace/child-setting objects returned from inspect().

Changes:

  • Update deprecated fallback logic to additionally require the deprecated key to be present in configurationService.keys().user.
  • Add a test covering namespace conflicts where inspect('chat.agent.sandbox') returns an object due to child settings.
  • Keep/adjust tests ensuring deprecated settings are ignored outside user scope while preserving exact-key fallback behavior.
Show a summary per file
File Description
src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.ts Tightens deprecated fallback by checking the exact deprecated key exists in user-configured keys.
src/vs/workbench/contrib/terminalContrib/chatAgentTools/test/browser/terminalSandboxService.test.ts Adds coverage for namespace-conflict behavior and preserves explicit deprecated-key fallback coverage.

Copilot's findings

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

@dileepyavan dileepyavan enabled auto-merge (squash) April 30, 2026 22:29
@dileepyavan dileepyavan merged commit fe9bd6a into main Apr 30, 2026
26 checks passed
@dileepyavan dileepyavan deleted the DileepY/settings_sandbox branch April 30, 2026 22:45
@vs-code-engineering vs-code-engineering Bot added this to the 1.119.0 milestone Apr 30, 2026
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