docs: note equal-unread position tie-break (v0.8.123)

Document that _selectGuildChannelWithUnread prefers lower channel.position
when mention/unread scores tie; smoke test:guild-unread-position-tie.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-05-22 18:25:09 -04:00
co-authored by Cursor
parent 43ac01b305
commit 19188c725c
+2
View File
@@ -135,6 +135,8 @@ Primary consumer: `apps/pearcord/index.js` sidecar reading pear-pipe JSON.
**v0.8.115:** `loadGuild` / `_openGuild` clears stale `activeChannelId`, then `_selectGuildChannelWithUnread` picks mention-weighted unread channels before falling back to the first text channel. `setSearch` records `searchRecentByGuild` in user prefs. View: `searchRecentQueries`. **v0.8.115:** `loadGuild` / `_openGuild` clears stale `activeChannelId`, then `_selectGuildChannelWithUnread` picks mention-weighted unread channels before falling back to the first text channel. `setSearch` records `searchRecentByGuild` in user prefs. View: `searchRecentQueries`.
**v0.8.123:** Equal unread/mention scores tie-break to lower `channel.position`. Smoke: `test:guild-unread-position-tie`.
**v0.8.120:** `_selectGuildChannelWithUnread` scores `mentions × 1000 + unread`; mention channel beats higher plain unread. Smoke: `test:guild-mention-channel-pick`. **v0.8.120:** `_selectGuildChannelWithUnread` scores `mentions × 1000 + unread`; mention channel beats higher plain unread. Smoke: `test:guild-mention-channel-pick`.
**v0.8.119:** `_selectGuildChannelWithUnread` order: highest unread/mention score → `lastChannelByGuild` → first text. Smokes: `test:guild-unread-over-last-channel`, `test:guild-unread-channel-jump`. **v0.8.119:** `_selectGuildChannelWithUnread` order: highest unread/mention score → `lastChannelByGuild` → first text. Smokes: `test:guild-unread-over-last-channel`, `test:guild-unread-channel-jump`.