Skip to content

Support display commands for terminal commands in background agents#296261

Merged
DonJayamanne merged 1 commit into
mainfrom
don/yammering-echidna
Feb 19, 2026
Merged

Support display commands for terminal commands in background agents#296261
DonJayamanne merged 1 commit into
mainfrom
don/yammering-echidna

Conversation

@DonJayamanne
Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings February 19, 2026 11:14
@DonJayamanne DonJayamanne self-assigned this Feb 19, 2026
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 support for customizing how terminal commands are displayed in the chat UI without changing the actual command that gets executed. This is particularly useful for background agents that may want to show extracted code (e.g., Python code from a python -c "..." command) with appropriate syntax highlighting instead of the full shell command.

Changes:

  • Added presentationOverrides property to the ChatTerminalToolInvocationData API interface to allow overriding command display and syntax highlighting language
  • Updated the type converter to properly transform the extension API data to internal format including the new presentation overrides
  • Modified the terminal tool progress part to use the presentation overrides when displaying commands in collapsible wrappers for the thinking container

Reviewed changes

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

File Description
src/vscode-dts/vscode.proposed.chatParticipantAdditions.d.ts Added optional presentationOverrides property to ChatTerminalToolInvocationData interface with commandLine and language fields
src/vs/workbench/api/common/extHostTypeConverters.ts Added conversion logic for presentationOverrides from extension API format to internal IChatTerminalToolInvocationData format
src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolProgressPart.ts Updated to use displayCommand (derived from presentationOverrides) when creating collapsible wrapper for terminal tools in thinking container

@DonJayamanne DonJayamanne marked this pull request as ready for review February 19, 2026 11:39
@DonJayamanne DonJayamanne enabled auto-merge (squash) February 19, 2026 11:40
@vs-code-engineering vs-code-engineering Bot added this to the February 2026 milestone Feb 19, 2026
@DonJayamanne DonJayamanne merged commit b9eb51b into main Feb 19, 2026
24 checks passed
@DonJayamanne DonJayamanne deleted the don/yammering-echidna branch February 19, 2026 11:48
@vs-code-engineering vs-code-engineering Bot locked and limited conversation to collaborators Apr 5, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants