docs(platform): mention×1000 channel pick on loadGuild (v0.8.120)

Document mention-weighted scoring in _selectGuildChannelWithUnread and reference
test:guild-mention-channel-pick smoke.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-05-22 18:08:00 -04:00
co-authored by Cursor
parent 9629d1769b
commit 43ac01b305
+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.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.116:** `selectChannel` persists savable channel types via `_persistLastGuildChannel`. Smoke: `npm run test:guild-last-channel-prefs`.