From 19eaf6ecdc078679eed96ea0f38b51ccbe3e3c43 Mon Sep 17 00:00:00 2001 From: filtered <176114999+webfiltered@users.noreply.github.com> Date: Fri, 11 Jul 2025 22:37:23 +1000 Subject: [PATCH] Fix SubgraphNode widget values ignored (#4429) --- src/utils/executionUtil.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/utils/executionUtil.ts b/src/utils/executionUtil.ts index fec35d9bd..5310dbb48 100644 --- a/src/utils/executionUtil.ts +++ b/src/utils/executionUtil.ts @@ -145,6 +145,13 @@ export const graphToPrompt = async ( const resolvedInput = node.resolveInput(i) if (!resolvedInput) continue + // Input resolved to a SubgraphNode widget + const { value } = resolvedInput + if (value) { + inputs[input.name] = Array.isArray(value) ? { __value__: value } : value + continue + } + inputs[input.name] = [ String(resolvedInput.origin_id), // @ts-expect-error link.origin_slot is already number.