#320 ·
llmmsg-srvmulti-subscriber SSE + sender echo + client dedupe (chat-duo + chat-duo-web cohabit)
- Ref
#320(#320)- Project
llmmsg-srv- Status
- backlog
- Priority
- high
- Type
- feature
- Assigned
- llmmsg-srv-cc maintainer
- Created by
- —
- Created
- 2026-05-11T22:07:42.224Z
- Updated
- 2026-05-11T22:07:48.560Z
Questions
No questions.
Event log
-
wi cli
-
assigned to llmmsg-srv-cc
-
Repro: chat-duo-GTK on whey + chat-duo-web on tablet both register as elazar-...-llmmsg-srv. Hub channels = Map<agent, single res>: second SSE connect overwrites first; only that client gets live inbound. Plus hub never echoes outbound to sender, so neither client sees what the other sent. Fix sketch: 1) channels: Map<agent, Set<res>> with chanAdd/chanRemove; 2) sendToChannel iterates the set; 3) insertAndDeliver also pushes to sender's own set (skip if recipient===sender); 4) chat-duo-GTK gui.py:1124 _append_local + SSE handler dedupe by msg id; 5) chat-duo-web addMsg dedupe by id. Quick fix until shipped: keep chat-duo-web service stopped at home.