The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.
TypeScript ai-videocomfyuicreative-toolsgenerative-aiideogramimage-generationimage-to-3dimage-to-videoltx-videominimax-h3nextjsopen-sourceopen-weightsqwen-imagetext-to-imagevideo-generationwan
Skills W1: a tool recipe's rows run on their own; one that can't start says why
Claude432f4c028cd6
diff --git a/src/components/assist/run-skill-dialog.tsx b/src/components/assist/run-skill-dialog.tsxindex 981a2b01..3a087b76 100644--- a/src/components/assist/run-skill-dialog.tsx+++ b/src/components/assist/run-skill-dialog.tsx@@ -144,10 +144,13 @@ function Loaded({ view, onClose }: { view: RecipeView; onClose: () => void }) {setBusy("run");try {const r = await actions.run(name, body);- const href = r.runs[0]?.href ?? "/library";+ const started = r.runs.filter((x) => !x.error);+ const failed = r.runs.filter((x) => x.error);+ const href = started[0]?.href ?? "/library";const studio = href.startsWith("/library") ? "Library" : href.startsWith("/video-tools/captions") ? "Captions" : "the studio";- toast.success(r.runs.length > 1 ? `Started ${r.runs.length} runs` : "Started the run", {- description: r.demo ? "A demo run — no provider connected" : `${view.title}: same steps, new take`,+ const title = failed.length ? `Started ${started.length} of ${r.runs.length} runs` : started.length > 1 ? `Started ${started.length} runs` : "Started the run";+ (failed.length ? toast.warning : toast.success)(title, {+ description: failed.length ? failed[0].error : r.demo ? "A demo run — no provider connected" : `${view.title}: same steps, new take`,action: { label: `Open in ${studio}`, onClick: () => router.push(href) },});onClose();diff --git a/src/lib/recipe.ts b/src/lib/recipe.tsindex 479ba29f..bf8dc1fe 100644--- a/src/lib/recipe.ts+++ b/src/lib/recipe.ts@@ -856,6 +856,8 @@ export interface RecipeRun {batchId?: string;ids: string[];href?: string;+ /** A tool run that couldn't start after the rows before it had (each tool call stands alone). */+ error?: string;}export interface EngineCheck {diff --git a/src/server/recipes.ts b/src/server/recipes.tsindex 3c45445f..67aa32c3 100644--- a/src/server/recipes.ts+++ b/src/server/recipes.ts@@ -481,8 +481,11 @@ export async function runRecipe(name: string, input: RunInput, asked?: Engine):const out = await executeTool(c.tool, c.input, { engine });const text = typeof out.content === "string" ? out.content : "";if (out.isError) {- if (!runs.length) throw new SkillError(text.replace(/^\{"error":"(.*)"\}$/, "$1") || "The tool couldn't start", 422);- break;+ const error = text.replace(/^\{"error":"(.*)"\}$/, "$1") || "The tool couldn't start";+ if (compiled.length === 1) throw new SkillError(error, 422);+ // Each tool call stands alone: the other rows still run, and this one says why it didn't.+ runs.push({ ids: [], error });+ continue;}let href: string | undefined;try {@@ -494,6 +497,7 @@ export async function runRecipe(name: string, input: RunInput, asked?: Engine):demo &&= ids.every((id) => getGeneration(id)?.provider === "mock");runs.push({ ids, ...(href && { href }) });}+ if (!runs.some((r) => !r.error)) throw new SkillError(runs[0]?.error ?? "Nothing could start", 422);return { engine, runs, demo };}const made: Generation[] = [];