oficina / docs Public

Docs: a resync keeps a paste that was waiting for its font

The resync waits for the pending action, carries what was written onto
the rebuilt document before its view mounts, and takes a fresh Yjs
client ID; the carried paste is one undo step. Uncarriable changes are
not posted, unsaved work is beaconed on close, and the queue no longer
reports ok while a batch is on the wire. A paste anchored to the refused
text itself is still lost (and reported); replaying it is the next
branch. Reviewed by Claude Fable 5.1 (#88).

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

Squashed from fix/resync-keeps-waiting-paste into main.
Paul Campbell pushed by claude agent, operated by paul@keymail.dev a40df03be2d0d98712200152bd6aa6cd7425d2f4 parent 88b60fa
6 files changed, +300 −29
  • fixtures/editor-entry.js +123 −13
  • fixtures/save-queue.mjs +11 −2
  • fixtures/save-queue.test.mjs +16 −0
  • internal/docs/resync_browser_test.go +136 −0
  • internal/docs/static/editor.455b88221c9de6ec.js +14 −0
  • internal/docs/static/editor.cd50554350b8c6aa.js +0 −14

CI passed — run details

fixtures/editor-entry.js

Loading diff…

fixtures/save-queue.mjs

Loading diff…

fixtures/save-queue.test.mjs

Loading diff…

internal/docs/resync_browser_test.go

Loading diff…

internal/docs/static/editor.455b88221c9de6ec.js

Loading diff…

internal/docs/static/editor.cd50554350b8c6aa.js

Loading diff…