Fix SubgraphNode widget values ignored (#4429)

This commit is contained in:
filtered
2025-07-11 22:37:23 +10:00
committed by GitHub
parent 054077c445
commit 19eaf6ecdc

View File

@@ -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.