fix(web): reject stale sequencer transition timelines
setSequencerTransitions parsed the submitted timeline without comparing timeline.revision, so a stale submission replaced the sequencer timeline instead of conflicting. It now compares timeline.revision against the current SceneIR and reports REVISION_CONFLICT, which is the check setSequencerStrips already makes. The revision contract moves the command out of the unchecked set, and the authoring probe takes its timeline from a snapshot read after its edits and records a stale submission next to an accepted one. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
@@ -3310,7 +3310,8 @@ function assertFutureCapability(payload: Extract<WebEngineRequest["command"], {
|
||||
}
|
||||
case "setSequencerTransitions": {
|
||||
if (!currentSnapshot?.scenes.some((candidate) => candidate.id === payload.sceneId)) throw report("SEQUENCER_SCHEMA_INVALID", "Sequencer transition scene is invalid");
|
||||
parseSequencerTimeline(payload.timeline);
|
||||
const timeline = parseSequencerTimeline(payload.timeline);
|
||||
if (timeline.revision !== currentSnapshot?.revision) throw report("REVISION_CONFLICT", "Sequencer transition timeline revision does not match the current SceneIR");
|
||||
return;
|
||||
}
|
||||
case "setSequencerColorBalance": {
|
||||
|
||||
Reference in New Issue
Block a user