fix: preserve sourceDocuments and metadata in ExecuteFlow node (#5972)
* fix: preserve sourceDocuments and metadata in ExecuteFlow node The Execute Flow node in AgentFlow V2 was only extracting the text content from chatflow responses, discarding sourceDocuments, usedTools, artifacts, and fileAnnotations metadata. This fix preserves all metadata fields in the return output and streams them via SSE when the node is the last in the flow. Fixes #5949 Signed-off-by: majiayu000 <1835304752@qq.com> * fix: address review feedback on PR #5972 - Use object destructuring for response.data metadata extraction - Extend SSE streaming test to cover artifacts and fileAnnotations Signed-off-by: majiayu000 <1835304752@qq.com> * Delete packages/components/nodes/agentflow/ExecuteFlow/ExecuteFlow.test.ts * Update ExecuteFlow.ts * Update ExecuteFlow.ts --------- Signed-off-by: majiayu000 <1835304752@qq.com> Co-authored-by: Henry Heng <henryheng@flowiseai.com>
L
lif committed
0527333be0446d01c717b2d23757b6247a5fa99a
Parent: b93ccf3
Committed by GitHub <noreply@github.com>
on 4/1/2026, 5:10:15 PM