oficina / docs Public

Docs: closing with a large save on the wire no longer loses what was typed behind it

Keepalive saves and beacons share the browser's 64KiB. The unload beacon
repeated the keepalive save already on the wire, so with a large one
there it was refused, its keepalive fallback too, and the edits queued
behind it were lost (Claude Fable on #94). The beacon now leaves out a
keepalive save, which lands without the page, and falls back to the queue
alone. Rebased onto main and the bundle rebuilt over #90.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by paul@keymail.dev 3741de1f10942ab47f0aaa326d5d3a3741b63b32 parent b1dd340
8 files changed, +202 −83
  • fixtures/editor-entry.js +48 −42
  • fixtures/engines/saving.mjs +19 −1
  • fixtures/save-queue.mjs +17 −7
  • fixtures/save-queue.test.mjs +27 −1
  • internal/docs/saving_browser_test.go +77 −4
  • internal/docs/static/editor.0770518b763a3fac.js +0 −14
  • internal/docs/static/editor.284edd3ba52d6852.js +0 −14
  • internal/docs/static/editor.781d731ca14ec9cf.js +14 −0
fixtures/editor-entry.js

Loading diff…

fixtures/engines/saving.mjs

Loading diff…

fixtures/save-queue.mjs

Loading diff…

fixtures/save-queue.test.mjs

Loading diff…

internal/docs/saving_browser_test.go

Loading diff…

internal/docs/static/editor.0770518b763a3fac.js

Loading diff…

internal/docs/static/editor.284edd3ba52d6852.js

Loading diff…

internal/docs/static/editor.781d731ca14ec9cf.js

Loading diff…