Files
aigc-home/calliope-web
Justo StollandClaude Fable 5 882a345caf Script tab: per-scene 'Chain from prev clip' toggle - start a clip from the previous scene's last frame
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>
2026-08-23 00:39:37 +02:00
..