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
Runs: plain words while a run works
Adarshacde4ec61d18
diff --git a/src/components/studio/composer.tsx b/src/components/studio/composer.tsxindex ba97c94c..d32f3369 100644--- a/src/components/studio/composer.tsx+++ b/src/components/studio/composer.tsx@@ -978,7 +978,7 @@ export function Composer({ docked }: { docked: boolean }) {!(layoutOn && draft.layout!.items.length > 0);const blocker = blockerFor({// A model outside the studio's slice (remembered, or handed over) is known once the full catalog arrives: loading until then, not "Pick a model".- loading: !catalog.ready || (!model && !catalog.complete) ? "Loading models…" : presetLoading ? "Loading presets…" : null,+ loading: !catalog.ready || (!model && !catalog.complete) || presetLoading ? "Getting ready…" : null,model: !!model,engineError,frames: framesOn && model ? (framesBlocker(model, draft.frames!.length) ?? (framesGap ? { message: framesGap } : null)) : null,@@ -2177,7 +2177,7 @@ export function Composer({ docked }: { docked: boolean }) {/>) : (<Chip icon={Loader2} disabled className="[&>svg]:animate-spin">- Loading models…+ Getting ready…</Chip>)) : (diff --git a/src/components/studio/feed.tsx b/src/components/studio/feed.tsxindex 9b69967c..69dd6d40 100644--- a/src/components/studio/feed.tsx+++ b/src/components/studio/feed.tsx@@ -143,7 +143,7 @@ export function PendingTile({ g, ratio }: { g: Generation; ratio: number }) {const local = useLocalJob(g.id, now);useLiveRun(g.id);// On this studio's GPUs (hosted runs) a run shows only where it is: "In line" with its place and wait (again after any- // recovery, its place kept, with no progress from an earlier attempt), then "Working" with its progress.+ // recovery, its place kept, with no progress from an earlier attempt), then "Creating" with its progress.const pool = g.place === "pool";const inLine = pool && g.status === "queued";// Its tile leaves once it is done (its result, or one plain sentence): the price check before the next Run asks again,diff --git a/src/lib/pending-words.ts b/src/lib/pending-words.tsindex 63736fec..08a00ed2 100644--- a/src/lib/pending-words.ts+++ b/src/lib/pending-words.ts@@ -19,7 +19,7 @@ export const longWaitWords = (): string => copyLine("queueLong", {}, "Your run i* What a run on its way says on its tile or cover: its words (never empty: a blank or missing message reads "Queued" or* "Generating…"), and, for a run waiting for the workers whose words don't say it already, its place in their line* ("You're next", "2 ahead of you · about 2 min"). `local`: the words of its job on the ComfyUI on this computer, when- * it runs there. On this studio's GPUs (hosted runs) only its place in line, then "Working"; after a long wait in line,+ * it runs there. On this studio's GPUs (hosted runs) only its place in line, then "Creating"; after a long wait in line,* that it is saved and starts by itself, with its place under it.*/export function pendingWords(g: Pick<Generation, "status" | "message" | "place" | "queue"> & { createdAt?: number }, local?: string | null, now = Date.now()): { label: string; place: string | null } {diff --git a/src/lib/pool-line.ts b/src/lib/pool-line.tsindex 0ca828b3..bad1c01d 100644--- a/src/lib/pool-line.ts+++ b/src/lib/pool-line.ts@@ -2,7 +2,7 @@* The words for a run's place in line on this install's GPUs (hosted runs). Before Run, the line under the toolbar says* when the result would be ready ("Ready in about 2 min", "Warming up · starts automatically", "Ready in seconds"); a* run's tile says where it is and when ("You're next · ready in about 40 s", "2 ahead of you · about 3 min"). A run shows- * only its place, "Working", then its result: it is taken whatever the line, and never ends for a wait.+ * only its place, "Creating", then its result: it is taken whatever the line, and never ends for a wait.** A run can also be made and wait to enter the line (`held`): behind the account's other runs ("After your other runs"),* until a time ("Free runs refresh at 14:20." before Run, "Free runs refresh at 14:20 · this one starts then" on itsdiff --git a/src/lib/relay.ts b/src/lib/relay.tsindex 2cc665b1..ef223684 100644--- a/src/lib/relay.ts+++ b/src/lib/relay.ts@@ -639,11 +639,11 @@ export const RELAY_WORDS = {*/export const POOL_WORDS = {inLine: "In line",- working: "Working",- /** Working, with its model still loading (the GPU had another one loaded): a small share that grows slowly. */- gettingReady: "Loading the model",+ working: "Creating",+ /** Started, with its model still loading (the GPU had another one loaded): a small share that grows slowly. */+ gettingReady: "Getting ready",/** Its sampler is done: decoding, sound, its files. */- finishing: "Finishing",+ finishing: "Almost done",/** The owner's own run, given back to the line so that a person's run could start first (pool.ts, people first). */paused: "Paused for a moment · starts again automatically",failed: "That one didn't come out right — try again, or try a similar model.",diff --git a/src/lib/run-progress.ts b/src/lib/run-progress.tsindex 94ff2f91..3b26483e 100644--- a/src/lib/run-progress.ts+++ b/src/lib/run-progress.ts@@ -279,24 +279,34 @@ export const withLeft = (words: string, leftMin: number | undefined): string =>/** "Step 3 of 6". */export const stepWords = (step: { value: number; max: number }) => `Step ${Math.min(step.value, step.max)} of ${step.max}`;-/** A person's words for a running job on this install's GPUs: "Loading the model", "Working · Step 3 of 6", "Finishing". */+/** "50%": the sampler's step as a whole percent of its steps (0–100). */+export const stepPercent = (step: { value: number; max: number }): string =>+ `${step.max > 0 ? Math.min(100, Math.max(0, Math.round((step.value / step.max) * 100))) : 0}%`;++/** A person's words for a running job on this install's GPUs: "Getting ready", "Creating · 50%", "Almost done". */export function poolRunWords(v: Pick<ProgressView, "stage" | "step">): string {if (v.stage === "loading") return POOL_WORDS.gettingReady;if (v.stage === "finishing") return POOL_WORDS.finishing;- return v.step ? `${POOL_WORDS.working} · ${stepWords(v.step)}` : POOL_WORDS.working;+ return v.step ? `${POOL_WORDS.working} · ${stepPercent(v.step)}` : POOL_WORDS.working;}+/** "Creating · 50%": POOL_WORDS.working with a percent. */+const POOL_PERCENT = new RegExp(`^${POOL_WORDS.working} · \\d{1,3}%$`);+/** Is this one of poolRunWords' (the words a person's running job may show)? */export const isPoolRunWords = (m: string | null | undefined): m is string => {if (!m) return false;// Each may say about how long is left (withLeft).const words = m.replace(/ · about \d+ min left$/, "");- return words === POOL_WORDS.working || words === POOL_WORDS.gettingReady || words === POOL_WORDS.finishing || /^Working · Step \d+ of \d+$/.test(words);+ return words === POOL_WORDS.working || words === POOL_WORDS.gettingReady || words === POOL_WORDS.finishing || POOL_PERCENT.test(words);};+/** The owner's words while a run's model loads. */+export const OWNER_LOADING_WORDS = "Loading the model";+/** The owner's words for a running job: its stage, and the sampler's step ("Making your clip · step 3 of 6"). */export function runWords(kind: MadeKind, v: Pick<ProgressView, "stage" | "step">): string {- if (v.stage === "loading") return POOL_WORDS.gettingReady;+ if (v.stage === "loading") return OWNER_LOADING_WORDS;if (v.stage === "finishing") return `Finishing your ${madeNoun(kind)}`;return makingWords(kind, v.step?.value, v.step?.max);}diff --git a/src/server/generations.ts b/src/server/generations.tsindex 1cdbcae8..d6f010d6 100644--- a/src/server/generations.ts+++ b/src/server/generations.ts@@ -303,7 +303,7 @@ export function toGeneration(r: Row): Generation {...(stored.charge && r.status === "succeeded" && { charge: stored.charge }),// (Only when its hold set an amount aside: a free run's hold has nothing to give back, so nothing is said.)...(charged && (r.status === "failed" || r.status === "canceled") && { notCharged: true as const }),- // On this install's GPUs the output check is part of "Working": no word of its own.+ // On this install's GPUs the output check is part of "Creating": no word of its own....(checking && !pool && { stage: "checking" as const }),// Waiting in line on this install's GPUs: its place and the wait, about....(stored.place === "pool" && (r.status === "queued" || r.status === "running") && !checking && !again && poolQueue(r.id)),@@ -379,7 +379,7 @@ export function shownError(id: string, raw: string | null): string | null {/*** A pool row's words while it goes: in line, or working on it (`ready`: still getting ready, its model loading), with- * its stage and the sampler's step when its poll said them ("Working · Step 3 of 6", "Finishing").+ * its stage and the sampler's step when its poll said them ("Creating · 50%", "Almost done").*/function poolMessage(r: Pick<Row, "status" | "message">, ready = false): string | null {if (r.status === "queued") return POOL_WORDS.inLine;diff --git a/src/server/providers/comfyui.ts b/src/server/providers/comfyui.tsindex ada307fa..1111e846 100644--- a/src/server/providers/comfyui.ts+++ b/src/server/providers/comfyui.ts@@ -1906,7 +1906,7 @@ async function pollComputer(principal: Principal, meta: Record<string, unknown>,// An account's run says only where it is: in line, or working on it (the owner's own runs keep the workers' words).if (!tenantAccount()) return { state: res.state, progress: res.progress, message: res.message, ...clocks };if (t.state === "waiting") return { state: "queued", message: POOL_WORDS.inLine, ...clocks };- // Working: its stage, with the sampler's step ("Working · Step 3 of 6"), as the server reads it.+ // Running: its stage, with the sampler's step as a percent ("Creating · 50%"), as the server reads it.const view = t.state === "running" ? taskView(t, meta) : null;const words = res.state !== "running" ? POOL_WORDS.working : t.state === "collecting" ? POOL_WORDS.finishing : view ? withLeft(poolRunWords(view), view.stage === "loading" ? undefined : taskCard(t, view).leftMin) : POOL_WORDS.working;return { state: "running", progress: res.progress, message: words, ...clocks };diff --git a/tests/composer-frames.test.ts b/tests/composer-frames.test.tsindex 9648db6c..4088d265 100644--- a/tests/composer-frames.test.ts+++ b/tests/composer-frames.test.ts@@ -155,7 +155,7 @@ describe("Frames mode in the Video studio composer", () => {expect(blockerFor({ ...base, frames: framesBlocker(getModel("oss-ltx25")!, 2) })?.message).toBe("LTX-2.5 takes a start frame only — pick Wan 2.2 14B to follow your frames, or turn Frames off");// A model that takes every frame (or the ends) falls through to the usual checks.expect(blockerFor({ ...base, frames: framesBlocker(getModel("kling-o3")!, 3) })?.message).toBe("Write a prompt first");- expect(blockerFor({ ...base, loading: "Loading models…", frames: framesBlocker(getModel("flux-3-max")!, 0) })?.message).toBe("Loading models…");+ expect(blockerFor({ ...base, loading: "Getting ready…", frames: framesBlocker(getModel("flux-3-max")!, 0) })?.message).toBe("Getting ready…");});it("hides the settings the strip owns", () => {diff --git a/tests/composer.test.ts b/tests/composer.test.tsindex 54e16dcf..8d98cc89 100644--- a/tests/composer.test.ts+++ b/tests/composer.test.ts@@ -150,7 +150,7 @@ describe("blockers", () => {it("orders blockers from most to least actionable", () => {const slot: InputSlot = { key: "image", label: "Target photo", accept: "image", required: true };const base = { model: true, uploading: false, promptMissing: false };- expect(blockerFor({ ...base, loading: "Loading models…", model: false })).toEqual({ message: "Loading models…", quiet: true });+ expect(blockerFor({ ...base, loading: "Getting ready…", model: false })).toEqual({ message: "Getting ready…", quiet: true });expect(blockerFor({ ...base, model: false })).toEqual({ message: "Pick a model" });expect(blockerFor({ ...base, missing: slot, uploading: true, planError: "Add an image to edit", promptMissing: true })).toEqual({ message: "Add a target photo", slot: "image" });expect(blockerFor({ ...base, uploading: true, planError: "Add an image to edit" })).toEqual({ message: "Uploading…", quiet: true });@@ -182,7 +182,7 @@ describe("blockers", () => {expect(blockerLine(blockerFor({ ...base, engineError: "Face Swap has no cloud version yet" }), true)).toBe("always");// Never for what passes by itself or is plain to see: loading, uploading, the empty prompt box.const plannerPrompt = blockerFor({ ...base, planError: "Write a prompt first", promptMissing: true });- for (const quiet of [blockerFor({ ...base, loading: "Loading models…" }), blockerFor({ ...base, uploading: true }), blockerFor({ ...base, promptMissing: true }), plannerPrompt]) {+ for (const quiet of [blockerFor({ ...base, loading: "Getting ready…" }), blockerFor({ ...base, uploading: true }), blockerFor({ ...base, promptMissing: true }), plannerPrompt]) {expect(blockerLine(quiet, true)).toBeNull();}expect(blockerLine(null, true)).toBeNull();diff --git a/tests/helpers/run-watch.ts b/tests/helpers/run-watch.tsindex 71513469..126ad5c4 100644--- a/tests/helpers/run-watch.ts+++ b/tests/helpers/run-watch.ts@@ -1,7 +1,7 @@/*** What a person sees of a run on this install's GPUs, as the recovery tests check it: every look at the run (a refresh,* a session, the list, another app process) is written down, and checked against the rule that the run shows only- * "In line" (with its place), "Working" (with its progress) and then its result. A recovery shows "In line" again with+ * "In line" (with its place), "Creating" (with its progress) and then its result. A recovery shows "In line" again with* the place it had. No error, no word about the machines, no pause. A look that can't find the run (an error answer, a* run gone from the list) breaks the rule too, and so does the run showing to anyone but its own account.*/@@ -92,10 +92,10 @@ export class RunWatch {let best = o.place ?? Infinity;for (const s of this.seen) {const at = `${s.where}: ${JSON.stringify(s)}`;- if (!["queued", "running", "succeeded"].includes(s.status)) out.push(`a state that isn't In line, Working or the result (${at})`);+ if (!["queued", "running", "succeeded"].includes(s.status)) out.push(`a state that isn't In line, Creating or the result (${at})`);if (s.status === "queued" && s.message !== POOL_WORDS.inLine) out.push(`a waiting run that doesn't say In line (${at})`);if (s.status === "queued" && s.place === null) out.push(`a waiting run with no place in line (${at})`);- if (s.status === "running" && !isPoolRunWords(s.message)) out.push(`a started run that doesn't say Working (${at})`);+ if (s.status === "running" && !isPoolRunWords(s.message)) out.push(`a started run that doesn't say Creating (${at})`);if (s.status === "succeeded" && s.outputs < 1) out.push(`a result with nothing in it (${at})`);if (s.error) out.push(`an error (${at})`);for (const w of [s.message, s.error]) if (w && MACHINE_WORDS.test(w)) out.push(`words about the machines (${at})`);diff --git a/tests/home-start.test.ts b/tests/home-start.test.tsindex f73955de..805de636 100644--- a/tests/home-start.test.ts+++ b/tests/home-start.test.ts@@ -23,7 +23,7 @@ describe("the start flag", () => {});it("waits while things load, runs when nothing blocks, else explains what's missing", () => {- expect(startStep({ settling: true, blocker: { message: "Loading models…" } })).toBe("wait");+ expect(startStep({ settling: true, blocker: { message: "Getting ready…" } })).toBe("wait");expect(startStep({ settling: false, blocker: null })).toBe("run");// Edit with a prompt and no photo: the blocker names the slot, which the toast points at.const missing = firstMissingSlot(EDIT_STUDIO.slots, {});diff --git a/tests/hosted-quote-refresh.test.ts b/tests/hosted-quote-refresh.test.tsindex b4d4084a..1e5b7435 100644--- a/tests/hosted-quote-refresh.test.ts+++ b/tests/hosted-quote-refresh.test.ts@@ -65,7 +65,7 @@ describe("the price check asks again by itself", () => {it("a run on this studio's GPUs that ends, or one started from a toast, asks it again too", () => {const src = (f: string) => fs.readFileSync(path.join(process.cwd(), f), "utf8");- // The run's tile (In line, Working) leaves once it is done: as it goes, the checks ask again.+ // The run's tile (In line, Creating) leaves once it is done: as it goes, the checks ask again.const feed = src("src/components/studio/feed.tsx");const tile = feed.slice(feed.indexOf("export function PendingTile"), feed.indexOf("export function FailedTile"));expect(tile).toContain("useEffect(() => (pool ? () => refreshPriceChecks(qc) : undefined), [pool, qc]);");diff --git a/tests/hosted-run-tiles.test.ts b/tests/hosted-run-tiles.test.tsindex 6d629e65..9e66199e 100644--- a/tests/hosted-run-tiles.test.ts+++ b/tests/hosted-run-tiles.test.ts@@ -6,7 +6,7 @@ import type { Generation } from "@/lib/catalog/types";/** A run's tile on this studio's GPUs (hosted runs): "In line" with its place and wait (again after any recovery, its- * place kept), "Working" with its progress, then the result with an "AI-generated" info tip, or one plain sentence when it+ * place kept), "Creating" with its progress, then the result with an "AI-generated" info tip, or one plain sentence when it* can't finish. Every other run's tiles render as before.*/@@ -62,27 +62,27 @@ describe("a run's tile on this studio's GPUs", () => {const html = render(createElement(PendingTile, { g: gen({ place: "pool", status: "queued", message: POOL_WORDS.inLine, queue: { place: 3, etaSeconds: null, unknown: true } }), ratio: 1 }));expect(html).toContain("Warming up · starts automatically");});- it("working while its model loads: Loading the model, with no % before its try reports one", () => {+ it("working while its model loads: Getting ready, with no % before its try reports one", () => {const html = render(createElement(PendingTile, { g: gen({ place: "pool", status: "running", message: POOL_WORDS.gettingReady, progress: null }), ratio: 1 }));expect(html).toContain('data-run-state="working"');- expect(html).toContain("Loading the model");+ expect(html).toContain("Getting ready");expect(html).not.toContain("%");});it("in line with no place known yet: In line", () => {const html = render(createElement(PendingTile, { g: gen({ place: "pool", status: "queued", message: POOL_WORDS.inLine }), ratio: 1 }));expect(html).toContain(">In line<");});- it("working: Working, with its progress", () => {+ it("working: Creating, with its progress", () => {const html = render(createElement(PendingTile, { g: gen({ place: "pool", status: "running", message: POOL_WORDS.working, progress: 0.4 }), ratio: 1 }));expect(html).toContain('data-run-state="working"');- expect(html).toContain(">Working<");+ expect(html).toContain(">Creating<");expect(html).toContain("40%");});- it("working with a preview picture: the picture shows under Working; in line, none", () => {+ it("working with a preview picture: the picture shows under Creating; in line, none", () => {const src = "/api/generations/g1/preview?at=123";const working = render(createElement(PendingTile, { g: gen({ place: "pool", status: "running", message: POOL_WORDS.working, progress: 0.4, preview: src }), ratio: 1 }));expect(working).toContain(`src="${src}"`);- expect(working).toContain(">Working<");+ expect(working).toContain(">Creating<");const inLine = render(createElement(PendingTile, { g: gen({ place: "pool", status: "queued", message: POOL_WORDS.inLine, preview: src }), ratio: 1 }));expect(inLine).not.toContain("<img");// The owner's own job on the workers shows its picture too.diff --git a/tests/hosted-words.test.ts b/tests/hosted-words.test.tsindex bc0a9540..c615a00c 100644--- a/tests/hosted-words.test.ts+++ b/tests/hosted-words.test.ts@@ -206,7 +206,7 @@ describe("the pages a visitor reads while hosted runs are on", () => {}});- it("a tile and a Library card: In line with its place, Working, then one sentence", () => {+ it("a tile and a Library card: In line with its place, Creating, then one sentence", () => {const pages = [render(createElement(PendingTile, { g: gen({ status: "queued", message: POOL_WORDS.inLine, queue: { place: 3, etaSeconds: 130 } }), ratio: 1 })),render(createElement(PendingTile, { g: gen({ status: "running", message: POOL_WORDS.working, progress: 0.4 }), ratio: 1 })),@@ -216,12 +216,12 @@ describe("the pages a visitor reads while hosted runs are on", () => {render(createElement(StatusCover, { g: gen({ status: "failed", error: POOL_WORDS.failed }) })),].map(textOf);expect(pages[3]).toContain("2 ahead of you · about 2 min");- expect(pages[4]).toContain("Working");+ expect(pages[4]).toContain("Creating");expect(pages[5]).toContain("That one didn't come out right — try again, or try a similar model.");expect(pages[5]).not.toContain("Couldn't generate this one");expect(listStatus({ status: "failed", place: "pool" })).toBe("Didn't come out right");expect(listStatus({ status: "queued", place: "pool" })).toBe("In line");- expect(listStatus({ status: "running", place: "pool" })).toBe("Working");+ expect(listStatus({ status: "running", place: "pool" })).toBe("Creating");for (const t of pages) expect(t).not.toMatch(FORBIDDEN);});diff --git a/tests/moderation-hook.test.ts b/tests/moderation-hook.test.tsindex 3652a8db..74ca348b 100644--- a/tests/moderation-hook.test.ts+++ b/tests/moderation-hook.test.ts@@ -156,7 +156,7 @@ describe("the output check", () => {const id = await started();await until(() => row(id).stage === "checking");const g = getGeneration(id)!;- // A run on this install's GPUs: the check is part of "Working", with no word of its own.+ // A run on this install's GPUs: the check is part of "Creating", with no word of its own.expect(g.place).toBe("pool");expect(g.stage).toBeUndefined();expect(g.message).toBe(POOL_WORDS.working);diff --git a/tests/pool-account-runs.test.ts b/tests/pool-account-runs.test.tsindex 7346bec2..d2cac0d1 100644--- a/tests/pool-account-runs.test.ts+++ b/tests/pool-account-runs.test.ts@@ -8,7 +8,7 @@ import { composeOnWorker, graphOfTask } from "./helpers/ticket-worker";/*** Account runs on this install's GPUs go through the workers' line: each job of an account's run is a task for the- * workers that belongs to the account, never a request to a ComfyUI address. The account sees only "In line", "Working"+ * workers that belongs to the account, never a request to a ComfyUI address. The account sees only "In line", "Creating"* and its result; an account's own session can never take or read such a task; a task back in line keeps its place and* shows "In line" again; and with hosted runs off nothing changes. (The line's own rules for every job, one job per* worker among them: tests/worker-queue.test.ts.)@@ -451,8 +451,8 @@ describe("the line", () => {const g = getGeneration(id);return g?.status === "running" && (g.progress ?? 0) > 0 ? g : null;});- // Working, with the sampler's step.- expect(working?.message).toBe("Working · Step 3 of 4");+ // Creating, with the sampler's step as a percent.+ expect(working?.message).toBe("Creating · 75%");// The worker pauses at once (its owner pressed the pause): the run goes back in line.pool.workerBeat(db().prepare("SELECT * FROM relay_workers WHERE id = ?").get(w.id) as never,@@ -519,7 +519,7 @@ describe("what an account reads about its run", () => {}});- it("its output check is part of Working, and a stopped run says Not charged only when its hold set something aside", () => {+ it("its output check is part of Creating, and a stopped run says Not charged only when its hold set something aside", () => {const now = Date.now();const insert = (id: string, status: string, request: Record<string, unknown>, stage: string | null = null) =>db()@@ -540,7 +540,7 @@ describe("what an account reads about its run", () => {expect("charged" in getGeneration(`charged-${now}`)!.request).toBe(false);});- it("while it goes, only In line or Working, whatever the technical words were", () => {+ it("while it goes, only In line or Creating, whatever the technical words were", () => {const now = Date.now();const id = `words-${now}`;db()diff --git a/tests/pool-line-order.test.ts b/tests/pool-line-order.test.tsindex ad79d75c..5c6d27ca 100644--- a/tests/pool-line-order.test.ts+++ b/tests/pool-line-order.test.ts@@ -598,12 +598,12 @@ describe("the run ceiling", () => {await tick();const g = getGeneration(id)!;expect(g.status).toBe("running");- // Taken afresh by a worker whose beats name no model loaded: Working, getting ready (no progress of the attempt before).+ // Taken afresh by a worker whose beats name no model loaded: getting ready (no progress of the attempt before).expect(g.message).toBe(POOL_WORDS.gettingReady);expect(g.progress).toBeNull();});- it("a worker with another model loaded: Loading the model until the first step reports; with its model loaded, Working at once", async () => {+ it("a worker with another model loaded: Getting ready until the first step reports; with its model loaded, Creating at once", async () => {const w = standInWorker();const { id, t } = await accountRun("getting ready");const lane = rowOf(t.id).lane!;@@ -618,8 +618,8 @@ describe("the run ceiling", () => {// Its first step: the model is loaded, and its words say the step.tasks.report(rowOf(t.id), { event: "running", value: 1, max: 4 }, () => ({ error: "unused" }));await tick();- expect(getGeneration(id)?.message).toBe("Working · Step 1 of 4");- // Given back, and taken by a worker that has its model loaded: Working, with no getting ready.+ expect(getGeneration(id)?.message).toBe("Creating · 25%");+ // Given back, and taken by a worker that has its model loaded: Creating, with no getting ready.tasks.report(rowOf(t.id), { event: "give-back", why: "stalled" }, () => ({ error: "unused" }));beatWarm(lane);expect(claimAs(w)?.id).toBe(t.id);@@ -660,7 +660,7 @@ describe("the run ceiling", () => {for (let v = 1; v <= 6; v++) {// Its worker names the node for the owner; the person reads none of it.const g = await look({ nodesDone: before, node: sampler, value: v, max: 6, nodeClass: "KSampler", nodeTitle: "Main sampler" });- expect(g.message).toBe(`Working · Step ${v} of 6`);+ expect(g.message).toBe(`Creating · ${Math.round((v / 6) * 100)}%`);expect(JSON.stringify(g)).not.toMatch(/KSampler|Main sampler/);at.push(g.progress!);}diff --git a/tests/recovery-server.test.ts b/tests/recovery-server.test.tsindex 6ef0323b..ecc23043 100644--- a/tests/recovery-server.test.ts+++ b/tests/recovery-server.test.ts@@ -17,7 +17,7 @@ import { workerDriver, type WorkerDriver } from "./helpers/worker-driver";* limits only). Each check asks the same three things of the run:** - its output arrives exactly once (one result in the run, one file kept, one prompt where nothing went wrong);- * - every look at it shows only "In line" with its place, "Working", then the result: a recovery shows "In line" again+ * - every look at it shows only "In line" with its place, "Creating", then the result: a recovery shows "In line" again* with its place kept, and never an error or a word about the machines. The looks are a refresh, the account's* session and a second session on another device (each through the sign-in proxy, as a browser asks), its list, and* with two app processes the other one too. Each look must find the run, and another account must be refused it;@@ -351,7 +351,7 @@ async function expectFreeFailure(id: string) {// ---------------------------------------------------------------------------describe("an account's run reaches the workers", () => {- it("with no ComfyUI address, it becomes the account's task, a stand-in worker renders it, and it shows only In line, Working and the result", async () => {+ it("with no ComfyUI address, it becomes the account's task, a stand-in worker renders it, and it shows only In line, Creating and the result", async () => {const w = standInWorker();// Every run free: the price says only "Free".const q = await priceCheck(IMAGE);@@ -499,7 +499,7 @@ describe("a refresh, a second session and the list see the same run", () => {});describe("a run's preview picture while it works", () => {- it("the Working tile gets the worker's latest picture, for the run's own account only and never kept by a cache; it goes when the run ends", async () => {+ it("the Creating tile gets the worker's latest picture, for the run's own account only and never kept by a cache; it goes when the run ends", async () => {const w = standInWorker();const { id, task } = await pressRun();const watch = watchOf(id);@@ -646,7 +646,7 @@ describe("a run's preview picture while it works", () => {expect((await ended(id))?.status).toBe("succeeded");});- it("a worker's preview pictures reach the Working tile: the latest shows, and the studio keeps at most one every 2 s", async () => {+ it("a worker's preview pictures reach the Creating tile: the latest shows, and the studio keeps at most one every 2 s", async () => {const w = standInWorker();const { id } = await pressRun();const watch = watchOf(id);@@ -1473,7 +1473,7 @@ describe("the run ceiling per lane", () => {await workAll(d);expect(after).toEqual(["running", "running"]);expect(watch.path("session")).toEqual(["queued", "running", "queued", "running", "failed"]);- // Until it truly can't finish: only In line, with its place kept, and Working.+ // Until it truly can't finish: only In line, with its place kept, and Creating.expect(watch.problems({ place: 1 }).filter((p) => !p.includes('"status":"failed"'))).toEqual([]);await expectFreeFailure(id);});@@ -1501,7 +1501,7 @@ describe("the run ceiling per lane", () => {// The worker sent it again: 4 minutes into this attempt (11 since the first began), it is still working.resent = true;await pass(4 * MIN, [d], watch);- expect(getGeneration(id)).toMatchObject({ status: "running", message: expect.stringMatching(/^Working/) });+ expect(getGeneration(id)).toMatchObject({ status: "running", message: expect.stringMatching(/^Creating/) });}});await workAll(d);diff --git a/tests/recovery-standins.test.ts b/tests/recovery-standins.test.tsindex 6e19b9df..d7d8707d 100644--- a/tests/recovery-standins.test.ts+++ b/tests/recovery-standins.test.ts@@ -272,7 +272,7 @@ describe("what the harness checks", () => {expect(stepOf("/api/gpu/computer/tasks/abc/report", { body: JSON.stringify({ event: "comfy-down" }) })).toBe("other");});- it("lets a run show only In line with its place, Working and its result", async () => {+ it("lets a run show only In line with its place, Creating and its result", async () => {const at = (g: Record<string, unknown>) => async () => g as never;const good = new RunWatch({ a: at({ status: "queued", message: POOL_WORDS.inLine, queue: { place: 2, etaSeconds: 9 } }) });await good.look();@@ -281,7 +281,7 @@ describe("what the harness checks", () => {const cases: [Record<string, unknown>, RegExp][] = [[{ status: "failed", error: "Timed out after 45 minutes" }, /a state that isn't/],[{ status: "queued", message: "Waiting for a GPU · 2 ahead", queue: { place: 3 } }, /doesn't say In line/],- [{ status: "running", message: "ComfyUI restarted" }, /doesn't say Working/],+ [{ status: "running", message: "ComfyUI restarted" }, /doesn't say Creating/],[{ status: "queued", message: POOL_WORDS.inLine, queue: { place: 3 } }, /place went back from 2 to 3/],[{ status: "succeeded", outputs: [] }, /nothing in it/],];diff --git a/tests/run-progress.test.ts b/tests/run-progress.test.tsindex 5cc1aa43..56a767fb 100644--- a/tests/run-progress.test.ts+++ b/tests/run-progress.test.ts@@ -117,7 +117,7 @@ describe("a cold H3 run's progress", () => {const at = (v: number) => seen.find((s) => s.r.value === v && s.r.node === "125")!;expect(at(3).share).toBeGreaterThan(0.45);expect(at(3).share).toBeLessThan(0.6);- expect(at(3).words).toBe("Working · Step 3 of 6");+ expect(at(3).words).toBe("Creating · 50%");for (let v = 1; v <= 6; v++) expect(at(v).share).toBeGreaterThan(at(v - 1).share + 0.1);// Between two steps it moves on by the time a step takes, never past the next step's share.const between = seen.filter((s) => s.r.value === 2 && s.r.node === undefined);@@ -196,13 +196,20 @@ describe("following a job's reports", () => {});describe("its words", () => {- it("a person's: the stage, with the step while it samples", () => {- expect(poolRunWords({ stage: "loading" })).toBe("Loading the model");- expect(poolRunWords({ stage: "preparing" })).toBe("Working");- expect(poolRunWords({ stage: "sampling", step: { value: 3, max: 6 } })).toBe("Working · Step 3 of 6");- expect(poolRunWords({ stage: "finishing" })).toBe("Finishing");- for (const w of ["Loading the model", "Working", "Working · Step 3 of 6", "Finishing"]) expect(isPoolRunWords(w)).toBe(true);- expect(isPoolRunWords("Making your clip · step 3 of 6")).toBe(false);+ it("a person's: plain words for the stage, with a whole percent while it samples", () => {+ expect(poolRunWords({ stage: "loading" })).toBe("Getting ready");+ expect(poolRunWords({ stage: "preparing" })).toBe("Creating");+ expect(poolRunWords({ stage: "sampling", step: { value: 3, max: 6 } })).toBe("Creating · 50%");+ expect(poolRunWords({ stage: "sampling", step: { value: 1, max: 3 } })).toBe("Creating · 33%");+ expect(poolRunWords({ stage: "sampling", step: { value: 2, max: 3 } })).toBe("Creating · 67%");+ // Clamped to 0–100.+ expect(poolRunWords({ stage: "sampling", step: { value: 9, max: 6 } })).toBe("Creating · 100%");+ expect(poolRunWords({ stage: "sampling", step: { value: -1, max: 6 } })).toBe("Creating · 0%");+ expect(poolRunWords({ stage: "sampling", step: { value: 1, max: 0 } })).toBe("Creating · 0%");+ expect(poolRunWords({ stage: "finishing" })).toBe("Almost done");+ for (const w of ["Getting ready", "Creating", "Creating · 50%", "Creating · 100%", "Almost done"]) expect(isPoolRunWords(w)).toBe(true);+ // The owner's words and the earlier ones are not a person's.+ for (const w of ["Making your clip · step 3 of 6", "Loading the model", "Working · Step 3 of 6", "Finishing", "Creating · 50"]) expect(isPoolRunWords(w), w).toBe(false);});it("the owner's: the same stages, naming what it makes", () => {@@ -238,11 +245,12 @@ describe("a person's card for a job on the workers (cardProgress)", () => {});it("says the minutes left after the words, and those words still count as a running job's", () => {- expect(withLeft("Working", 4)).toBe("Working · about 4 min left");- expect(withLeft("Working", undefined)).toBe("Working");- expect(withLeft("Working", 0)).toBe("Working");- expect(isPoolRunWords("Working · about 4 min left")).toBe(true);- expect(isPoolRunWords("Finishing · about 1 min left")).toBe(true);- expect(isPoolRunWords("Working · about 0 s left")).toBe(false);+ expect(withLeft("Creating", 4)).toBe("Creating · about 4 min left");+ expect(withLeft("Creating", undefined)).toBe("Creating");+ expect(withLeft("Creating", 0)).toBe("Creating");+ expect(isPoolRunWords("Creating · about 4 min left")).toBe(true);+ expect(isPoolRunWords("Creating · 50% · about 4 min left")).toBe(true);+ expect(isPoolRunWords("Almost done · about 1 min left")).toBe(true);+ expect(isPoolRunWords("Creating · about 0 s left")).toBe(false);});});