fix(BuildPipeline): recover CLIP/MODEL source path after CLIP.clone() strips qf_source_path
ComfyUI CLIP.clone() (CLIPSetLastLayer, LoRA loaders, common Qwen-Image-Edit graphs) copies only a fixed attribute whitelist that EXCLUDES qf_source_path, so a cloned CLIP reaching Build Pipeline lost the tag and raised "Cannot recover source file for CLIP". Add a clone-proof fallback in _extract_path that recovers the source path from ComfyUI s own cached_patcher_init (which ModelPatcher.clone() copies, so it survives the clone). Covers MODEL + CLIP (VAE has no cached_patcher_init, but also no clone() method, so it is never clone-stripped). Also harden _patched_load_clip to forward ckpt_paths positionally so an extra positional arg from a third-party loader cannot trigger "multiple values for ckpt_paths". Adds tests/test_extract_path_fallback.py (7 cases) + tests/pytest.ini. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Y
yejianhui committed
a713cb169de68a4ed8d4d5f1b198bf9be1899ad7
Parent: c01f07a