Files
buzz/desktop/src
npub1mn7jgtj4w2pd0g0zeuhxsa6jy6p0rewxz4kujt98my82ahfmp72sxjexk7 30702135c7 test(channels): demonstrate thread-unread badge Case 1 + Case 3 defects
Investigation guards for the LP4 thread-unread badge flakiness. Each new
test passes against current behavior to pin the exact trigger, labeled
DEFECT (documents the bug) or DESIRED/control.

Case 1 (badge at level N, not root): a deep reply whose intermediate
ancestor is absent from the loaded timeline is keyed under that absent
parent, so collectSubtreeReplies never reaches it from the root bucket.
The root undercounts or shows no badge while the reply is genuinely unread.

Case 3 (no badge anywhere): seedThreadBadgeFrontiers seeds via the
effective thread marker max(thread_own, channel_marker); once channel-open
mark-read folds the channel marker past the unread reply, the seed lands
past it and computeThreadBadgeCounts yields zero. The pre-mark-read marker
control keeps the badge.

These are demonstration tests only; no fix code changes.

Co-authored-by: Will Pfleger <pfleger.will@gmail.com>
Signed-off-by: Will Pfleger <pfleger.will@gmail.com>
2026-06-22 19:36:55 -04:00
..
2026-06-22 11:48:32 -07:00
2026-03-09 13:02:11 -07:00