Skip to content

armgit / fuobe

Public Imported from GitHub
0

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.

Originals O6: the duration chip counts the extend of a take longer than 20 s

Claude8ccbebe080c3
diff --git a/src/components/cinema/prompt-bar.tsx b/src/components/cinema/prompt-bar.tsx
index e5ba5ef1..a26c2d2d 100644
--- a/src/components/cinema/prompt-bar.tsx
+++ b/src/components/cinema/prompt-bar.tsx
@@ -379,7 +379,9 @@ export function PromptBar(props: PromptBarProps) {
const video = draft.mode === "video";
const action = input.action;
const busy = generate.isPending || preparing;
- const effectiveDuration = plan.steps.find((s) => s.key === "main")?.request.params?.duration;
+ // The take's length: the main clip, plus what an extend adds (Fuobe Cinema past 20 s in the cloud).
+ const stepSeconds = (key: string) => plan.steps.find((s) => s.key === key)?.request.params?.duration;
+ const effectiveDuration = stepSeconds("main") !== undefined ? stepSeconds("main")! + (stepSeconds("more") ?? 0) : undefined;
const submit = async () => {
if (busy) return;
diff --git a/tests/e2e/cinema-original.mjs b/tests/e2e/cinema-original.mjs
index ffd519e9..6356b9a3 100644
--- a/tests/e2e/cinema-original.mjs
+++ b/tests/e2e/cinema-original.mjs
@@ -106,6 +106,20 @@ async function session(width, height, scheme) {
await page.waitForTimeout(500);
const body = await page.locator("body").innerText();
check(`${tag}: the bar says the move drives LTX-2.3's camera LoRA`, /Dolly In drives LTX-2\.3's dolly in camera LoRA/.test(body));
+ // 30 s in the cloud: one 20 s take plus an extend, and the duration chip says 30 s (not "the model makes 20 s").
+ const durationChip = page.getByRole("button", { name: /^Duration: / }).locator("visible=true");
+ if (await durationChip.count()) {
+ await durationChip.first().click();
+ await page.getByRole("button", { name: "30s", exact: true }).click();
+ await page.keyboard.press("Escape");
+ await page.waitForTimeout(400);
+ const chipText = ((await durationChip.first().textContent()) ?? "").replace(/^Duration:\s*/, "").trim();
+ const notes30 = await page.locator("body").innerText();
+ check(`${tag}: 30 s shows as 30 s, with an extend for the last 10 s`, chipText === "30s" && /an extend adds the last 10s/.test(notes30), chipText);
+ await durationChip.first().click();
+ await page.getByRole("button", { name: "5s", exact: true }).click();
+ await page.keyboard.press("Escape");
+ }
const generate = page.getByRole("button", { name: /^Generate/ }).first();
check(`${tag}: the price shows before running`, /Demo|≈ \$|Free/.test(body));
await shot("cloud-bar");