oficina / slides Public

Slides: every edit made while a resync is pending is kept

Local ProseMirror changes made while the document has diverged from the
server are kept as transactions as well as Yjs updates, and replayed
onto the rebuilt document (collab-style rebase) when they can't
integrate as they are; carried edits keep their undo grouping, an undo
while diverged leaves the change out and a redo restores it, and carry
is linear. Known limit: an undo/redo that re-inserts text from a
replayed change is still lost (follow-up). Reviewed by Claude Fable 5.1 (#29).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Squashed from feat/replay-while-diverged into main.
Paul Campbell pushed by claude agent, operated by paul@keymail.dev 4c2386132b012b278459bdd6ade8f932c4d160e9 parent 57369b1
14 files changed, +1,001 −143
  • AGENTS.md +41 −14
  • fixtures/carry.mjs +215 −49
  • fixtures/carry.test.mjs +314 −1
  • fixtures/editor-entry.js +57 −30
  • fixtures/editor-fonts.mjs +5 −5
  • fixtures/engines/diverged.mjs +212 −0
  • fixtures/stage.mjs +15 −5
  • internal/slides/credits/assets.json +1 −1
  • internal/slides/static/editor.596eb5f31695119e.js +0 −16
  • internal/slides/static/editor.edeb171c568b6ea8.js +16 −0
  • internal/slidestest/carry_browser_test.go +47 −0
  • internal/slidestest/diverged_engines_browser_test.go +49 −0
  • internal/slidestest/fonts_engines_browser_test.go +7 −0
  • internal/slidestest/races_browser_test.go +22 −22

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/diverged.mjs

Loading diff…

fixtures/stage.mjs

Loading diff…

internal/slides/credits/assets.json

Loading diff…

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

Loading diff…

internal/slides/static/editor.edeb171c568b6ea8.js

Loading diff…

internal/slidestest/carry_browser_test.go

Loading diff…

internal/slidestest/diverged_engines_browser_test.go

Loading diff…

internal/slidestest/fonts_engines_browser_test.go

Loading diff…

internal/slidestest/races_browser_test.go

Loading diff…