1.5 moved rendering to clips but the Video stage only surfaced the scene
script, so the workflow prompt field gave no hint of what an individual
clip performs. Each clip now carries its description, shot size, and
covered dialog lines into a brief panel above the composer, with a copy
button feeding the prompt. The stage splits into player + a scrollable
input inspector so the input stack can no longer squeeze the player out.
Build Scene (/build-scene): three.js + mannequin-js blockout viewport ported
from open-media, with per-session compositions (origin='scene' keeps rails
separate), agent shot_* tools as the only toolset for that surface, viewport
toolbar, keyframe motion + camera timeline with 60s video export, and
captures usable as project reference images.
Scene to Clips: clips table (1 scene : N renderable shots), coverage agent
breaks scenes into shots with full dialogue/action allocation, script
generation stays faithful to the screenplay (verbatim dialogue, content-
derived durations, chunked + durable inserts), video pipeline re-scoped to
clips (enqueue, continue-from, export, drafts), Script/Video UI clip-first
(#N.M labels, per-scene Break Into Shots scoped to one scene).
Agent loop: lean ReAct discipline with fail-streak escalation and budget
nudge; policy treats explicit user commands as permission; Build Scene tool
scope enforced mechanically; document + video attachments feed the VLM.
The loop raised the end-turn control flow BEFORE logging/emitting the
ask_user tool result, so the frontend never received the question — the
chat sat on "working…" with no card until the user hit Stop or refreshed
(the report: "the agent loop just stops there"). The result is now
logged + emitted first, then the turn ends with status awaiting_input.
- Question card renders the question text plus stacked option buttons
(long sentences read cleanly) and a hint line.
- Card answers are graded by first word: "Yes, replace with ~40 shorter
scenes" grants, "No, keep existing scenes" refuses — previously a
sentence option had to match "yes" exactly.
- Two regression tests: tool/result precedes turn/end with the question
payload; option-sentence approval matrix.
With an unreachable LLM endpoint the Review-prompt modal fired duplicate
long-hanging requests and left Generate impossible. Preview resolves now
fire exactly once per scene, the H3 rewrite times out after 30s and falls
back to the deterministic template, and on failure the modal populates the
editor with raw scene text so the user can edit + Generate or retry.
Issues #27/#33/#28. Generate now resolves the prompt first (saved draft
or H3 rewrite) and opens an editable review modal before enqueueing;
job history drawer shows each render's exact payload with copy-to-form.
ComfyUI 400s surface error.type + per-node messages; audio uploads go
flat and VHS audio: widgets are patched. Per-scene video settings
persist via scenes.video_settings_json (additive migration) and batch
generate honors them. Version bumped to 1.3.0.
The native select was too cramped for a project with many clips. Replace
it with a wide modal (Auto / Upload file / clip grid with thumbnails).
Clip options now cover any scene in the timeline, not just earlier ones,
and uploads wire through a hidden input. Also fix the Choose-Video modal
rendering blank under Clips/Uploads tabs: duplicate asset paths crashed
Svelte's keyed each mid-render — dedupe by path and clamp the active tab
when a tile's kind changes.
With preload="metadata" browsers paint NOTHING until playback, so the Video
tab's hero monitor and every filmstrip thumbnail sat black — clips looked
missing while their audio played fine ('no picture, but sound'). The media
fragment makes the browser seek and paint the frame at 0.1 s without playing.
Verified in-browser: fresh load paints hero + all thumbnails; selecting a
scene paints its first frame immediately.
(cherry picked from commit a81280b1543b9f6aa913be8373f0a390d3db5871)
Queues clips one POST at a time in timeline order rather than a single
all-scenes request: the H3 prompt rewrite runs synchronously inside each
generate-videos request (~1-3 min per scene on local models), so one bulk
request for a long timeline would sit for many minutes and risk a client
timeout. The label is state-aware - 'Generate all (n)' targets only scenes
without a clip (skipping done and in-flight scenes), flipping to 'Regenerate
all' when the timeline is complete. A scene that fails to queue toasts and
the loop continues. Rendering itself stays serialized by the queue worker.
Workflow resolution matches the per-scene Generate button (session pick ->
scene's stored workflow -> first enabled video workflow), which also heals
scenes whose stored workflow was deleted - without it they enqueue a job
doomed to 'No workflow found for job'.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Adds scenes.chain_from_prev (additive migration, same pattern as the existing
ones) with a toggle chip on every Script-tab scene card except the first.
The frame is resolved at JOB RUN time, not enqueue time: when queueing a whole
timeline the previous scene has not rendered yet at enqueue, but the worker is
sequential, so by the time scene N runs the clip for N-1 exists. The worker
finds the nearest earlier scene with a clip, extracts its last frame (ffmpeg,
already a runtime dependency for export), and swaps it into whichever ref slot
held the location image - located by value match against the enqueue-time
location path, so it works for any workflow layout (generic ref slots or
role-tagged), with the location-role node as fallback. No previous clip or a
failed extraction falls back to the scene's own refs with an event-bus notice,
never a hard failure.
On reference-style video workflows this yields scene-to-scene continuity (the
frame acts as the scene reference); on workflows with a pinned first-image
slot it opens frame-exact.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>