diff --git a/ui/src/conversation-panel/core/aggregators.ts b/ui/src/conversation-panel/core/aggregators.ts index 727df2d72b4..0f418120c15 100644 --- a/ui/src/conversation-panel/core/aggregators.ts +++ b/ui/src/conversation-panel/core/aggregators.ts @@ -102,7 +102,15 @@ const GROUP = (prev: Partial = {}, chunk: Partial) => extra: chunk.extra ?? prev.extra, } } - +const HTML = (prev: Partial = {}, chunk: Partial) => { + return { + type: 'HTML', + id: chunk.id ?? prev.id, + content: (prev.content || '') + (chunk.content || ''), + workflowRunId: chunk.workflowRunId ?? prev.workflowRunId, + extra: chunk.extra ?? prev.extra, + } +} export const aggregators = { TEXT, REASONING, @@ -111,4 +119,5 @@ export const aggregators = { FORM, PROGRESS, GROUP, + HTML } as Record