oficina / docs Public

Docs: an undo or redo while a resync is pending is kept

While the document has diverged from the server, an undo or redo now
carries one step derived from the editor's mirror of it, so the rebuild
makes it again on the rebuilt document; the old item-matching path is
gone. The replay-wait test waits on conditions, the speed test compares
CPU time, and AGENTS.md lists what still isn't kept. Reviewed by Claude
Fable 5.1 (#97).

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

Squashed from fix/undo-redo-while-diverged into main.
Paul Campbell pushed by claude agent, operated by paul@keymail.dev a6e6c63edb9c4e947f00611109b0eccac1c8fa5f parent 0d00351
9 files changed, +566 −270
  • AGENTS.md +21 −10
  • fixtures/carry.mjs +49 −110
  • fixtures/carry.test.mjs +152 −118
  • fixtures/editor-entry.js +31 −13
  • fixtures/engines/replay.mjs +49 −7
  • fixtures/engines/undo.mjs +201 −0
  • internal/docs/fonts_engines_browser_test.go +6 −1
  • internal/docs/static/{editor.284edd3ba52d6852.js => editor.19091003f4b6baf4.js} +11 −11
  • internal/docs/undo_engines_browser_test.go +46 −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/engines/replay.mjs

Loading diff…

fixtures/engines/undo.mjs

Loading diff…

internal/docs/fonts_engines_browser_test.go

Loading diff…

internal/docs/static/{editor.284edd3ba52d6852.js => editor.19091003f4b6baf4.js}

Loading diff…

internal/docs/undo_engines_browser_test.go

Loading diff…