From 15c157e1747978c64619e54915e4504894ac5eb7 Mon Sep 17 00:00:00 2001 From: Jedrzej Kosinski Date: Sat, 22 Nov 2025 00:23:38 -0800 Subject: [PATCH] Make curr_prefix creation happen in Autogrow, move curr_prefix in DynamicCombo to only be created if input exists in live_inputs --- comfy_api/latest/_io.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/comfy_api/latest/_io.py b/comfy_api/latest/_io.py index 9748db538..4d0fddb4a 100644 --- a/comfy_api/latest/_io.py +++ b/comfy_api/latest/_io.py @@ -923,6 +923,7 @@ class Autogrow(ComfyTypeI): self.input.validate() def add_to_dict_live_inputs(self, d: dict[str], live_inputs: dict[str], curr_prefix=''): + curr_prefix = f"{curr_prefix}{self.id}." real_inputs = [] for name, input in self.cached_inputs.items(): if name in live_inputs: @@ -1013,8 +1014,8 @@ class DynamicCombo(ComfyTypeI): def add_to_dict_live_inputs(self, d: dict[str], live_inputs: dict[str], curr_prefix=''): # check if dynamic input's id is in live_inputs - curr_prefix = f"{curr_prefix}{self.id}." if self.id in live_inputs: + curr_prefix = f"{curr_prefix}{self.id}." key = live_inputs[self.id] selected_option = None for option in self.options: