From 3d995668406f8d65892f6ecffd99d0518c7b7b53 Mon Sep 17 00:00:00 2001 From: Deep Mehta <42841935+deepme987@users.noreply.github.com> Date: Wed, 4 Mar 2026 20:04:07 -0800 Subject: [PATCH] feat: add model-to-node backlinks for upcoming custom nodes (#9411) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Summary - Add `quickRegister()` mappings for models being added in open cloud PRs so the "Use" button works when those node packs ship ## Mappings added | Cloud PR | Node Pack | Model Directories | Loader Node | |----------|-----------|-------------------|-------------| | [#2645](https://github.com/Comfy-Org/cloud/pull/2645) | ComfyUI-HunyuanVideoWrapper | `LLM/llava-llama-3-8b-*` | `DownloadAndLoadHyVideoTextEncoder` | | [#2598](https://github.com/Comfy-Org/cloud/pull/2598) | comfyui-cogvideoxwrapper | `CogVideo/GGUF`, `CogVideo/ControlNet` | `DownloadAndLoadCogVideoGGUFModel`, `DownloadAndLoadCogVideoControlNet` | | [#2594](https://github.com/Comfy-Org/cloud/pull/2594) | ComfyUI-DynamiCrafterWrapper | `checkpoints/dynamicrafter{,/controlnet}` | `DownloadAndLoadDynamiCrafterModel`, `DownloadAndLoadDynamiCrafterCNModel` | | [#2537](https://github.com/Comfy-Org/cloud/pull/2537) | ComfyUI_LayerStyle_Advance | `BEN`, `BiRefNet/pth`, `onnx/human-parts`, `lama` | `LS_LoadBenModel`, `LS_LoadBiRefNetModel`, `LS_HumanPartsUltra`, `LaMa` | ## Safe to merge before backend Unknown node classes are silently skipped by `registerNodeProvider()` — the mapping becomes a no-op until the node pack is deployed. Zero risk. ## Test plan - [ ] Verify no runtime errors on load (unknown classes are skipped gracefully) - [ ] After backend PRs merge, verify "Use" button creates correct node for each model type 🤖 Generated with [Claude Code](https://claude.com/claude-code) ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-9411-feat-add-model-to-node-backlinks-for-upcoming-custom-nodes-31a6d73d3650811bb129e557450f263a) by [Unito](https://www.unito.io) Co-authored-by: Claude Opus 4.6 --- src/stores/modelToNodeStore.ts | 38 ++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/src/stores/modelToNodeStore.ts b/src/stores/modelToNodeStore.ts index 5bc3902cee..3699678642 100644 --- a/src/stores/modelToNodeStore.ts +++ b/src/stores/modelToNodeStore.ts @@ -346,6 +346,44 @@ export const useModelToNodeStore = defineStore('modelToNode', () => { // Detection models (vitpose, yolo) quickRegister('detection', 'OnnxDetectionModelLoader', 'yolo_model') + + // HunyuanVideo text encoders (ComfyUI-HunyuanVideoWrapper) + quickRegister( + 'LLM/llava-llama-3-8b-text-encoder-tokenizer', + 'DownloadAndLoadHyVideoTextEncoder', + 'llm_model' + ) + quickRegister( + 'LLM/llava-llama-3-8b-v1_1-transformers', + 'DownloadAndLoadHyVideoTextEncoder', + 'llm_model' + ) + + // CogVideoX models (comfyui-cogvideoxwrapper) + quickRegister('CogVideo/GGUF', 'DownloadAndLoadCogVideoGGUFModel', 'model') + quickRegister( + 'CogVideo/ControlNet', + 'DownloadAndLoadCogVideoControlNet', + 'model' + ) + + // DynamiCrafter models (ComfyUI-DynamiCrafterWrapper) + quickRegister( + 'checkpoints/dynamicrafter', + 'DownloadAndLoadDynamiCrafterModel', + 'model' + ) + quickRegister( + 'checkpoints/dynamicrafter/controlnet', + 'DownloadAndLoadDynamiCrafterCNModel', + 'model' + ) + + // LayerStyle models (ComfyUI_LayerStyle_Advance) + quickRegister('BEN', 'LS_LoadBenModel', 'model') + quickRegister('BiRefNet/pth', 'LS_LoadBiRefNetModel', 'model') + quickRegister('onnx/human-parts', 'LS_HumanPartsUltra', '') + quickRegister('lama', 'LaMa', 'lama_model') } return {