Files
hyperframes/packages
ukimsanov 0df673e2c8 fix(studio): sync content duration on batched timeline moves
The batched persist path (persistTimelineElementsMove, used for lane-change
and insert moves) patched only data-start/data-track-index and never synced
the root data-duration. So after moving a clip past the old content end, the
player showed the right length (effectiveDuration = live max over clips) but
the saved FILE kept a stale data-duration — and a render off that file would
truncate at the stale value. This is the "moved audio to ~11.5s, it ends at
19.53s, but the file still says data-duration=15.18" case (HANDOFF-3 §6.1).

Mirror the single-clip move path: after patching, recompute the furthest clip
end for the file (resolveMovedContentEnd, using each edit's new start) and
setCompositionDurationToContent (grow OR shrink). Extracted the content-end
calc as a pure exported helper and covered it + the persist write with tests,
including a persist-level test asserting the saved source string (the G2
persist-source boundary the prior overlap bug hid behind).
2026-07-10 10:23:52 -07:00
..
2026-07-10 09:57:48 -07:00
2026-07-10 09:57:48 -07:00
2026-07-10 09:57:48 -07:00
2026-07-10 09:57:48 -07:00
2026-07-10 09:57:48 -07:00
2026-07-10 09:57:48 -07:00
2026-07-10 09:57:48 -07:00
2026-07-10 09:57:48 -07:00
2026-07-10 09:57:48 -07:00
2026-07-10 09:57:48 -07:00