mirror of
https://github.com/block/buzz.git
synced 2026-11-09 10:51:42 +00:00
A channel created or joined while the daemon was backfilling, reconnecting, or briefly down never appeared until a process restart: the live-membership subscription (44100/44101, which are persisted and p-gated) anchored at "now", taken only after discovery + channel backfill + the profile backfill — so a notification emitted in that window was never queried again. The daemon now persists a membership watermark (meta table), advanced when discovery completes and past each handled notification. The subscription anchors at the watermark, so missed notifications replay on subscribe and trigger the existing clean resync; replays terminate because every resync's discovery re-advances the watermark. One subscription per channel is unchanged (a resync is a fresh connection). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Signed-off-by: Riley Crane <rileycrane@squareup.com>