Slides: a refused save no longer loses the paste written on it
carry() judges each update by what of it actually integrated (structs and the applied part of each delete range) and posts only that part; the paste that waited for its font is replayed onto the rebuilt document through the differing span (findDiff-adjusted for overlap) as one carried change before any view mounts; and each held change takes a fresh client id so one held update no longer strands the rest. Reviewed by Claude Fable 5.1 (#28). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Squashed from fix/carry-replay into main.
16 files changed,
+1,194
−77
AGENTS.md+22 −3fixtures/carry.mjs+239 −0fixtures/carry.test.mjs+303 −0fixtures/editor-entry.js+46 −43fixtures/editor-fonts.mjs+5 −2fixtures/engines/replay.mjs+212 −0fixtures/package-lock.json+1 −0fixtures/package.json+1 −0fixtures/resync-controller.mjs+9 −0internal/slides/credits/assets.json+3 −3internal/slides/static/editor.596eb5f31695119e.js+16 −0internal/slides/static/editor.ba2ef94a3f5c9b80.js+0 −16internal/slidestest/carry_browser_test.go+196 −0internal/slidestest/fonts_engines_browser_test.go+16 −1internal/slidestest/races_browser_test.go+31 −9internal/slidestest/replay_engines_browser_test.go+94 −0
CI passed — run details
AGENTS.mdLoading diff…
fixtures/carry.mjsLoading diff…
fixtures/carry.test.mjsLoading diff…
fixtures/editor-entry.jsLoading diff…
fixtures/editor-fonts.mjsLoading diff…
fixtures/engines/replay.mjsLoading diff…
fixtures/package-lock.jsonLoading diff…
fixtures/package.jsonLoading diff…
fixtures/resync-controller.mjsLoading diff…
internal/slides/credits/assets.jsonLoading diff…
internal/slides/static/editor.596eb5f31695119e.jsLoading diff…
internal/slides/static/editor.ba2ef94a3f5c9b80.jsLoading diff…
internal/slidestest/carry_browser_test.goLoading diff…
internal/slidestest/fonts_engines_browser_test.goLoading diff…
internal/slidestest/races_browser_test.goLoading diff…
internal/slidestest/replay_engines_browser_test.goLoading diff…