feat(ui-flow): sync-guild-mesh-triple-voice recovery IPC (Phase 810)

Triple topology refresh for voice-state gossip and guild-sync-ready voice.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-06-03 23:06:31 -04:00
co-authored by Cursor
parent ab6bba7e70
commit 51b1ebdb0c
2 changed files with 19 additions and 0 deletions
+2
View File
@@ -2,6 +2,8 @@
Pearcord desktop UI IPC dispatch and automated flow scenarios for Bare smokes. Mirrors `apps/pearcord` pear-pipe message handling.
**Phase 810 (v0.8.777):** `sync-guild-mesh-triple-voice` recovery IPC. Bundle: `npm run test:ci-phase810`.
**Phase 809 (v0.8.776):** `sync-guild-mesh-triple-reconnect` recovery IPC. Bundle: `npm run test:ci-phase809`.
**Phase 808 (v0.8.775):** `sync-guild-mesh-triple-roles` recovery IPC. Bundle: `npm run test:ci-phase808`.
+17
View File
@@ -1159,6 +1159,23 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
pushState({ structural: true, light: false })
return true
}
if (t === 'sync-guild-mesh-triple-voice') {
if (platform.mode === 'guild' && platform.guild?.guild?.id) {
const gid = platform.guild.guild.id
platform.emit('guild-mesh-topology', {
guildId: gid,
meshPeerCount: platform.guild?.peers?.size ?? 0,
manualRecovery: true
})
platform.emit('voice-state')
platform.emit('guild-sync-ready', { guildId: gid, voice: 1 })
if (typeof platform.requestGuildSyncFanout === 'function') {
platform.requestGuildSyncFanout()
}
}
pushState({ structural: true, light: false, source: 'sync-guild-mesh-triple-voice' })
return true
}
if (t === 'sync-guild-unread') {
if (platform.mode === 'guild' && platform.guild?.guild?.id) {
platform.emit('notification')