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.
TypeScript agentai-chatai-studioall-in-onecoding-agentdesktop-appfluximage-generationlinuxllmlocal-ailocal-llmopen-sourceprivacyself-hostedstable-diffusionuncensoreduncensored-aivideo-generationwindows
fix(create): a missing encoder or VAE is named instead of the checkpoint loader
purple2b75ba5cace7
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex feba2f76..304b7679 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -55,6 +55,11 @@ cloud catalogue. It also fixes the bugs reported on GitHub and Discord sincebin, because LM Studio offers no way to delete a model from outside, andDetails showed nothing. Details now says to delete it in LM Studio underMy Models, and does the same for other local servers.+- **A missing encoder or VAE no longer ends in "Value not in list".** When a+ Qwen-Image 2.1, MiniMax H3 or other newer model was missing one of its files,+ Create tried the old checkpoint graph and ComfyUI answered with+ "CheckpointLoaderSimple: Value not in list". Create now names the missing file+ and offers to download it.- **Installing the MLX engine in a browser dev build says what is wrong.** Itsaid "Unknown backend command". It now says that the engine install needs thedesktop app (issue 135).diff --git a/src/api/__tests__/a-missing-part-is-named-not-sent-to-the-checkpoint-loader.test.ts b/src/api/__tests__/a-missing-part-is-named-not-sent-to-the-checkpoint-loader.test.tsnew file mode 100644index 00000000..f11e0009--- /dev/null+++ b/src/api/__tests__/a-missing-part-is-named-not-sent-to-the-checkpoint-loader.test.ts@@ -0,0 +1,109 @@+/**+ * Discord 2026-09-29 (ssgsixassinators, MiniMax H3) and 2026-10-01+ * (boromirofgeo, qwen_image_2.1): "CheckpointLoaderSimple: Value not in list".+ * When a family's builder could not find a file, Create fell back to the old+ * fixed graph, which loads every non-FLUX model as an SDXL checkpoint. The+ * missing file now reaches Create as its own sentence and download, and the+ * old graph is only tried for the families it was written for.+ *+ * Run: npx vitest run src/api/__tests__/a-missing-part-is-named-not-sent-to-the-checkpoint-loader.test.ts+ */+import { describe, it, expect, vi, beforeEach } from 'vitest'++vi.mock('../comfyui-nodes', async (importOriginal) => {+ const actual = await importOriginal<typeof import('../comfyui-nodes')>()+ return { ...actual, getAllNodeInfo: vi.fn() }+})+vi.mock('../backend', async (importOriginal) => {+ const actual = await importOriginal<typeof import('../backend')>()+ return { ...actual, localFetch: vi.fn(), comfyuiUrl: (p: string) => `http://test${p}` }+})++import { buildDynamicWorkflow, WorkflowUnavailableError } from '../dynamic-workflow'+import { getAllNodeInfo } from '../comfyui-nodes'+import { legacyBuilderFits } from '../comfyui'+import { localFetch } from '../backend'++const FL2VA = 'minimax_h3_fl2va_pruned_int8_convrot.safetensors'+const ENCODER = 'qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors'+const VIDEO_VAE = 'minimax_h3_video_vae_int8_convrot.safetensors'+const AUDIO_VAE = 'minimax_h3_audio_vae_fp32.safetensors'++const H3_NODES: Record<string, unknown> = {+ UNETLoader: { input: { required: { unet_name: [[FL2VA]] } } },+ CLIPLoader: { input: { required: { clip_name: [[ENCODER]] } } },+ VAELoader: { input: { required: { vae_name: [[VIDEO_VAE]] } } },+ CheckpointLoaderSimple: { input: { required: { ckpt_name: [['juggernautXL.safetensors']] } } },+ MiniMaxH3ImageToVideo: { input: { required: {} } },+ MiniMaxH3ReferenceToVideo: { input: { required: {} } },+ BasicGuider: { input: { required: {} } },+ BasicScheduler: { input: { required: {} } },+ KSamplerSelect: { input: { required: {} } },+ RandomNoise: { input: { required: {} } },+ SamplerCustomAdvanced: { input: { required: {} } },+ VAEDecode: { input: { required: {} } },+ VAEDecodeAudio: { input: { required: {} } },+ CreateVideo: { input: { required: {} } },+ SaveVideo: { input: { required: {} } },+}++function serveEnums(vaes: string[], clips: string[]) {+ vi.mocked(localFetch).mockResolvedValue({+ ok: true,+ json: async () => ({+ CLIPLoader: { input: { required: { clip_name: [clips] } } },+ VAELoader: { input: { required: { vae_name: [vaes] } } },+ }),+ } as never)+}++const run = {+ model: FL2VA, prompt: 'rain on a tin roof', negativePrompt: '',+ sampler: 'res_multistep', scheduler: 'simple', steps: 20, cfgScale: 1,+ width: 1344, height: 768, seed: 7, batchSize: 1, frames: 124, fps: 24,+} as never++beforeEach(() => {+ vi.mocked(getAllNodeInfo).mockResolvedValue(H3_NODES as never)+})++describe('a wrapper family with a missing file', () => {+ it('MiniMax H3 without its audio VAE says so and offers that one file', async () => {+ serveEnums([VIDEO_VAE], [ENCODER])+ const err = await buildDynamicWorkflow(run, 'minimaxh3').catch((e) => e)+ expect(err).toBeInstanceOf(WorkflowUnavailableError)+ expect(err.message).toContain(AUDIO_VAE)+ expect(err.missing.map((m: { downloadFilename: string }) => m.downloadFilename)).toEqual([AUDIO_VAE])+ expect(err.missing[0].downloadUrl).toMatch(/Comfy-Org\/MiniMax-H3\/resolve\/main\/vae\//)+ })++ it('MiniMax H3 without its 32B encoder offers the encoder', async () => {+ serveEnums([VIDEO_VAE, AUDIO_VAE], [])+ const err = await buildDynamicWorkflow(run, 'minimaxh3').catch((e) => e)+ expect(err).toBeInstanceOf(WorkflowUnavailableError)+ expect(err.missing.map((m: { downloadFilename: string }) => m.downloadFilename)).toEqual([ENCODER])+ })++ // Negative control: with every file there, the same build goes through.+ it('with every file present the graph is built', async () => {+ serveEnums([VIDEO_VAE, AUDIO_VAE], [ENCODER])+ const wf = await buildDynamicWorkflow(run, 'minimaxh3')+ expect(Object.values(wf).some((n) => n.class_type === 'CheckpointLoaderSimple')).toBe(false)+ })+})++describe('the old fixed graphs', () => {+ it('stay for the families they were written for', () => {+ for (const t of ['sd15', 'sdxl', 'flux', 'flux2', 'unknown'] as const) expect(legacyBuilderFits(t, false)).toBe(true)+ for (const t of ['wan', 'animatediff'] as const) expect(legacyBuilderFits(t, true)).toBe(true)+ })++ it('never take Qwen-Image, MiniMax H3 or the other UNET families', () => {+ for (const t of ['qwenimage', 'qwenimage1', 'zimage', 'krea2', 'chroma', 'hidream', 'sd3', 'lumina2', 'ernie_image'] as const) {+ expect(legacyBuilderFits(t, false)).toBe(false)+ }+ for (const t of ['minimaxh3', 'wan22', 'hunyuan', 'ltx', 'framepack', 'svd'] as const) {+ expect(legacyBuilderFits(t, true)).toBe(false)+ }+ })+})diff --git a/src/api/comfyui.ts b/src/api/comfyui.tsindex 7e8f437e..4702732d 100644--- a/src/api/comfyui.ts+++ b/src/api/comfyui.ts@@ -17,6 +17,7 @@ import { isRecord, asString, asRecordArray } from '../types/json-guards'// Bundle-Daten gehören weder hierher noch nach discover.ts — sie liegen// jetzt in model-bundles.ts, das beide Seiten statisch lesen.import { getImageBundles, getVideoBundles } from './model-bundles'+import { COMPONENT_REGISTRY, type ComponentSpec } from './component-registry'// ─── Control-plane fetch timeouts ───//@@ -1554,9 +1555,17 @@ function isMinimaxEncoder(name: string): boolean {return name.toLowerCase().includes('minimax')}+/** An empty ComfyUI list still names the file this family needs, so Create+ * can offer it as a download instead of "a VAE for your model type". */+function nothingInstalled(kind: 'VAE' | 'text encoder', specs: (ComponentSpec | undefined)[]): Error {+ const files = specs.filter((x): x is ComponentSpec => !!x).map((x) => `"${x.downloadFilename}"`)+ if (files.length === 0) return new Error(`No ${kind} models found. Download a ${kind} for your model type from the Model Manager.`)+ return new Error(`No ${kind} models found. Download ${files.join(' and ')} from the Model Manager.`)+}+export async function findMatchingVAE(modelType: ModelType): Promise<string> {const vaes = await getVAEModels()- if (vaes.length === 0) throw new Error('No VAE models found. Download a VAE for your model type from the Model Manager.')+ if (vaes.length === 0) throw nothingInstalled('VAE', [COMPONENT_REGISTRY[modelType]?.vae])const lower = (s: string) => s.toLowerCase()if (modelType === 'zimage') {@@ -1693,7 +1702,7 @@ export async function findMatchingVAE(modelType: ModelType): Promise<string> {*/export async function findFluxCLIPPair(): Promise<{ t5: string; clipL: string }> {const clips = await getCLIPModels()- if (clips.length === 0) throw new Error('No text encoder models found. Download a CLIP/T5 model for your model type from the Model Manager.')+ if (clips.length === 0) throw nothingInstalled('text encoder', [COMPONENT_REGISTRY.flux?.clip, COMPONENT_REGISTRY.flux?.clipSecondary])const lower = (s: string) => s.toLowerCase()const t5 = clips.find(c => lower(c).includes('t5') && !lower(c).includes('umt5') && !lower(c).includes('oldt5'))const clipL = clips.find(c => lower(c).includes('clip_l'))@@ -1713,7 +1722,7 @@ export async function findFluxCLIPPair(): Promise<{ t5: string; clipL: string }>*/export async function findFramePackCLIPPair(): Promise<{ clipL: string; llavaLlama3: string }> {const clips = await getCLIPModels()- if (clips.length === 0) throw new Error('No text encoder models found. Download a CLIP/T5 model for your model type from the Model Manager.')+ if (clips.length === 0) throw nothingInstalled('text encoder', [COMPONENT_REGISTRY.framepack?.clip, COMPONENT_REGISTRY.framepack?.clipSecondary])const lower = (s: string) => s.toLowerCase()const clipL = clips.find(c => lower(c).includes('clip_l'))const llavaLlama3 = clips.find(c => lower(c).includes('llava'))@@ -1745,7 +1754,7 @@ export async function findMiniMaxAudioVAE(): Promise<string> {*/export async function findMatchingCLIP(modelType: ModelType, activeModelName?: string): Promise<string> {const clips = await getCLIPModels()- if (clips.length === 0) throw new Error('No text encoder models found. Download a CLIP/T5 model for your model type from the Model Manager.')+ if (clips.length === 0) throw nothingInstalled('text encoder', [COMPONENT_REGISTRY[modelType]?.clip])const lower = (s: string) => s.toLowerCase()const modelLc = activeModelName ? lower(activeModelName) : ''const modelIsFp4 = /fp4|nf4/.test(modelLc)@@ -2393,6 +2402,15 @@ export async function buildFluxImgWorkflow(params: GenerateParams): Promise<Comf// ─── Auto-select Image Workflow ───+/** The fixed graphs below know four image families and two video ones. Any+ * other family handed to them becomes a checkpoint or Wan 2.1 graph that+ * ComfyUI refuses with "Value not in list" (Discord 2026-10-01, Qwen-Image+ * 2.1 and MiniMax H3), so the caller keeps the builder's own error instead. */+export function legacyBuilderFits(modelType: ModelType, video: boolean): boolean {+ if (video) return modelType === 'wan' || modelType === 'animatediff' || modelType === 'sd15'+ return modelType === 'sd15' || modelType === 'sdxl' || modelType === 'flux' || modelType === 'flux2' || modelType === 'unknown'+}+export async function buildTxt2ImgWorkflow(params: GenerateParams, modelType: ModelType): Promise<ComfyApiGraph> {if (modelType === 'flux' || modelType === 'flux2') return buildFluxImgWorkflow(params)return buildSDXLImgWorkflow(params)diff --git a/src/api/component-registry.ts b/src/api/component-registry.tsindex 55cd4dfb..58220ecd 100644--- a/src/api/component-registry.ts+++ b/src/api/component-registry.ts@@ -41,6 +41,8 @@ export interface ComponentRequirements {clip?: ComponentSpec/** A second required text encoder (FLUX v1's clip_l alongside its T5). */clipSecondary?: ComponentSpec+ /** A separate sound autoencoder (MiniMax H3 decodes its audio with it). */+ audioVae?: ComponentSpec/** The CLIPLoader `type` widget value for this architecture, when the* loader is CLIPLoader (single encoder). */clipType?: string@@ -121,6 +123,7 @@ export const COMPONENT_REGISTRY: Record<string, ComponentRequirements> = {loader: 'UNETLoader', needsSeparateVAE: true, needsSeparateCLIP: true, clipType: 'minimax',vae: { matchPatterns: ['minimax_h3_video_vae', 'minimax'], downloadFilename: 'minimax_h3_video_vae_int8_convrot.safetensors', downloadUrl: 'https://huggingface.co/Comfy-Org/MiniMax-H3/resolve/main/vae/minimax_h3_video_vae_int8_convrot.safetensors', subfolder: 'vae', sizeGB: 2.8 },clip: { matchPatterns: ['minimax_h3_nvfp4', 'minimax'], downloadFilename: 'qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors', downloadUrl: 'https://huggingface.co/Comfy-Org/MiniMax-H3/resolve/main/text_encoders/qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors', subfolder: 'text_encoders', sizeGB: 15.7 },+ audioVae: { matchPatterns: ['minimax_h3_audio_vae'], downloadFilename: 'minimax_h3_audio_vae_fp32.safetensors', downloadUrl: 'https://huggingface.co/Comfy-Org/MiniMax-H3/resolve/main/vae/minimax_h3_audio_vae_fp32.safetensors', subfolder: 'vae', sizeGB: 0.6 },},mochi: {loader: 'UNETLoader', needsSeparateVAE: true, needsSeparateCLIP: true, clipType: 'mochi',diff --git a/src/api/dynamic-workflow.ts b/src/api/dynamic-workflow.tsindex bc82b81c..e4495547 100644--- a/src/api/dynamic-workflow.ts+++ b/src/api/dynamic-workflow.ts@@ -405,7 +405,7 @@ const LUMINA2_NEGATIVE_SYSTEM = 'You are an assistant designed to generate low-qfunction registrySpecsNamedIn(type: ModelType, message: string): ComponentSpec[] {const req = COMPONENT_REGISTRY[type]if (!req) return []- return [req.vae, req.clip, req.clipSecondary].filter(+ return [req.vae, req.clip, req.clipSecondary, req.audioVae].filter((s): s is ComponentSpec => !!s?.downloadUrl && message.includes(s.downloadFilename),)}@@ -635,17 +635,29 @@ export async function buildDynamicWorkflow(// ─── Wrapper Strategies (custom node pipelines — completely different node chains) ───+ // A wrapper builder looks up its own encoder and VAEs. A file it cannot+ // find has to reach Create as that sentence plus its download, never as a+ // reason to try the old checkpoint graph (Discord 2026-09-29 and 10-01:+ // "CheckpointLoaderSimple: Value not in list" for MiniMax H3).+ const wrapper = async (build: () => Promise<ComfyApiGraph> | ComfyApiGraph) => {+ try {+ return await build()+ } catch (err) {+ if (!(err instanceof Error) || err instanceof WorkflowUnavailableError) throw err+ throw new WorkflowUnavailableError(err.message, strategy, undefined, { missing: registrySpecsNamedIn(type, err.message) })+ }+ }if (strategy === 'svd') {- return buildSVDWorkflow(params as VideoParams, seed, nodes)+ return wrapper(() => buildSVDWorkflow(params as VideoParams, seed, nodes))}if (strategy === 'wan22') {- return await buildWan22Workflow(params as VideoParams, seed, nodes, allNodes)+ return wrapper(() => buildWan22Workflow(params as VideoParams, seed, nodes, allNodes))}if (strategy === 'framepack') {- return await buildFramePackWorkflow(params as VideoParams, seed, nodes)+ return wrapper(() => buildFramePackWorkflow(params as VideoParams, seed, nodes))}if (strategy === 'minimaxh3') {- return await buildMiniMaxH3Workflow(params as VideoParams, seed, allNodes)+ return wrapper(() => buildMiniMaxH3Workflow(params as VideoParams, seed, allNodes))}// ─── Standard Strategies (UNET/Checkpoint → CLIP → Latent → KSampler → VAEDecode) ───diff --git a/src/hooks/useCreate.ts b/src/hooks/useCreate.tsindex a04b5192..db171fe6 100644--- a/src/hooks/useCreate.ts+++ b/src/hooks/useCreate.ts@@ -19,6 +19,7 @@ import {isPromptQueued,buildTxt2ImgWorkflow,buildTxt2VidWorkflow,+ legacyBuilderFits,canRunVideoIntent,classifyModel,isI2VModel,@@ -1081,6 +1082,7 @@ export function useCreate() {if (dynErr instanceof Error && dynErr.name === 'WorkflowUnavailableError') {throw dynErr}+ if (!legacyBuilderFits(imageModelType, mode === 'video')) throw dynErr// Fallback to legacy builders if dynamic failsconsole.warn('[useCreate] Dynamic builder failed, using legacy:', dynErr)builderUsed = 'legacy'diff --git a/src/lib/release-notes.ts b/src/lib/release-notes.tsindex 08526536..f7f1b665 100644--- a/src/lib/release-notes.ts+++ b/src/lib/release-notes.ts@@ -156,7 +156,7 @@ export const RELEASE_NOTES: ReleaseNote[] = [},{title: 'Fixes from GitHub and Discord.',- detail: 'A group chat answers with every LU Engine model in it, also when the models sit in your Model Storage folder. Ollama models download without one already installed. A GGUF from the CivitAI search lands where ComfyUI reads it. A fresh ComfyUI install on Windows gets its own Python environment, which fixes "hipdnn_backend.dll Bad Image" on AMD cards. The window no longer disappears on Linux. A character trained on your own machine takes up to 100 photos, and Details on an LM Studio model says where to delete it.',+ detail: 'A group chat answers with every LU Engine model in it, also when the models sit in your Model Storage folder. Ollama models download without one already installed. A GGUF from the CivitAI search lands where ComfyUI reads it. A fresh ComfyUI install on Windows gets its own Python environment, which fixes "hipdnn_backend.dll Bad Image" on AMD cards. The window no longer disappears on Linux. A character trained on your own machine takes up to 100 photos, and Details on an LM Studio model says where to delete it. A newer image or video model with a missing encoder or VAE names that file and offers the download, instead of ending in "Value not in list".',},{title: 'Writing a long file no longer ends the run.',