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.