What happens
Typing a word into the transcript cuts the clip under the caret and inserts the generated word as a clip between the two halves. Zooms, annotations, trims and audio on the right half survive. Speed regions and Full Camera regions there are lost, and one straddling the cut is truncated at it.
Cause
fanOutAnchors (src/lib/ai-edition/document/insertion.ts:128) copies the rows anchored to the cut clip onto both halves, from a hand-picked list: trimRanges, zoomRanges, annotations, audioTracks. legacyEditor.speedRegions and legacyEditor.cameraFullscreenRegions are not in it, so those rows stay on the left half, and rederiveRegionMs clamps them to its source window.
Expected
Every anchored collection fans out to both halves. mapAllRegionCollections in timeline.ts already walks all of them; #1033 (the duplicated clip, #1007) reuses it for the same reason.
How it was found
While fixing #1007, with a throwaway unit test: after the split, the zoom on the right half survives, the speed and Full Camera regions do not. Not seen in the app yet.
What happens
Typing a word into the transcript cuts the clip under the caret and inserts the generated word as a clip between the two halves. Zooms, annotations, trims and audio on the right half survive. Speed regions and Full Camera regions there are lost, and one straddling the cut is truncated at it.
Cause
fanOutAnchors(src/lib/ai-edition/document/insertion.ts:128) copies the rows anchored to the cut clip onto both halves, from a hand-picked list:trimRanges,zoomRanges,annotations,audioTracks.legacyEditor.speedRegionsandlegacyEditor.cameraFullscreenRegionsare not in it, so those rows stay on the left half, andrederiveRegionMsclamps them to its source window.Expected
Every anchored collection fans out to both halves.
mapAllRegionCollectionsintimeline.tsalready walks all of them; #1033 (the duplicated clip, #1007) reuses it for the same reason.How it was found
While fixing #1007, with a throwaway unit test: after the split, the zoom on the right half survives, the speed and Full Camera regions do not. Not seen in the app yet.