From 702d0c889cf182da40e2f3ce56a9f22df720d5ff Mon Sep 17 00:00:00 2001 From: Vito Sansevero Date: Mon, 9 Feb 2026 16:29:11 -0800 Subject: [PATCH] fix(seed_history): accept legacy kwargs for backward compatibility Old workflows may still pass 'mode' to output_seed. Using **kwargs prevents TypeError when ComfyUI invokes with the extra argument. --- kikotools/tools/seed_history/node.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kikotools/tools/seed_history/node.py b/kikotools/tools/seed_history/node.py index 0d20d91..3cd40a9 100644 --- a/kikotools/tools/seed_history/node.py +++ b/kikotools/tools/seed_history/node.py @@ -41,12 +41,13 @@ class SeedHistoryNode(ComfyAssetsBaseNode): FUNCTION = "output_seed" CATEGORY = "🫶 ComfyAssets/🌱 Seeds" - def output_seed(self, seed: int) -> Tuple[int]: + def output_seed(self, seed: int, **kwargs) -> Tuple[int]: """ Output the seed value for use in other nodes. Args: seed: Input seed value + **kwargs: Accepts legacy parameters (e.g. mode) for backward compatibility Returns: Tuple containing the seed value