Skip to content

Updating label to indicate a command executed in sandbox#303035

Merged
dileepyavan merged 6 commits intomainfrom
DileepY/302913
Mar 19, 2026
Merged

Updating label to indicate a command executed in sandbox#303035
dileepyavan merged 6 commits intomainfrom
DileepY/302913

Conversation

@dileepyavan
Copy link
Member

@dileepyavan dileepyavan commented Mar 19, 2026

fixes #302913

Copilot AI review requested due to automatic review settings March 19, 2026 00:58
@dileepyavan dileepyavan enabled auto-merge (squash) March 19, 2026 01:00
@vs-code-engineering vs-code-engineering bot added this to the 1.113.0 milestone Mar 19, 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 chat “Run in terminal” tool UI messaging to indicate when a command is executed via the terminal sandbox (lock icon + sandbox phrasing), aligning with issue #302913.

Changes:

  • Add sandbox-aware invocation messaging in RunInTerminalTool (lock icon + “Running in sandbox” variants).
  • Update chat terminal tool progress/collapsible header rendering to reflect sandbox wrapping.
  • Add a unit test covering sandbox-wrapped invocation messaging/data.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

File Description
src/vs/workbench/contrib/terminalContrib/chatAgentTools/test/electron-browser/runInTerminalTool.test.ts Adds a test asserting sandbox invocation messaging and isSandboxWrapped propagation.
src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.ts Switches the tool invocation message to sandbox-specific labels when isSandboxWrapped is true.
src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolProgressPart.ts Passes sandbox state into the collapsible wrapper and renders a lock icon label for sandbox runs.

You can also share your feedback on Copilot code review. Take the survey.

alexdima
alexdima previously approved these changes Mar 19, 2026
alexdima
alexdima previously approved these changes Mar 19, 2026
@dileepyavan dileepyavan merged commit df553d1 into main Mar 19, 2026
19 checks passed
@dileepyavan dileepyavan deleted the DileepY/302913 branch March 19, 2026 09:32
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.

Tweak the run_in_terminal tool label and icon to indicate sandbox usage

4 participants