Slides: scene edits are undone like any other edit
The editor's undo manager tracked slides, meta and assets but not the scenes root, so a scene's words, data and code made no undo step, and a mixed batch (the assistant's) undid its slide changes and left its scene changes behind. The scope is now ydoc.mjs's undoScope, all four roots. Tests: undo-scope.test.mjs (a word, data and code each one step; a slide plus scene batch one step; an added scene undone) and the browser test TestASceneWordEditIsUndone.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
7 files changed,
+126
−22
AGENTS.md+2 −1fixtures/editor-entry.js+2 −2fixtures/undo-scope.test.mjs+67 −0fixtures/ydoc.mjs+6 −0internal/slides/credits/assets.json+1 −1internal/slides/static/{editor.b7d7ed4324f72e40.js => editor.3402a720a42a04c0.js}+18 −18internal/slidestest/scenes_final_browser_test.go+30 −0
AGENTS.mdLoading diff…
fixtures/editor-entry.jsLoading diff…
fixtures/undo-scope.test.mjsLoading diff…
fixtures/ydoc.mjsLoading diff…
internal/slides/credits/assets.jsonLoading diff…
internal/slides/static/{editor.b7d7ed4324f72e40.js => editor.3402a720a42a04c0.js}Loading diff…
internal/slidestest/scenes_final_browser_test.goLoading diff…