Skip to content

Add isSandbox field to runInTerminal telemetry#305127

Merged
isidorn merged 1 commit intomainfrom
isidor/runInTerminal-sandbox-telemetry
Mar 26, 2026
Merged

Add isSandbox field to runInTerminal telemetry#305127
isidorn merged 1 commit intomainfrom
isidor/runInTerminal-sandbox-telemetry

Conversation

@isidorn
Copy link
Copy Markdown
Collaborator

@isidorn isidorn commented Mar 26, 2026

Adds isSandbox (0 | 1) to the toolUse.runInTerminal telemetry event to track whether commands run inside the terminal sandbox.

Reports whether the command was run inside the terminal sandbox (0 | 1).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings March 26, 2026 11:16
@isidorn isidorn self-assigned this Mar 26, 2026
@isidorn isidorn added this to the 1.114.0 milestone Mar 26, 2026
@isidorn isidorn enabled auto-merge March 26, 2026 11:17
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

This PR adds terminal sandbox execution attribution to the toolUse.runInTerminal telemetry so usage can be segmented by whether a command ran inside the terminal sandbox.

Changes:

  • Adds isSandbox (0|1) to the toolUse.runInTerminal telemetry event payload and classification.
  • Wires an isSandboxWrapped flag from RunInTerminalTool invocation state into telemetry mapping.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.ts Adds isSandboxWrapped to the telemetry state passed on invocation completion.
src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalToolTelemetry.ts Extends the telemetry schema/classification with isSandbox and maps it from the invocation state.

@isidorn isidorn merged commit 34c6955 into main Mar 26, 2026
32 of 33 checks passed
@isidorn isidorn deleted the isidor/runInTerminal-sandbox-telemetry branch March 26, 2026 13:08
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