refactor(queue): tighten reconnect reconciliation

This commit is contained in:
Ibrahim Khan
2026-09-09 07:42:42 +00:00
parent 8e7c26be23
commit ca1a866bd2
5 changed files with 14 additions and 38 deletions
@@ -141,10 +141,8 @@ allowlists.
Every mutation broadcasts `openchamber:message-queue.updated` with
`{ revision, session }` to all connected clients (SSE and WS), so several
devices on one server see one queue. "SSE" here is the notification stream
at `/api/notifications/stream`. The event pipeline's SSE fallback at
`/api/global/event` is a plain proxy of OpenCode's stream and carries no
`openchamber:*` events, so a UI on that transport re-reads the snapshot when
its stream reconnects instead. The session in that payload always names
at `/api/notifications/stream`; `/api/global/event` carries no OpenChamber
events. The session in that payload always names
its `directory`, including the broadcast that removes the last item: the UI
keys its projection by directory, and a broadcast without one left the
delivered message on screen (a session's directory is remembered until the