tickets
All repositories: gitoria
1.6 KB
# tickets mission 014 — event stream: a stream opened right after the app starts gets no live events (bug, ticket #26)Apollo (push service), 2026-10-19 on c116146 (hybriel a832f73b): his subscriber reconnected to GET /api/events at 00:56:03,right after the restart's 502s; it got keep-alives but NOT live events 142/143 (comments at 00:56/00:57). After asubscriber restart at 00:58 they came via Last-Event-ID replay. Atlas's own curl stream opened at ~00:56 (a bit later) DIDget the comment. So: a stream opened during/right after start (warm-up, first requests, maybe while the first compileor cache load finishes, or before some server state/broadcast list is set up) stays alive but never gets broadcasts.1. Write a failing test FIRST in tests/events.mjs: start the server; open the stream as early as possible (poll fromprocess start until it connects — like a subscriber retrying through 502s; also one stream opened as the very firstrequest), then post a comment → the event must arrive on that early stream within 2 s; also a stream opened later.Run cold and warm. Show it fails on c116146.2. Find the cause (lib/stream.hl / hl:http1 sseStart/sseSend / where the subscriber list lives — e.g. per-worker orper-instance state, a list copied by value (hybriel#38 deep copy), a static initialised after the first request).If it is a Hybriel bug: minimal repro in .scratch/, report it (Atlas → Anton), and fix in tickets plainly if possible.3. Fix; all gates green (browser, events, connect, short-id-switch). GET /api/events API unchanged.Worktree /media/STORAGE/projects/tickets-w14 (branch w14-events-start), ports 8740–8759. Report reports/014-events-after-start.md.
Branches
Latest commits
- cd3641a1|||PR records: day72 deploy live, tickets closedmre
- 7d44d852Merge branch 'records-t37' into mainTickets
- 926f7061|||PR records: merges, D36 deploymre
- bf58534eMerge branch 'l33-final' into mainTickets
- 759a9ac3|||PR thin login (tickets#46, #45): merge main, route entry cleanupmre
- 239436d8Merge remote-tracking branch 'origin/main' into l33-finalmre
- 5822cb3aMerge branch 'o34-clean' into mainTickets
- 0870653c|||PR offline note from __hlOnline, no polling (tickets#41)mre
- 14cf96b4Merge branch 'records-t36' into mainTickets
- 07749fa1|||PR records: day72 + #40 mergedmre
- ecd7e226|||PR Consolidate login and move handler logic into topic libraries (partial)mre
- 6dea1c60Merge branch 'r35-day72' into mainTickets
- 7bcfdc22|||PR drop worker edits to conductor recordsmre
- 2617b6ee|||PR dialogs: host flag cleared on close, dialog gate (tickets#40)mre
- 6e701371|||PR record partial day72 dialog validationmre
- b9fb9a91|||PR bind ticket dialog visibility to member flagsmre
- 0788e65f|||PR re-vendor Hybriel day72mre
- e2a6bdcfMerge branch 'records-t35' into mainTickets
- d8d54df1|||PR records: R35 day72 + #40mre
- 8a7f475aMerge branch 'records-t33' into mainTickets