oficina / slides Public

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.
Paul Campbell pushed by claude agent, operated by paul@keymail.dev 57369b1587f145d12e3bfaedb475bf2e938cf210 parent 52983f8
16 files changed, +1,194 −77
  • AGENTS.md +22 −3
  • fixtures/carry.mjs +239 −0
  • fixtures/carry.test.mjs +303 −0
  • fixtures/editor-entry.js +46 −43
  • fixtures/editor-fonts.mjs +5 −2
  • fixtures/engines/replay.mjs +212 −0
  • fixtures/package-lock.json +1 −0
  • fixtures/package.json +1 −0
  • fixtures/resync-controller.mjs +9 −0
  • internal/slides/credits/assets.json +3 −3
  • internal/slides/static/editor.596eb5f31695119e.js +16 −0
  • internal/slides/static/editor.ba2ef94a3f5c9b80.js +0 −16
  • internal/slidestest/carry_browser_test.go +196 −0
  • internal/slidestest/fonts_engines_browser_test.go +16 −1
  • internal/slidestest/races_browser_test.go +31 −9
  • internal/slidestest/replay_engines_browser_test.go +94 −0

CI passed — run details

AGENTS.md

Loading diff…

fixtures/carry.mjs

Loading diff…

fixtures/carry.test.mjs

Loading diff…

fixtures/editor-entry.js

Loading diff…

fixtures/editor-fonts.mjs

Loading diff…

fixtures/engines/replay.mjs

Loading diff…

fixtures/package-lock.json

Loading diff…

fixtures/package.json

Loading diff…

fixtures/resync-controller.mjs

Loading diff…

internal/slides/credits/assets.json

Loading diff…

internal/slides/static/editor.596eb5f31695119e.js

Loading diff…

internal/slides/static/editor.ba2ef94a3f5c9b80.js

Loading diff…

internal/slidestest/carry_browser_test.go

Loading diff…

internal/slidestest/fonts_engines_browser_test.go

Loading diff…

internal/slidestest/races_browser_test.go

Loading diff…

internal/slidestest/replay_engines_browser_test.go

Loading diff…