feat(ipc): Phase 830 sync-guild-mesh-quad-recovery-burst

Emit guild-sync-ready with quadRecoveryBurst after full quad mesh
reconnect and recovery burst chrome refresh path.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-06-04 03:55:22 -04:00
co-authored by Cursor
parent 4273516530
commit 5ee78ec1c7
2 changed files with 39 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 830 (v0.8.797):** `sync-guild-mesh-quad-recovery-burst` recovery IPC. Bundle: `npm run test:ci-phase830`.
**Phase 829 (v0.8.796):** `sync-guild-mesh-quad-churn-rejoin` recovery IPC. Bundle: `npm run test:ci-phase829`.
**Phase 828 (v0.8.795):** `sync-guild-mesh-quad-sync-burst` recovery IPC. Bundle: `npm run test:ci-phase828`.
+37
View File
@@ -1450,6 +1450,43 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
})
return true
}
if (t === 'sync-guild-mesh-quad-recovery-burst') {
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
})
if (typeof platform.clearGuildSyncPushHalt === 'function') {
platform.clearGuildSyncPushHalt(gid)
}
if (typeof platform.runOfflineRecoverySync === 'function') {
await platform.runOfflineRecoverySync().catch(() => null)
}
if (typeof platform.requestGuildSyncBurst === 'function') {
platform.requestGuildSyncBurst({ clearPushHalt: true })
} else if (typeof platform.requestGuildSyncFanout === 'function') {
platform.requestGuildSyncFanout()
}
platform.emit('guild-sync-health')
platform.emit('guild-mesh-reconnected', {
guildId: gid,
meshPeerCount: peerN,
peerId: null,
manualRecovery: true
})
platform.emit('guild-sync-ready', { guildId: gid, quadRecoveryBurst: 1 })
}
pushState({
structural: true,
light: false,
source: 'sync-guild-mesh-quad-recovery-burst'
})
return true
}
if (t === 'sync-guild-mesh-quad-churn-rejoin') {
if (platform.mode === 'guild' && platform.guild?.guild?.id) {
const gid = platform.guild.guild.id