Files
buzz/crates
Riley Crane e987232711 fix(accumulator): survive relay CLOSED acks; report backfill progress in status
Live run against the team relay surfaced three gaps:

- The relay acks a client CLOSE with an empty-message CLOSED. Backfill
  pages reused one sub id per channel, so a late ack for page N matched
  page N+1's REQ and the sync treated it as a refusal - permanent
  reconnect loop, live tail never established. One-shot sub ids are now
  connection-unique (per-page / per-chunk), an empty-message CLOSED on
  the current sub settles it instead of erroring, and the live loop
  ignores CLOSED frames for subscriptions it does not own.

- Access revoked mid-backfill would bail and hard-loop the reconnect;
  it now deactivates the channel and moves on, same as the live path.

- newest_ts was only set by the live tail; backfill pages now report
  it, so /status shows real progress while history downloads.

Also stops clap from leaking the internal Config doc comment into
--help long output.

Verified live: 19/19 channels discovered, backfilled (7529 events) and
live-tailed against wss://buzz.block.builderlab.xyz with zero
reconnects; the previously fatal CLOSED ack now logs and is ignored.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Signed-off-by: Riley Crane <rileycrane@squareup.com>
2026-09-04 10:04:35 -07:00
..