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(create): the starter bundle is one the lane can actually run

David321a64ab3438
diff --git a/src/api/__tests__/video-lane-models.test.ts b/src/api/__tests__/video-lane-models.test.ts
index a9162d37..0d2e4c99 100644
--- a/src/api/__tests__/video-lane-models.test.ts
+++ b/src/api/__tests__/video-lane-models.test.ts
@@ -3,7 +3,7 @@
* showed "No matches" in the T2V picker while the gate counted "1 video
* model" and withheld the starter-bundle card (David 2026-08-01). */
import { describe, it, expect } from 'vitest'
-import { canRunVideoIntent, videoLaneModels, type ClassifiedModel } from '../comfyui'
+import { canRunVideoIntent, videoLaneModels, bundleForVideoIntent, type ClassifiedModel } from '../comfyui'
const m = (name: string): ClassifiedModel => ({ name, type: 'unknown', source: 'checkpoint' })
@@ -42,3 +42,56 @@ describe('canRunVideoIntent (submit uses this before the model list arrives)', (
expect(canRunVideoIntent(NSFW_GGUF.name, 'animate')).toBe(false)
})
})
+
+/** The third place that has to obey the same rule, and the one that did not.
+ *
+ * Measured on the Windows box 2026-08-15 on Extend Video: the card offered the
+ * 9.2 GB Wan 2.1 bundle, the download finished, ComfyUI listed every file, and
+ * the card came straight back. The bundle carries a **T2V** model and Extend is
+ * an i2v lane, so it could never satisfy the gate that put the card there. An
+ * hour later it still said "Download & install". This is the other half of the
+ * C8 report from Voxyl AI and Aldrich Ironhart. */
+describe('bundleForVideoIntent (the installer picks what the gate accepts)', () => {
+ const wan21 = {
+ name: 'Wan 2.1 · 1.3B (Lightweight)',
+ files: [
+ { filename: 'wan2.1_t2v_1.3B_bf16.safetensors', subfolder: 'diffusion_models' },
+ { filename: 'wan_2.1_vae.safetensors', subfolder: 'vae' },
+ { filename: 'umt5_xxl_fp8_e4m3fn_scaled.safetensors', subfolder: 'text_encoders' },
+ ],
+ }
+ const wan22 = {
+ name: 'Wan 2.2 · TI2V 5B (Image + Text to Video)',
+ files: [
+ { filename: 'wan2.2_ti2v_5B_fp16.safetensors', subfolder: 'diffusion_models' },
+ { filename: 'wan2.2_vae.safetensors', subfolder: 'vae' },
+ ],
+ }
+ const alle = [wan21, wan22]
+
+ it('the plain Video tab keeps the light t2v bundle', () => {
+ expect(bundleForVideoIntent(alle, 'video')).toBe(wan21)
+ })
+
+ it('Animate and Extend get an i2v bundle, never the t2v one', () => {
+ expect(bundleForVideoIntent(alle, 'animate')).toBe(wan22)
+ expect(bundleForVideoIntent(alle, 'extend')).toBe(wan22)
+ })
+
+ it('whatever it picks, the gate that opened the card accepts it', () => {
+ for (const intent of ['video', 'animate', 'extend']) {
+ const b = bundleForVideoIntent(alle, intent)!
+ const modell = b.files.find((f) => f.subfolder === 'diffusion_models')!.filename
+ expect(videoLaneModels([m(modell)], intent)).toHaveLength(1)
+ }
+ })
+
+ it('a VAE named like nothing in particular never decides the pick', () => {
+ const nurVae = [{ name: 'kein Modell', files: [{ filename: 'wan_2.1_vae.safetensors', subfolder: 'vae' }] }]
+ expect(bundleForVideoIntent(nurVae, 'video')).toBeUndefined()
+ })
+
+ it('no i2v bundle at all means nothing to offer, not the wrong thing', () => {
+ expect(bundleForVideoIntent([wan21], 'extend')).toBeUndefined()
+ })
+})
diff --git a/src/api/comfyui.ts b/src/api/comfyui.ts
index 36b040d8..d14b56ea 100644
--- a/src/api/comfyui.ts
+++ b/src/api/comfyui.ts
@@ -288,6 +288,40 @@ export function videoLaneModels(list: ClassifiedModel[], intent: string): Classi
return list.filter((m) => canRunVideoIntent(m.name, intent))
}
+/** Where a bundle keeps the thing that actually generates. The rest of a
+ * bundle is VAE and text encoder, and those names say nothing about i2v. */
+const BUNDLE_MODEL_SUBFOLDERS = new Set(['diffusion_models', 'checkpoints', 'unet'])
+
+/**
+ * The starter bundle whose MODEL this lane can actually run.
+ *
+ * Third place that has to obey canRunVideoIntent, and the one that did not.
+ * Stage decides "this lane has no models" through that rule, while the
+ * installer always took the first video bundle, a Wan 2.1 **T2V**. On Extend
+ * Video and Animate Image, which are i2v lanes, that bundle can never satisfy
+ * the gate: the card offers a 9.2 GB download, the download succeeds, ComfyUI
+ * lists every file, and the card comes back unchanged. Pressing the button
+ * again does exactly the same thing, forever.
+ *
+ * Measured on the box 2026-08-15 on Extend Video, and it is the other half of
+ * what Voxyl AI and Aldrich Ironhart reported on 2026-08-13. The C8 fix cured
+ * the frozen status line; this cures the reason the card stayed at all.
+ *
+ * The other lanes need no such pick: their gate is a plain length check on
+ * their own list, and their single bundle always lands in it.
+ */
+export function bundleForVideoIntent<B extends { files: Array<{ filename?: string; subfolder?: string }> }>(
+ bundles: B[],
+ intent: string,
+): B | undefined {
+ return bundles.find((b) =>
+ b.files.some((f) =>
+ !!f.filename &&
+ BUNDLE_MODEL_SUBFOLDERS.has(f.subfolder ?? '') &&
+ canRunVideoIntent(f.filename, intent)),
+ )
+}
+
// ─── Default generation parameters per model type ───
export interface ModelTypeDefaults {
diff --git a/src/components/create/experimental/CreateContext.tsx b/src/components/create/experimental/CreateContext.tsx
index 2ce2007b..3a6b9dc0 100644
--- a/src/components/create/experimental/CreateContext.tsx
+++ b/src/components/create/experimental/CreateContext.tsx
@@ -3,7 +3,7 @@ import { useCreate } from '../../../hooks/useCreate'
import { useCloudCreate, hasActiveCloudRun } from '../../../hooks/useCloudCreate'
import { useCloudSession } from '../../../hooks/useCloudSession'
import { useCreateStore, type GalleryItem } from '../../../stores/createStore'
-import { getLoraModels, getVAEModels, getCheckpoints, getDiffusionModels, getCLIPModels, getGgufUnetModels, checkComfyConnection, refreshComfyModels } from '../../../api/comfyui'
+import { getLoraModels, getVAEModels, getCheckpoints, getDiffusionModels, getCLIPModels, getGgufUnetModels, checkComfyConnection, refreshComfyModels, bundleForVideoIntent } from '../../../api/comfyui'
import { getAllNodeInfo, clearNodeCache } from '../../../api/comfyui-nodes'
import { installCustomNodes, getImageBundles, getVideoBundles, getAudioBundles, getLipsyncBundles, getMotionBundles, startModelDownload, getDownloadProgress, normalizeModelBase, ENUM_SUBFOLDERS } from '../../../api/discover'
import { backendCall, isMacOS } from '../../../api/backend'
@@ -319,13 +319,19 @@ export function CreateExpProvider({ children }: { children: ReactNode }) {
return
}
await ensureComfyRunning(onProgress, signal)
- const bundle = (
- kind === 'image' ? getImageBundles()
- : kind === 'video' ? getVideoBundles()
- : kind === 'audio' ? getAudioBundles()
- : kind === 'lipsync' ? getLipsyncBundles()
- : getMotionBundles()
- )[0]
+ // The video lane picks by the SAME rule the gate uses, because the two
+ // disagreed: Stage counts an i2v lane as empty unless it sees an i2v
+ // model, and this always installed the first bundle, a Wan 2.1 T2V. On
+ // Extend Video and Animate Image that meant a 9.2 GB download that could
+ // not possibly make the card go away. See bundleForVideoIntent.
+ const bundle = kind === 'video'
+ ? bundleForVideoIntent(getVideoBundles(), useCreateStore.getState().intent())
+ : (
+ kind === 'image' ? getImageBundles()
+ : kind === 'audio' ? getAudioBundles()
+ : kind === 'lipsync' ? getLipsyncBundles()
+ : getMotionBundles()
+ )[0]
if (!bundle) throw new Error('No starter bundle available for this intent.')
if (bundle.customNodes?.length) {
onProgress?.('Installing the required node packs. This can take a minute…')
diff --git a/src/components/create/experimental/Stage.tsx b/src/components/create/experimental/Stage.tsx
index ff3bf01a..2fbfcb99 100644
--- a/src/components/create/experimental/Stage.tsx
+++ b/src/components/create/experimental/Stage.tsx
@@ -15,7 +15,8 @@ import {
import { galleryItemUrl, fetchGalleryItemBlob, recoverGalleryUrl } from './galleryUrl'
import { InstallCancelled } from '../../../lib/bundle-install'
import { isMlxImageHost } from '../../../api/mlx-image'
-import { videoLaneModels } from '../../../api/comfyui'
+import { videoLaneModels, bundleForVideoIntent } from '../../../api/comfyui'
+import { getVideoBundles } from '../../../api/discover'
interface Props {
displayed?: GalleryItem
@@ -494,7 +495,10 @@ const BUNDLE_COPY = {
video: {
icon: Film,
title: 'Local video generation needs a one-time download',
- description: 'This sets up everything for a fully local run: ComfyUI itself if it’s missing, plus the Wan 2.1 starter model files (~9.2 GB, 480p, light on VRAM).',
+ // Filled in per lane below: Animate and Extend need an image-to-video
+ // model and get a different bundle than the plain Video tab, so a fixed
+ // sentence here named a download the user was not going to get.
+ description: 'This sets up everything for a fully local run: ComfyUI itself if it’s missing, plus the starter model files.',
},
audio: {
icon: ImageIcon,
@@ -513,8 +517,17 @@ const BUNDLE_COPY = {
},
} as const
+/** What the video card promises has to be the bundle the button installs.
+ * Same pick as the installer, so the two cannot drift apart again. */
+function videoBundleLine(intent: string): string {
+ const b = bundleForVideoIntent(getVideoBundles(), intent)
+ if (!b) return ''
+ return ` The lane needs ${intent === 'animate' || intent === 'extend' ? 'an image-to-video' : 'a text-to-video'} model, so this installs ${b.name} (~${b.totalSizeGB} GB, ${b.vramRequired} VRAM).`
+}
+
function ModelInstallCard({ kind }: { kind: 'image' | 'video' | 'audio' | 'lipsync' | 'motion' }) {
const { installModelBundle } = useCreateExp()
+ const intent = useCreateStore((s) => s.intent())
// The run outlives this card on purpose. Stage swaps the card away as soon as
// a render starts or the lane list refills, and a 12 GB install must not lose
// its status line, its Cancel button and its error message to that.
@@ -522,6 +535,10 @@ function ModelInstallCard({ kind }: { kind: 'image' | 'video' | 'audio' | 'lipsy
const { status, err, running: installing } = runState
const mac = isMlxImageHost()
const copy = (mac && (kind === 'image' || kind === 'video')) ? MAC_BUNDLE_COPY[kind] : BUNDLE_COPY[kind]
+ // The Mac lane runs its own MLX stack and has no ComfyUI bundle to name.
+ const description = (kind === 'video' && !mac)
+ ? copy.description + videoBundleLine(intent)
+ : copy.description
const run = () => startInstallRun(kind, (onStatus, signal) =>
installModelBundle(kind, onStatus, signal).catch((e: unknown) => {
@@ -535,7 +552,7 @@ function ModelInstallCard({ kind }: { kind: 'image' | 'video' | 'audio' | 'lipsy
icon={copy.icon}
tone="accent"
title={installing ? 'Setting this up for you' : copy.title}
- description={installing ? (mac ? BUSY_DESCRIPTION.macBundle : BUSY_DESCRIPTION.bundle) : copy.description}
+ description={installing ? (mac ? BUSY_DESCRIPTION.macBundle : BUSY_DESCRIPTION.bundle) : description}
>
<InstallCardBody
run={run} installing={installing} status={status} err={err}
diff --git a/src/lib/__tests__/model-visible-wait.test.ts b/src/lib/__tests__/model-visible-wait.test.ts
index 4f6aa862..58932dc5 100644
--- a/src/lib/__tests__/model-visible-wait.test.ts
+++ b/src/lib/__tests__/model-visible-wait.test.ts
@@ -93,6 +93,16 @@ describe('the install path uses it, and says something honest when it runs out',
'utf8',
)
+ it('the video bundle is picked by the lane rule, not by index', () => {
+ // The bug this pins: the installer took getVideoBundles()[0] whatever the
+ // lane was, so Extend Video and Animate Image were offered a Wan 2.1 T2V
+ // bundle that their own gate rejects. 9.2 GB later the card was still
+ // there, and pressing the button again did the same thing. Measured on the
+ // box 2026-08-15.
+ expect(src).toMatch(/bundleForVideoIntent\(getVideoBundles\(\), useCreateStore\.getState\(\)\.intent\(\)\)/)
+ expect(src).not.toMatch(/kind === 'video' \? getVideoBundles\(\)/)
+ })
+
it('only the subfolders ComfyUI enumerates are checked', () => {
// loras and upscale models never show up in these enums, so demanding
// them would turn every install into a failure.