oficina / slides Public

Slides: a gzipped save a server refuses is sent again uncompressed

Docs #94, round 2, on the same code. A server that does not gunzip (a
rollback with a tab on the new bundle, or a hop that strips
Content-Encoding) refuses the compressed bytes with a 422, and the queue
drops a batch a 4xx answers. createPoster sends such a save once more as
it is (400, 415 or 422) and stops gzipping for the page; quiet retries
back off from 500ms to 4s; corrupt gzip is a 400, as in Docs.

The closing test now sees the beacon: a 46KB paste that gzips to about
28KB, a save required while the large one is still held, and finished
pages closed so their held links do not queue the beacon behind the
host's connections. With the beacon fix reverted it fails in Chromium and
WebKit; a new stripped-encoding case failed ("failed" shown) before the
fallback.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by paul@keymail.dev a5a6572a7340a1db5c3cbff06c039c00aa4c523b parent 48f161e
10 files changed, +269 −52
  • AGENTS.md +7 −2
  • fixtures/editor-entry.js +8 −5
  • fixtures/engines/saving.mjs +29 −3
  • fixtures/save-queue.mjs +52 −4
  • fixtures/save-queue.test.mjs +78 −3
  • internal/slides/credits/assets.json +1 −1
  • internal/slides/live.go +4 −1
  • internal/slides/static/{editor.6401451793bdc579.js => editor.6a6b86d011521364.js} +15 −15
  • internal/slidestest/drain_test.go +10 −7
  • internal/slidestest/saving_browser_test.go +65 −11

CI passed — run details

AGENTS.md

Loading diff…

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/slides/credits/assets.json

Loading diff…

internal/slides/live.go

Loading diff…

internal/slides/static/{editor.6401451793bdc579.js => editor.6a6b86d011521364.js}

Loading diff…

internal/slidestest/drain_test.go

Loading diff…

internal/slidestest/saving_browser_test.go

Loading diff…