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:
mes123456
2026-12-02 20:12:37 +08:00
parent d3260cb0cb
commit 192b13901d
7 changed files with 17 additions and 10 deletions

View File

@@ -90,10 +90,10 @@ const PREFLIGHT = [
"setSceneViewLayerLightgroups",
"setSculptMeshAttributes",
"setSequencerStrips",
"setSequencerTransitions",
];
const UNCHECKED = [
"setNLAStack",
"setSequencerTransitions",
];
const keysBy = (select) => Object.keys(CONTRACTS).filter((type) => select(CONTRACTS[type])).sort();