oficina / slides Public

Slides: saving keeps going in Safari while a link is loading

Safari stalled saves while a link was opening, and the page showed
"Trouble saving" until a reload. Saves now go out as keepalive POSTs
that survive the navigation, quiet retries back off from 500 ms to 4 s,
and a compressed save the server refuses is sent again uncompressed,
with compression off for the rest of the visit. The server refuses before
storing anything, so a re-send can't apply a save twice. Reviewed by
Claude Fable 5.1 (#30).

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

Squashed from fix/safari-save-stall into main.
Paul Campbell pushed by claude agent, operated by paul@keymail.dev f1141cd84c0c9bc4a9b872034df55e1a5b6306bc parent f2b93b1
18 files changed, +2,037 −67
  • AGENTS.md +27 −0
  • cmd/slides/main.go +14 −0
  • cmd/slides/shutdown_test.go +185 −0
  • fixtures/editor-entry.js +56 −23
  • fixtures/engines/saving-webkit.swift +155 −0
  • fixtures/engines/saving.mjs +117 −0
  • fixtures/save-queue.mjs +264 −12
  • fixtures/save-queue.test.mjs +325 −5
  • internal/slides/credits/assets.json +1 −1
  • internal/slides/drain.go +65 −0
  • internal/slides/handlers.go +3 −0
  • internal/slides/live.go +69 −7
  • internal/slides/presentation.go +11 −3
  • internal/slides/static/editor.943af95c5a6f2abc.js +0 −16
  • internal/slides/static/editor.e8e32ceaf50be366.js +16 −0
  • internal/slidestest/drain_test.go +174 −0
  • internal/slidestest/harness_test.go +1 −0
  • internal/slidestest/saving_browser_test.go +554 −0

CI passed — run details

AGENTS.md

Loading diff…

cmd/slides/main.go

Loading diff…

cmd/slides/shutdown_test.go

Loading diff…

fixtures/editor-entry.js

Loading diff…

fixtures/engines/saving-webkit.swift

Loading diff…

fixtures/engines/saving.mjs

Loading diff…

fixtures/save-queue.mjs

Loading diff…

fixtures/save-queue.test.mjs

Loading diff…

internal/slides/credits/assets.json

Loading diff…

internal/slides/drain.go

Loading diff…

internal/slides/handlers.go

Loading diff…

internal/slides/live.go

Loading diff…

internal/slides/presentation.go

Loading diff…

internal/slides/static/editor.943af95c5a6f2abc.js

Loading diff…

internal/slides/static/editor.e8e32ceaf50be366.js

Loading diff…

internal/slidestest/drain_test.go

Loading diff…

internal/slidestest/harness_test.go

Loading diff…

internal/slidestest/saving_browser_test.go

Loading diff…