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>
10 files changed,
+269
−52
AGENTS.md+7 −2fixtures/editor-entry.js+8 −5fixtures/engines/saving.mjs+29 −3fixtures/save-queue.mjs+52 −4fixtures/save-queue.test.mjs+78 −3internal/slides/credits/assets.json+1 −1internal/slides/live.go+4 −1internal/slides/static/{editor.6401451793bdc579.js => editor.6a6b86d011521364.js}+15 −15internal/slidestest/drain_test.go+10 −7internal/slidestest/saving_browser_test.go+65 −11
CI passed — run details
AGENTS.mdLoading diff…
fixtures/editor-entry.jsLoading 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/live.goLoading diff…
internal/slides/static/{editor.6401451793bdc579.js => editor.6a6b86d011521364.js}Loading diff…
internal/slidestest/drain_test.goLoading diff…
internal/slidestest/saving_browser_test.goLoading diff…