Skip to content

Show unsandboxed execution reason in terminal tool confirmation#304302

Merged
alexdima merged 1 commit intomainfrom
alexd/unchanged-landfowl
Mar 23, 2026
Merged

Show unsandboxed execution reason in terminal tool confirmation#304302
alexdima merged 1 commit intomainfrom
alexd/unchanged-landfowl

Conversation

@alexdima
Copy link
Member

Display the model-provided reason for requesting sandbox bypass in the terminal command confirmation widget.

Fixes #304205

Display the model-provided reason for requesting sandbox bypass
in the terminal command confirmation widget. Fixes #304205
Copilot AI review requested due to automatic review settings March 23, 2026 23:19
@alexdima alexdima enabled auto-merge (squash) March 23, 2026 23:19
@alexdima alexdima self-assigned this Mar 23, 2026
@vs-code-engineering vs-code-engineering bot added this to the 1.114.0 milestone Mar 23, 2026
Copy link
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

Updates the terminal tool confirmation UI in VS Code Chat so that when a tool requests running a command outside the terminal sandbox, the model-provided reason is shown directly in the confirmation widget (not just in hover content).

Changes:

  • When requestUnsandboxedExecution is set, render a new disclaimer line containing the provided unsandboxed-execution reason (with a fallback if missing).
  • Use a themed info codicon alongside the reason text via MarkdownString.

@alexdima alexdima merged commit 69fd6c6 into main Mar 23, 2026
21 of 23 checks passed
@alexdima alexdima deleted the alexd/unchanged-landfowl branch March 23, 2026 23:38
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.

State why a command is run outside the sandbox

3 participants