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.
18 files changed,
+2,037
−67
AGENTS.md+27 −0cmd/slides/main.go+14 −0cmd/slides/shutdown_test.go+185 −0fixtures/editor-entry.js+56 −23fixtures/engines/saving-webkit.swift+155 −0fixtures/engines/saving.mjs+117 −0fixtures/save-queue.mjs+264 −12fixtures/save-queue.test.mjs+325 −5internal/slides/credits/assets.json+1 −1internal/slides/drain.go+65 −0internal/slides/handlers.go+3 −0internal/slides/live.go+69 −7internal/slides/presentation.go+11 −3internal/slides/static/editor.943af95c5a6f2abc.js+0 −16internal/slides/static/editor.e8e32ceaf50be366.js+16 −0internal/slidestest/drain_test.go+174 −0internal/slidestest/harness_test.go+1 −0internal/slidestest/saving_browser_test.go+554 −0
CI passed — run details
AGENTS.mdLoading diff…
cmd/slides/main.goLoading diff…
cmd/slides/shutdown_test.goLoading diff…
fixtures/editor-entry.jsLoading diff…
fixtures/engines/saving-webkit.swiftLoading diff…
fixtures/engines/saving.mjsLoading diff…
fixtures/save-queue.mjsLoading diff…
fixtures/save-queue.test.mjsLoading diff…
internal/slides/credits/assets.jsonLoading diff…
internal/slides/drain.goLoading diff…
internal/slides/handlers.goLoading diff…
internal/slides/live.goLoading diff…
internal/slides/presentation.goLoading diff…
internal/slides/static/editor.943af95c5a6f2abc.jsLoading diff…
internal/slides/static/editor.e8e32ceaf50be366.jsLoading diff…
internal/slidestest/drain_test.goLoading diff…
internal/slidestest/harness_test.goLoading diff…
internal/slidestest/saving_browser_test.goLoading diff…