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: a studio step's rows in a run that spans studios carry their step, so a fix names the step that failed
Claude642a167e714a
diff --git a/src/server/skill-runs.ts b/src/server/skill-runs.tsindex 79100851..f5cde219 100644--- a/src/server/skill-runs.ts+++ b/src/server/skill-runs.ts@@ -192,6 +192,7 @@ async function startPart(runId: string, skill: string, state: RunState, p: PartSreturn;}const tool = p.part.tool;+ const step = p.part.key;const input = fillRefs(p.part.input, pick, tool);const out = state.check ? await runAsDemo(() => executeTool(tool, input, { engine: state.engine })) : await executeTool(tool, input, { engine: state.engine });const text = typeof out.content === "string" ? out.content : "";@@ -201,8 +202,9 @@ async function startPart(runId: string, skill: string, state: RunState, p: PartSp.href = card?.href && card.href !== "/library" ? card.href : undefined;p.studio = card?.studio;if (state.check) p.records = recordsOf(text, card?.href);- // The studio's own rows carry the run's stamp and the skill's title, as a pipeline's do.- stampRequests(p.ids, () => ({ skill: { name: skill, run: runId }, batchTitle: state.title.slice(0, 200) }));+ // The studio's own rows carry the run's stamp, with the step's key (a failure is laid at this step, not at a+ // generate step on the same model), and the skill's title, as a pipeline's do.+ stampRequests(p.ids, () => ({ skill: { name: skill, run: runId, step }, batchTitle: state.title.slice(0, 200) }));p.status = p.ids.length ? "running" : "done";} catch (e) {p.status = "failed";diff --git a/tests/skill-runs.test.ts b/tests/skill-runs.test.tsindex c02af0ec..fb0f5553 100644--- a/tests/skill-runs.test.ts+++ b/tests/skill-runs.test.ts@@ -157,6 +157,8 @@ describe("a skill that spans studios, in demo mode", () => {expect(cut).toMatchObject({ op: "reframe", status: "succeeded", provider: "mock" });// Every row carries the run's stamp and the skill's title.for (const g of [dubbed, captioned, cut]) expect(g.request).toMatchObject({ skill: { name: "spanish-short", run: run.run }, batchTitle: "Spanish short" });+ // ...and the key of the step that made it, a studio step's too (a failure is laid at the step that failed).+ [dubbed, captioned, cut].forEach((g, i) => expect(g.request.skill?.step).toBe(done.steps[i].key));expect(done.steps[1]).toMatchObject({ studio: "Captions", href: expect.stringMatching(/^\/video-tools\/captions\?video=/) });// The skill's dialog reads its runs.