Fixes for missing handler to enable streaming for terminal output.

This commit is contained in:
chezsmithy 2025-04-15 14:42:04 -07:00
parent 6718832aa8
commit 97ba89eae4
2 changed files with 12 additions and 0 deletions

View file

@ -734,6 +734,14 @@ export class Core {
this.send("process/isBackgroundedResponse", { isBackgrounded }, messageId);
return true; // Return true to indicate the message was handled successfully
});
// Handle partial output updates from tool calls
on("toolCallPartialOutput", ({ data }) => {
// This handler simply forwards the message to the webview
// The actual data processing happens in the Chat component's useWebviewListener
this.send("toolCallPartialOutput", data);
return;
});
}
private async isItemTooBig(item: ContextItemWithId) {

View file

@ -44,6 +44,10 @@ export type ToCoreFromIdeOrWebviewProtocol = {
// Special
ping: [string, string];
abort: [undefined, void];
toolCallPartialOutput: [
{ toolCallId: string; contextItems: any[] },
void,
];
// History
"history/list": [ListHistoryOptions, SessionMetadata[]];