The packaged FastAPI static mount returned JSON 404 for /project/{id}. Serve the SvelteKit fallback page for client routes, and point README at source until a zip is trustworthy.
Extends the 1.2.1 Agent-loop fix to every LLM caller: with completions
streamed internally, the 120 s httpx timeout bounds the gap BETWEEN chunks
(liveness) instead of total generation time, so a thinking model that
streams reasoning_content can legitimately work past 120 s while a dead
server still fails fast. chat_stream gains response_format= with an
in-stream HTTP-400 drop-ladder (response_format first, then tools); servers
that reject stream:true entirely fall back to one plain blocking POST.
A reasoning-only stream (zero content accumulated) raises ValueError so
generate_structured's json_object retry fires instead of returning blank.
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>