Phase 813: add sync-guild-mesh-triple-roster recovery IPC.

Triple mesh manual recovery emits topology, member, and guild-sync-ready for roster fanout.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-06-03 23:22:18 -04:00
co-authored by Cursor
parent ea7c69e295
commit a16db18da0
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 813 (v0.8.780):** `sync-guild-mesh-triple-roster` recovery IPC. Bundle: `npm run test:ci-phase813`.
**Phase 812 (v0.8.779):** `sync-guild-mesh-triple-presence` recovery IPC. Bundle: `npm run test:ci-phase812`.
**Phase 811 (v0.8.778):** `sync-guild-mesh-triple-unread` recovery IPC. Bundle: `npm run test:ci-phase811`.
+17
View File
@@ -1186,6 +1186,23 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
pushState({ structural: true, light: false })
return true
}
if (t === 'sync-guild-mesh-triple-roster') {
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('member')
platform.emit('guild-sync-ready', { guildId: gid, members: 1 })
if (typeof platform.requestGuildSyncFanout === 'function') {
platform.requestGuildSyncFanout()
}
}
pushState({ structural: true, light: false, source: 'sync-guild-mesh-triple-roster' })
return true
}
if (t === 'sync-guild-mesh-triple-presence') {
if (platform.mode === 'guild' && platform.guild?.guild?.id) {
const gid = platform.guild.guild.id