gitoria

tickets

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Main branchmain5d144817Merge branch 'records-t40' into mainTicketsmain/missions/014-events-after-start.md

1.6 KB

  1. # tickets mission 014 — event stream: a stream opened right after the app starts gets no live events (bug, ticket #26)
  2. Apollo (push service), 2026-10-19 on c116146 (hybriel a832f73b): his subscriber reconnected to GET /api/events at 00:56:03,
  3. right after the restart's 502s; it got keep-alives but NOT live events 142/143 (comments at 00:56/00:57). After a
  4. subscriber restart at 00:58 they came via Last-Event-ID replay. Atlas's own curl stream opened at ~00:56 (a bit later) DID
  5. get the comment. So: a stream opened during/right after start (warm-up, first requests, maybe while the first compile
  6. or cache load finishes, or before some server state/broadcast list is set up) stays alive but never gets broadcasts.
  7. 1. Write a failing test FIRST in tests/events.mjs: start the server; open the stream as early as possible (poll from
  8. process start until it connects — like a subscriber retrying through 502s; also one stream opened as the very first
  9. request), then post a comment → the event must arrive on that early stream within 2 s; also a stream opened later.
  10. Run cold and warm. Show it fails on c116146.
  11. 2. Find the cause (lib/stream.hl / hl:http1 sseStart/sseSend / where the subscriber list lives — e.g. per-worker or
  12. per-instance state, a list copied by value (hybriel#38 deep copy), a static initialised after the first request).
  13. If it is a Hybriel bug: minimal repro in .scratch/, report it (Atlas → Anton), and fix in tickets plainly if possible.
  14. 3. Fix; all gates green (browser, events, connect, short-id-switch). GET /api/events API unchanged.
  15. 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