Skip to content

Add subagent name to chat request for logging#289007

Merged
roblourens merged 2 commits intomainfrom
roblou/printed-canid
Jan 20, 2026
Merged

Add subagent name to chat request for logging#289007
roblourens merged 2 commits intomainfrom
roblou/printed-canid

Conversation

@roblourens
Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings January 20, 2026 03:38
@roblourens roblourens enabled auto-merge (squash) January 20, 2026 03:38
@roblourens roblourens self-assigned this Jan 20, 2026
@vs-code-engineering vs-code-engineering bot added this to the January 2026 milestone Jan 20, 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 pull request adds a subAgentName field to track the display name of subagents throughout the chat request pipeline for logging purposes. The field is propagated from the tool invocation through the chat request flow to the extension API.

Changes:

  • Added subAgentName optional property to chat request and tool invocation interfaces
  • Threaded the field through extension host protocol and type converters
  • Populated the field from args.agentName in the RunSubagentTool implementation

Reviewed changes

Copilot reviewed 11 out of 13 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/vscode-dts/vscode.proposed.chatParticipantPrivate.d.ts Added subAgentName property to ChatRequest interface and LanguageModelToolInvocationOptions
src/vscode-dts/vscode.proposed.chatParticipantAdditions.d.ts Added subAgentName to ChatToolInvocationPart class and beginToolInvocation method signature
src/vs/workbench/contrib/chat/common/tools/languageModelToolsService.ts Added subAgentName to IToolInvocation and IBeginToolCallOptions interfaces
src/vs/workbench/contrib/chat/common/tools/builtinTools/runSubagentTool.ts Populated subAgentName from args.agentName when creating agent request
src/vs/workbench/contrib/chat/common/participants/chatAgents.ts Added subAgentName property to IChatAgentRequest interface
src/vs/workbench/contrib/chat/common/model/chatProgressTypes/chatToolInvocation.ts Added subAgentName to IStreamingToolCallOptions and ChatToolInvocation class
src/vs/workbench/contrib/chat/browser/tools/languageModelToolsService.ts Threaded subAgentName through ChatToolInvocation creation and beginToolCall method
src/vs/workbench/api/common/extHostTypes.ts Added subAgentName property to ChatToolInvocationPart class
src/vs/workbench/api/common/extHostTypeConverters.ts Added conversion logic for subAgentName in ChatToolInvocationPart and ChatAgentRequest converters
src/vs/workbench/api/common/extHostLanguageModelTools.ts Propagated subAgentName through tool invocation options
src/vs/workbench/api/common/extHostChatAgents2.ts Added subAgentName to beginToolInvocation DTO creation
src/vs/workbench/api/common/extHost.protocol.ts Added subAgentName property to IChatBeginToolInvocationDto interface
src/vs/workbench/api/browser/mainThreadChatAgents2.ts Threaded subAgentName through to languageModelToolsService.beginToolCall

@roblourens roblourens merged commit 31ee1e4 into main Jan 20, 2026
32 of 33 checks passed
@roblourens roblourens deleted the roblou/printed-canid branch January 20, 2026 06:37
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Mar 6, 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