From e9d7eeb85f16e041a22000799b315859508d0fa9 Mon Sep 17 00:00:00 2001 From: shaohuzhang1 Date: Mon, 9 Nov 2026 18:13:51 +0800 Subject: [PATCH] fix: [Agent] When the "Specified Response" node is set to HTML format, the content in the debugging dialog appears empty, failing to render the HTML code correctly. --- ui/src/conversation-panel/core/aggregators.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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