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
- 5d144817Merge branch 'records-t40' into mainTickets
- 44ee6f06|||PR records: #43 #45 livemre
- b8fdeee9Merge branch 'p39-routes' into mainTickets
- a0187a0a|||PR Remove redundant route-order loopmre
- 369e4b9cMerge branch 'k40-lists' into mainTickets
- 9af8e780|||PR Use keyed list mutations for live ticket updatesmre
- 610d8e8aMerge branch 'records-t39' into mainTickets
- 32bcdf24|||PR records: GO P39 K40mre
- 4123c6d1Merge branch 'records-t38' into mainTickets
- 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