refactor(queue): tighten reconnect reconciliation
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user