oficina / slides Public

Slides: the carried paste never leaves the slide; Saved means saved

Claude Fable's review of #27 at 203d718.

- A resync puts what was written while diverged into the rebuilt
  document before any view of it is mounted, with the new undo manager
  already made: the server's HTML no longer went up without the paste
  and was painted that way in the both view.
- The save queue says 'saving', not 'ok', when an answered save leaves
  another queued; the line said Saved for a round trip with bytes
  unsent.
- A presenter form whose in-place answer fails reloads the page instead
  of calling form.submit(): the server may already have applied the
  command, and a second POST moved the room twice.
- A carried update that cannot integrate (written on top of the refused
  text) is not posted; the server held it pending in its log forever.
- A tab closed while diverged beacons what was written meanwhile with
  the queue's bytes.

Tests, each failing on 203d718: the resync paste test now logs every
stage mutation and frame in the desktop and both views, and requires
the words never to leave once there; TestAChangeOnARefusedOneIsNotPosted;
TestLeavingWhileDivergedSendsWhatWasWritten;
TestAFailedCommandAnswerIsNotSentAgain (stream kept quiet so the
fallback runs); a save-queue and a status-mapping unit test.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by paul@keymail.dev 40c36523d0b79a27f1ad2f4400e3963a17ee6b56 parent 203d718
11 files changed, +291 −67
  • AGENTS.md +15 −6
  • fixtures/editor-entry.js +56 −20
  • fixtures/save-queue.mjs +12 −2
  • fixtures/save-queue.test.mjs +17 −0
  • fixtures/status.mjs +1 −0
  • fixtures/status.test.mjs +1 −0
  • internal/slides/credits/assets.json +2 −2
  • internal/slides/static/editor.6f20169670d59132.js +0 −16
  • internal/slides/static/editor.ba2ef94a3f5c9b80.js +16 −0
  • internal/slides/static/present.js +7 −1
  • internal/slidestest/races_browser_test.go +164 −20

CI passed — run details

AGENTS.md

Loading diff…

fixtures/editor-entry.js

Loading diff…

fixtures/save-queue.mjs

Loading diff…

fixtures/save-queue.test.mjs

Loading diff…

fixtures/status.mjs

Loading diff…

fixtures/status.test.mjs

Loading diff…

internal/slides/credits/assets.json

Loading diff…

internal/slides/static/editor.6f20169670d59132.js

Loading diff…

internal/slides/static/editor.ba2ef94a3f5c9b80.js

Loading diff…

internal/slides/static/present.js

Loading diff…

internal/slidestest/races_browser_test.go

Loading diff…