From 9d6a7e7e6f547ab1cade6dc17e7e2031d6523948 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Tue, 10 Jun 2025 10:59:10 -0400 Subject: [PATCH] Assist Chat: handle intent progress delta not always being there (#25730) handle intent progress data type change --- src/components/ha-assist-chat.ts | 2 +- src/data/assist_pipeline.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/ha-assist-chat.ts b/src/components/ha-assist-chat.ts index ce069a94ee..3f4c3f75a4 100644 --- a/src/components/ha-assist-chat.ts +++ b/src/components/ha-assist-chat.ts @@ -509,7 +509,7 @@ export class HaAssistChat extends LitElement { this.requestUpdate("_conversation"); }, processEvent: (event: PipelineRunEvent) => { - if (event.type === "intent-progress") { + if (event.type === "intent-progress" && event.data.chat_log_delta) { const delta = event.data.chat_log_delta; // new message diff --git a/src/data/assist_pipeline.ts b/src/data/assist_pipeline.ts index 8c6d10949a..e2b1e7a71b 100644 --- a/src/data/assist_pipeline.ts +++ b/src/data/assist_pipeline.ts @@ -134,7 +134,8 @@ export interface ConversationChatLogToolResultDelta { interface PipelineIntentProgressEvent extends PipelineEventBase { type: "intent-progress"; data: { - chat_log_delta: + tts_start_streaming?: boolean; + chat_log_delta?: | Partial // These always come in 1 chunk | ConversationChatLogToolResultDelta;