From 4d9516b909e6ad8cea68b306619594f117b77617 Mon Sep 17 00:00:00 2001 From: xmarre Date: Sat, 14 Mar 2026 07:06:39 +0100 Subject: [PATCH] Fix caching sanitization logic --- comfy_execution/caching.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/comfy_execution/caching.py b/comfy_execution/caching.py index 02c9028af..b25673463 100644 --- a/comfy_execution/caching.py +++ b/comfy_execution/caching.py @@ -48,6 +48,7 @@ class CacheKeySet(ABC): class Unhashable: def __init__(self): + """Create a hashable sentinel value for unhashable prompt inputs.""" self.value = float("NaN") @@ -186,6 +187,7 @@ class CacheKeySetInputSignature(CacheKeySet): return to_hashable(signature) async def get_immediate_node_signature(self, dynprompt, node_id, ancestor_order_mapping): + """Build the cache-signature fragment for a node's immediate inputs.""" if not dynprompt.has_node(node_id): # This node doesn't exist -- we can't cache it. return [float("NaN")]