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 stage says when a dialog is waiting for an answer

purple22c186c51fc6
diff --git a/src/api/render-fixup-deps.ts b/src/api/render-fixup-deps.ts
index cf9fb578..7b285294 100644
--- a/src/api/render-fixup-deps.ts
+++ b/src/api/render-fixup-deps.ts
@@ -7,7 +7,7 @@ import { checkComfyConnection, refreshComfyModels } from './comfyui'
import { clearNodeCache } from './comfyui-nodes'
import { startModelDownload, getDownloadProgress, modelsNotVisibleInComfy, comfyModelTarget, catalogDigestFor } from './discover'
import { downloadBundleFiles, waitForModelsVisible } from '../lib/bundle-install'
-import type { FixupDeps } from '../lib/render-fixups'
+import { WAITING_FOR_ANSWER, type FixupDeps } from '../lib/render-fixups'
import { useCreateStore } from '../stores/createStore'
import { useDownloadStore } from '../stores/downloadStore'
import { useComfyInstallStore } from '../stores/comfyInstallStore'
@@ -26,6 +26,7 @@ export function renderFixupDeps(onStatus: (line: string) => void, signal?: Abort
}
return {
ask: (prompt) => new Promise<boolean>((resolve) => {
+ onStatus(WAITING_FOR_ANSWER)
useCreateStore.getState().setFixupPrompt({
...prompt,
resolve: (go) => { useCreateStore.getState().setFixupPrompt(null); resolve(go) },
diff --git a/src/components/create/experimental/VhsInstallModal.tsx b/src/components/create/experimental/VhsInstallModal.tsx
index a7bbbd8e..c5588528 100644
--- a/src/components/create/experimental/VhsInstallModal.tsx
+++ b/src/components/create/experimental/VhsInstallModal.tsx
@@ -45,7 +45,7 @@ export function VhsInstallModal() {
>
Kosinkadink/ComfyUI-VideoHelperSuite
</a>
- {' '}(~5 MB) into your <code className="font-mono bg-white/5 px-1 rounded">ComfyUI/custom_nodes/</code> folder, runs <code className="font-mono bg-white/5 px-1 rounded">pip install</code> for its requirements, and restarts ComfyUI. Takes about 30 seconds.
+ {' '}(~5 MB) into your <code className="font-mono bg-white/5 px-1 rounded">ComfyUI/custom_nodes/</code> folder, runs <code className="font-mono bg-white/5 px-1 rounded">pip install</code> for its requirements, and restarts ComfyUI. This can take a few minutes.
</div>
<div className="flex flex-col gap-2 pt-1">
diff --git a/src/hooks/__tests__/useCreate-a-waiting-question-is-said-on-the-stage.test.tsx b/src/hooks/__tests__/useCreate-a-waiting-question-is-said-on-the-stage.test.tsx
new file mode 100644
index 00000000..9c435387
--- /dev/null
+++ b/src/hooks/__tests__/useCreate-a-waiting-question-is-said-on-the-stage.test.tsx
@@ -0,0 +1,108 @@
+// @vitest-environment jsdom
+/**
+ * The box, 03.10.2026: the first video stood on "Building workflow..." for ten
+ * minutes. Nothing was building: the dialog "Install MP4 support?" was waiting
+ * for an answer. While a question waits, the stage says so. The dialog also
+ * promised "about 30 seconds" for an install that took a good two minutes on
+ * the box, so it names no number any more.
+ */
+import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest'
+import { render, renderHook, screen, cleanup } from '@testing-library/react'
+
+const seen = vi.hoisted(() => ({ webpOnly: true, tooOld: false }))
+
+vi.mock('../../api/mlx-image', () => ({
+ isMlxImageHost: () => false,
+ isMlxImageModel: () => false,
+ mlxStatus: vi.fn(async () => ({ installed: false })),
+ listMlxImageModels: vi.fn(async () => []),
+ buildMlxImageModels: vi.fn(() => []),
+ mergeImageModels: vi.fn((a: unknown[]) => a),
+ mlxModelIdFor: vi.fn(() => ''),
+ generateMlxImageDataUrl: vi.fn(),
+}))
+vi.mock('../../api/comfyui', async (orig) => ({
+ ...((await orig()) as Record<string, unknown>),
+ checkComfyConnection: vi.fn(async () => true),
+ submitWorkflow: vi.fn(async () => { throw new Error('stop here') }),
+}))
+vi.mock('../../api/comfyui-ws', () => ({
+ CLIENT_ID: 'lu-test',
+ comfyWS: { connect: vi.fn(async () => { throw new Error('no socket') }), mark: () => 0 },
+}))
+vi.mock('../../api/vram-handoff', async (orig) => ({
+ ...((await orig()) as Record<string, unknown>),
+ evictChatBackendsForRender: vi.fn(async () => null),
+ restoreChatBackendsAfterRender: vi.fn(),
+}))
+vi.mock('../../api/dynamic-workflow', async (orig) => {
+ const actual = (await orig()) as typeof import('../../api/dynamic-workflow')
+ return {
+ ...actual,
+ buildDynamicWorkflow: vi.fn(async () => {
+ if (seen.tooOld) throw new actual.WorkflowUnavailableError(actual.LTX25_NEEDS_UPDATE, 'ltx25', undefined, { needsComfyUpdate: true })
+ return { '1': { class_type: 'SaveAnimatedWEBP', inputs: {} } }
+ }),
+ checkVideoOutputCapability: vi.fn(async () => ({ mp4Capable: !seen.webpOnly, webpOnly: seen.webpOnly, missingNodes: [] })),
+ }
+})
+
+import { useCreate } from '../useCreate'
+import { useCreateStore } from '../../stores/createStore'
+import { classifyModel } from '../../api/comfyui'
+import { WAITING_FOR_ANSWER } from '../../lib/render-fixups'
+import { VhsInstallModal } from '../../components/create/experimental/VhsInstallModal'
+
+const VIDEO = 'wan2.1_t2v_1.3B_bf16.safetensors'
+
+beforeEach(() => {
+ seen.webpOnly = true
+ seen.tooOld = false
+ useCreateStore.setState({
+ backend: 'local', isGenerating: false, error: null, gallery: [], promptHistory: [], fixupPrompt: null, vhsInstallPrompt: null,
+ improvePrompt: false, cloudOp: null, utilityOp: null, removebg: false, source: null, mask: null, references: [],
+ selectedLoras: [], hiresFixEnabled: false, seed: 42, batchSources: [], progressText: '',
+ videoModel: VIDEO, videoModelList: [{ name: VIDEO, type: classifyModel(VIDEO) }],
+ } as never)
+ useCreateStore.getState().setIntent('video')
+ useCreateStore.getState().setPrompt('a woman walking in a park')
+})
+afterEach(() => cleanup())
+
+describe('a question that waits for the user', () => {
+ it('"Install MP4 support?": the stage says a question is waiting, not "Building workflow..."', async () => {
+ const { result } = renderHook(() => useCreate())
+ const done = result.current.generate()
+ await vi.waitFor(() => expect(useCreateStore.getState().vhsInstallPrompt).not.toBeNull())
+ expect(useCreateStore.getState().progressText).toBe(WAITING_FOR_ANSWER)
+ useCreateStore.getState().vhsInstallPrompt?.('cancel')
+ await done
+ expect(useCreateStore.getState().isGenerating).toBe(false)
+ })
+
+ it('"ComfyUI needs an update": the stage says the same while that question waits', async () => {
+ seen.tooOld = true
+ const { result } = renderHook(() => useCreate())
+ const done = result.current.generate()
+ await vi.waitFor(() => expect(useCreateStore.getState().fixupPrompt).not.toBeNull())
+ expect(useCreateStore.getState().progressText).toBe(WAITING_FOR_ANSWER)
+ useCreateStore.getState().fixupPrompt?.resolve(false)
+ await done
+ })
+
+ it('the wording names the dialog and carries no dash', () => {
+ expect(WAITING_FOR_ANSWER).toBe('Waiting for your answer in the dialog…')
+ })
+})
+
+describe('the MP4 support dialog', () => {
+ it('promises no number of seconds', () => {
+ useCreateStore.setState({ vhsInstallPrompt: () => undefined } as never)
+ render(<VhsInstallModal />)
+ const text = document.body.textContent ?? ''
+ expect(text).toContain('Install MP4 support?')
+ expect(text).not.toMatch(/\d+\s*seconds/)
+ expect(text).toContain('This can take a few minutes.')
+ expect(screen.getByText('Install VHS_VideoCombine + continue')).toBeTruthy()
+ })
+})
diff --git a/src/hooks/useCreate.ts b/src/hooks/useCreate.ts
index c3790de1..e4cba1e5 100644
--- a/src/hooks/useCreate.ts
+++ b/src/hooks/useCreate.ts
@@ -56,7 +56,7 @@ import { getAllNodeInfo, clearNodeCache } from '../api/comfyui-nodes'
import { apiNodes, type ComfyApiGraph, type ComfyExecutionMessage, type ComfyHistoryEntry } from '../types/comfy-graph'
import { restartComfyForNewNodes } from '../api/comfy-restart'
import { installCustomNodes } from '../api/discover'
-import { buildWithFixups, wasDeclined } from '../lib/render-fixups'
+import { buildWithFixups, wasDeclined, WAITING_FOR_ANSWER } from '../lib/render-fixups'
import { renderFixupDeps } from '../api/render-fixup-deps'
import { checkPromptSafety, SAFETY_BLOCK_MESSAGE } from '../lib/render/safety'
import { wantsTransparent } from '../lib/transparent-image'
@@ -1171,6 +1171,7 @@ export function useCreate() {
try {
const caps = await checkVideoOutputCapability()
if (caps.webpOnly) {
+ setProgress(5, WAITING_FOR_ANSWER)
const choice = await new Promise<'install' | 'webp' | 'cancel'>((resolve) => {
useCreateStore.getState().setVhsInstallPrompt(resolve)
})
diff --git a/src/lib/render-fixups.ts b/src/lib/render-fixups.ts
index 96cbdd74..daa3776f 100644
--- a/src/lib/render-fixups.ts
+++ b/src/lib/render-fixups.ts
@@ -85,6 +85,11 @@ export function remoteUpdateMessage(remote: RemoteComfy): string {
return `This model needs a newer ComfyUI than the one on ${remote.host}. Update ComfyUI on that machine, restart it, then hit Create again.`
}
+/** What the stage says while a dialog waits for the user. The box,
+ * 03.10.2026: "Building workflow..." stood there for ten minutes while the
+ * MP4 question was open, and it read as a hang. */
+export const WAITING_FOR_ANSWER = 'Waiting for your answer in the dialog…'
+
export const UPDATE_PROMPT: FixupPrompt = {
title: 'ComfyUI needs an update',
detail: 'This model needs a newer ComfyUI than the one installed. LU updates it (git pull plus its Python packages), restarts it, then starts the render. Takes a few minutes.',