Commit Graph

3 Commits

Author SHA1 Message Date
hMurderbot
0e0b02520f relay: prototype unread counts by relay-assigned sequence numbers
Not for merge. Side-by-side comparison with #8138: ingest numbers each
eligible message under a per-channel counter row, unread is the counter
less the reader's position, posting marks the author read, deleted
messages count until read past. Includes a shared benchmark test.

Signed-off-by: hMurderbot <219c58afff8ac2c76e4e527a329aa61c2ebbb896786b1916d4f9cca5140ecd04@buzz.block.builderlab.xyz>
2026-10-06 19:54:55 -07:00
ART5
dceafd3ee7 relay: count buzz/v1 unread forward from the read position
Count unread forward from each context's position, capped at 99 (advertised
as unread_cap). Thread read rows now mean membership: ingest writes them on
reply, mention, DM, or a reply to a thread you started, replacing the
parent lookup and giving unread_thread_count. Accounts start caught up at
the actor's first intent (personal_read_accounts.started_at); joining starts
a channel caught up. Drops the retention horizon, account, status fields,
latest_message_complete, threads.complete and context unknown.

Docs (docs/buzz-v1-read-state.md) not yet updated.

Signed-off-by: ART5 <a7397738d0f05003030d4487431db3096f2f48e09df21eb15f91f3a9aecf5f0c@buzz.block.builderlab.xyz>
2026-10-06 17:07:45 -07:00
Tyler
1a2ddf9eaa feat(relay): private read-state accessory API (#7906)
Buzz BFF: Private read-state accessory API (`/buzz/v1`)
2026-10-06 16:12:03 -04:00