From bd38ff25a1a892136d6672e826c9aaa34713183d Mon Sep 17 00:00:00 2001 From: "Dr.Lt.Data" Date: Sat, 14 Feb 2026 07:40:27 +0900 Subject: [PATCH] fix(deps): reset use_unified_resolver flag on startup fallback When the unified resolver fails at startup (compile error, install error, uv unavailable, or generic exception), the runtime flag was not being reset to False. This caused subsequent runtime installs to incorrectly defer pip dependencies instead of falling back to per-node pip install. Co-Authored-By: Claude Opus 4.6 --- comfyui_manager/prestartup_script.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/comfyui_manager/prestartup_script.py b/comfyui_manager/prestartup_script.py index cc1a381d..121a5194 100644 --- a/comfyui_manager/prestartup_script.py +++ b/comfyui_manager/prestartup_script.py @@ -785,10 +785,13 @@ if manager_util.use_unified_resolver: _unified_resolver_succeeded = True logging.info("[UnifiedDepResolver] startup batch resolution succeeded") else: + manager_util.use_unified_resolver = False logging.warning("[UnifiedDepResolver] startup batch failed: %s, falling back to per-node pip", _result.error) except UvNotAvailableError: + manager_util.use_unified_resolver = False logging.warning("[UnifiedDepResolver] uv not available at startup, falling back to per-node pip") except Exception as e: + manager_util.use_unified_resolver = False logging.warning("[UnifiedDepResolver] startup error: %s, falling back to per-node pip", e) # Check if script_list_path exists