oficina / docs Public

Docs: 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 (#89).

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 29b6dead4a0c2be66667a1eae50631f5b7c2ba85 parent a40df03
15 files changed, +1,253 −71
  • .amadan/ci.d/10-gate +8 −0
  • AGENTS.md +34 −0
  • fixtures/carry.mjs +239 −0
  • fixtures/carry.test.mjs +303 −0
  • fixtures/editor-entry.js +30 −45
  • fixtures/engines/replay.mjs +216 −0
  • fixtures/package-lock.json +1 −0
  • fixtures/package.json +1 −0
  • fixtures/resync-controller.mjs +9 −0
  • internal/docs/carry_browser_test.go +197 −0
  • internal/docs/fonts_engines_browser_test.go +28 −4
  • internal/docs/replay_engines_browser_test.go +85 −0
  • internal/docs/resync_browser_test.go +88 −8
  • internal/docs/static/editor.455b88221c9de6ec.js +0 −14
  • internal/docs/static/editor.7ff107f6ce88eea0.js +14 −0

CI passed — run details

.amadan/ci.d/10-gate

Loading diff…

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/package-lock.json

Loading diff…

fixtures/package.json

Loading diff…

fixtures/resync-controller.mjs

Loading diff…

internal/docs/carry_browser_test.go

Loading diff…

internal/docs/fonts_engines_browser_test.go

Loading diff…

internal/docs/replay_engines_browser_test.go

Loading diff…

internal/docs/resync_browser_test.go

Loading diff…

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

Loading diff…

internal/docs/static/editor.7ff107f6ce88eea0.js

Loading diff…