Phase 812: add sync-guild-mesh-triple-presence recovery IPC.

Triple mesh manual recovery emits topology, presence, and guild-sync-ready for fanout after partition or stale member dots.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-06-03 23:16:56 -04:00
co-authored by Cursor
parent ce59b99168
commit ea7c69e295
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 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`.
**Phase 810 (v0.8.777):** `sync-guild-mesh-triple-voice` recovery IPC. Bundle: `npm run test:ci-phase810`.
+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-presence') {
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('presence')
platform.emit('guild-sync-ready', { guildId: gid, presence: 1 })
if (typeof platform.requestGuildSyncFanout === 'function') {
platform.requestGuildSyncFanout()
}
}
pushState({ structural: true, light: false, source: 'sync-guild-mesh-triple-presence' })
return true
}
if (t === 'sync-guild-mesh-triple-unread') {
if (platform.mode === 'guild' && platform.guild?.guild?.id) {
const gid = platform.guild.guild.id