Phase 814: add sync-guild-mesh-triple-messages recovery IPC.

Triple mesh recovery clears push halt and emits sync-health, message, and guild-sync-ready for delta fanout.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-06-03 23:27:15 -04:00
co-authored by Cursor
parent a16db18da0
commit ec730e21d9
2 changed files with 23 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 814 (v0.8.781):** `sync-guild-mesh-triple-messages` recovery IPC. Bundle: `npm run test:ci-phase814`.
**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`.
+21
View File
@@ -1186,6 +1186,27 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
pushState({ structural: true, light: false })
return true
}
if (t === 'sync-guild-mesh-triple-messages') {
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
})
if (typeof platform.clearGuildSyncPushHalt === 'function') {
platform.clearGuildSyncPushHalt(gid)
}
platform.emit('guild-sync-health')
platform.emit('message')
platform.emit('guild-sync-ready', { guildId: gid, messages: 1 })
if (typeof platform.requestGuildSyncFanout === 'function') {
platform.requestGuildSyncFanout()
}
}
pushState({ structural: true, light: false, source: 'sync-guild-mesh-triple-messages' })
return true
}
if (t === 'sync-guild-mesh-triple-roster') {
if (platform.mode === 'guild' && platform.guild?.guild?.id) {
const gid = platform.guild.guild.id