Skip to content

Comments

Fix build from breaking chat participant API change#8415

Merged
alexr00 merged 1 commit intomainfrom
alexr00/open-primate
Jan 23, 2026
Merged

Fix build from breaking chat participant API change#8415
alexr00 merged 1 commit intomainfrom
alexr00/open-primate

Conversation

@alexr00
Copy link
Member

@alexr00 alexr00 commented Jan 23, 2026

No description provided.

Copilot AI review requested due to automatic review settings January 23, 2026 14:19
@alexr00 alexr00 enabled auto-merge (squash) January 23, 2026 14:19
@alexr00 alexr00 self-assigned this Jan 23, 2026
@vs-code-engineering vs-code-engineering bot added this to the January 2026 milestone Jan 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

This PR fixes a breaking change in the VS Code chat participant API where the request.tools Map changed from using string keys (tool names) to using tool object keys (LanguageModelToolInformation). Additionally, it updates several VS Code proposed API type definitions to reflect upstream changes.

Changes:

  • Fixed request.tools usage to use tool objects as Map keys instead of tool names
  • Updated type definitions for chat sessions, participants, and context providers
  • Added new API surface for chat session items, workspace edits, and tool invocation streaming
  • Deprecated old session ID properties in favor of session resource URIs

Reviewed changes

Copilot reviewed 1 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/lm/participants.ts Fixed breaking API change by using tool objects as Map keys instead of tool.name strings
src/@types/vscode.proposed.chatSessionsProvider.d.ts Updated chat session provider API definitions with new controllers, collections, and deprecated timing properties; contains a critical bug on line 408
src/@types/vscode.proposed.chatParticipantPrivate.d.ts Updated with deprecated sessionId, new sessionResource, and subagent properties; removed CustomAgentsProvider interface
src/@types/vscode.proposed.chatParticipantAdditions.d.ts Added workspace edit support, tool invocation streaming, token usage reporting; replaced prepareToolInvocation with beginToolInvocation/updateToolInvocation
src/@types/vscode.proposed.chatContextProvider.d.ts Updated documentation for chat context provider activation events and usage

@alexr00 alexr00 merged commit b99fbe9 into main Jan 23, 2026
12 checks passed
@alexr00 alexr00 deleted the alexr00/open-primate branch January 23, 2026 15:35
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.

2 participants