xtablo-source/backend/internal
Arthur Belleville 96a58ef0ea
fix(17): flush HTTP response before SSE publish to fix own-message alignment race
The server was publishing to the SSE broker before writing the HTMX response,
causing a race: if the SSE event (IsOwn=false, left-aligned) arrived at the
browser before HTMX appended the response (IsOwn=true, right-aligned), the
SSE path won and messageExists() then blocked the correct HTMX append.

Fix: write and flush the HTMX response first, then publish to SSE. This ensures
the sender's own message lands in the DOM right-aligned before the SSE event fires.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-05-17 12:26:13 +02:00
..
auth feat(08-03): add apple social sign-in flow 2026-05-15 21:06:08 +02:00
db feat(12-02): implement discussion unread badges 2026-05-16 10:15:38 +02:00
files Made various improvements to the file management 2026-05-15 19:57:46 +02:00
jobs feat(06-01): implement internal/jobs package with workers and error handler 2026-05-15 16:34:08 +02:00
session feat(01-01): create directory skeleton and per-package doc.go placeholders 2026-05-14 17:53:55 +02:00
tablos feat(01-01): create directory skeleton and per-package doc.go placeholders 2026-05-14 17:53:55 +02:00
tasks feat(01-01): create directory skeleton and per-package doc.go placeholders 2026-05-14 17:53:55 +02:00
web fix(17): flush HTTP response before SSE publish to fix own-message alignment race 2026-05-17 12:26:13 +02:00