From 1e53f2aacb9c0f82ec8e01941ccc2fbe5d8f0c03 Mon Sep 17 00:00:00 2001 From: "Alexander G. Morano" Date: Wed, 14 May 2025 21:19:47 -0400 Subject: [PATCH] Update execution.py patch to parse widget values not just input values. When widgets serialize as list on the JS side, they would never get converted back to list types (only if their input slot was connected to a value). This allows inputs/widget values to serialize to a proper list (i.e. convert if the value is dict with a {"value"} entry) just like inputs. --- execution.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/execution.py b/execution.py index e5d1c69d9..6cca154e6 100644 --- a/execution.py +++ b/execution.py @@ -112,6 +112,9 @@ def get_input_data(inputs, class_def, unique_id, outputs=None, dynprompt=None, e for x in inputs: input_data = inputs[x] _, input_category, input_info = get_input_info(class_def, x, valid_inputs) + # patch to parse widget values not just input values + if isinstance(input_data, dict) and "__value__" in input_data: + input_data = input_data["__value__"] def mark_missing(): missing_keys[x] = True input_data_all[x] = (None,)