feat(ipc): Phase 832 sync-guild-mesh-quad-roster

Emit member and guild-sync-ready with quadRoster after quad mesh roster
fanout recovery.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-06-04 04:06:55 -04:00
co-authored by Cursor
parent e9c0650c35
commit 82951546bf
2 changed files with 25 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 832 (v0.8.799):** `sync-guild-mesh-quad-roster` recovery IPC. Bundle: `npm run test:ci-phase832`.
**Phase 831 (v0.8.798):** `sync-guild-mesh-quad-presence` recovery IPC. Bundle: `npm run test:ci-phase831`.
**Phase 830 (v0.8.797):** `sync-guild-mesh-quad-recovery-burst` recovery IPC. Bundle: `npm run test:ci-phase830`.
+23
View File
@@ -1450,6 +1450,29 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
})
return true
}
if (t === 'sync-guild-mesh-quad-roster') {
if (platform.mode === 'guild' && platform.guild?.guild?.id) {
const gid = platform.guild.guild.id
const peerN = platform.guild?.peers?.size ?? 0
platform.emit('guild-mesh-topology', {
guildId: gid,
meshPeerCount: peerN,
manualRecovery: true,
quadMesh: true
})
platform.emit('member')
platform.emit('guild-sync-ready', { guildId: gid, quadRoster: 1, members: 1 })
if (typeof platform.requestGuildSyncFanout === 'function') {
platform.requestGuildSyncFanout()
}
}
pushState({
structural: true,
light: false,
source: 'sync-guild-mesh-quad-roster'
})
return true
}
if (t === 'sync-guild-mesh-quad-presence') {
if (platform.mode === 'guild' && platform.guild?.guild?.id) {
const gid = platform.guild.guild.id