Conversation
…chatHookContentPart.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR introduces a new chat progress “hook” part so hook execution results can be streamed from extensions, persisted in chat sessions, and rendered in the chat UI.
Changes:
- Adds proposed API surface for
ChatResponseHookPartand ahookProgress(...)helper onChatResponseStream. - Extends the internal chat model/progress unions and session operation log schema to recognize the new
kind: 'hook'part. - Implements a new UI content part (
ChatHookContentPart) and wires it into the chat list renderer.
Reviewed changes
Copilot reviewed 10 out of 11 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| src/vscode-dts/vscode.proposed.chatParticipantAdditions.d.ts | Adds proposed API types + stream method for reporting hook execution results. |
| src/vs/workbench/contrib/chat/common/model/chatSessionOperationLog.ts | Updates persistence equality logic to account for the new hook part kind. |
| src/vs/workbench/contrib/chat/common/model/chatModel.ts | Adds hook to response/history unions and response stringification ignore list. |
| src/vs/workbench/contrib/chat/common/chatService/chatService.ts | Defines ChatHookType, ChatHookOutcome, and IChatHookPart and includes it in IChatProgress. |
| src/vs/workbench/contrib/chat/browser/widget/chatListRenderer.ts | Routes kind: 'hook' content to a dedicated renderer content part. |
| src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatHookContentPart.css | Styles hook outcome icon and hook detail display. |
| src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatHookContentPart.ts | Implements the collapsible hook result UI component. |
| src/vs/workbench/api/common/extHostTypes.ts | Adds ext host-side ChatResponseHookPart type for the API implementation. |
| src/vs/workbench/api/common/extHostTypeConverters.ts | Adds DTO conversions and part detection for ChatResponseHookPart. |
| src/vs/workbench/api/common/extHostChatAgents2.ts | Adds hookProgress(...) streaming method implementation in the ext host response stream. |
| src/vs/workbench/api/common/extHost.api.impl.ts | Exposes ChatResponseHookPart constructor on the proposed API object. |
src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatHookContentPart.ts
Outdated
Show resolved
Hide resolved
justschen
commented
Feb 6, 2026
justschen
commented
Feb 6, 2026
src/vs/workbench/contrib/chat/common/chatService/chatService.ts
Outdated
Show resolved
Hide resolved
pwang347
reviewed
Feb 6, 2026
pwang347
reviewed
Feb 6, 2026
src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatHookContentPart.ts
Outdated
Show resolved
Hide resolved
pwang347
reviewed
Feb 6, 2026
src/vs/workbench/contrib/chat/common/chatService/chatService.ts
Outdated
Show resolved
Hide resolved
pwang347
reviewed
Feb 6, 2026
src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatHookContentPart.ts
Outdated
Show resolved
Hide resolved
pwang347
previously approved these changes
Feb 6, 2026
dmitrivMS
previously approved these changes
Feb 6, 2026
pwang347
previously approved these changes
Feb 6, 2026
pwang347
approved these changes
Feb 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
adds specific hook part for rendering
cc @pwang347 @roblourens