Skip to content

The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.

fix: FramePack preflight — check custom nodes before generation

PurpleDoubleDfc90fe209dd5
diff --git a/CLAUDE.md b/CLAUDE.md
index 394f32e9..746b6fd8 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -74,6 +74,8 @@ src-tauri/src/commands/ — Rust commands: install, process, download, prox
40. **Gemma 4 31B Heretic download URL fix** — llmfan46/gemma-4-31B-it-uncensored-heretic-GGUF repo was deleted (404). Replaced with Stabhappy/gemma-4-31B-it-heretic-Gguf. All 105 download URLs verified HTTP 200/302.
41. **I2V image upload fix** — uploadImage() used localFetch() which only accepts string body, not FormData. FormData was silently corrupted (sent as "[object FormData]") and Content-Type was forced to application/json instead of multipart/form-data. Fixed: use direct fetch() which handles FormData natively.
42. **FramePack workflow node names fix** — Kijai wrapper updated node names: FramePackModelLoader→LoadFramePackModel, removed FramePackEncode (image goes directly to FramePackSampler as start_latent). Updated dynamic-workflow.ts builder, comfyui-nodes.ts categorization, discover.ts CUSTOM_NODE_REGISTRY, and test fixtures.
+43. **FramePack workflow validation fix** — base_precision fp8→bf16, sampler unipc→unipc_bh2, added VAEEncode between LoadImage and FramePackSampler (LATENT type required, not IMAGE).
+44. **FramePack preflight custom node check** — Added framepack to customNodeModels in preflight.ts. Now checks for LoadFramePackModel + FramePackSampler before generation.
### What's LEFT to finish v2.3.0:
1. **Tauri proxy_localhost investigation** — reqwest in Tauri subprocess can't reach localhost. Direct fetch workaround in place but root cause unknown. Low priority since workaround works. Deferred to next release.
diff --git a/src/api/preflight.ts b/src/api/preflight.ts
index a8b24808..5341be5e 100644
--- a/src/api/preflight.ts
+++ b/src/api/preflight.ts
@@ -64,6 +64,10 @@ export async function preflightCheck(
// Models with custom wrapper nodes (Kijai/community custom_nodes)
const customNodeModels: Record<string, { nodes: string[]; installHint: string }> = {
+ framepack: {
+ nodes: ['LoadFramePackModel', 'FramePackSampler'],
+ installHint: 'ComfyUI-FramePackWrapper custom nodes. Install via Discover > Video > FramePack bundle.',
+ },
cogvideo: {
nodes: ['CogVideoXModelLoader', 'CogVideoXSampler'],
installHint: 'ComfyUI-CogVideoXWrapper custom nodes. Install from Model Manager.',