Phase 840: sync-guild-mesh-quad-sync-pending recovery IPC (v0.8.807)

Flush gossip outbox and emit guild-sync-ready quadSyncPending markers after
quad mesh sync pending fanout for UI chrome refresh coordination.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-06-04 04:54:39 -04:00
co-authored by Cursor
parent 43aa7d779c
commit c339ba5a43
2 changed files with 34 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 840 (v0.8.807):** `sync-guild-mesh-quad-sync-pending` recovery IPC. Bundle: `npm run test:ci-phase840`.
**Phase 839 (v0.8.806):** `sync-guild-mesh-quad-roster-complete` recovery IPC. Bundle: `npm run test:ci-phase839`.
**Phase 838 (v0.8.805):** `sync-guild-mesh-quad-pins` recovery IPC. Bundle: `npm run test:ci-phase838`.
+32
View File
@@ -1450,6 +1450,38 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
})
return true
}
if (t === 'sync-guild-mesh-quad-sync-pending') {
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._flushGuildGossipOutbox === 'function') {
await platform._flushGuildGossipOutbox({ reason: 'ui-quad-sync-pending' }).catch(() => null)
}
if (typeof platform._refreshGuildSyncHealthCounts === 'function') {
await platform._refreshGuildSyncHealthCounts(gid).catch(() => null)
}
platform.emit('guild-sync-health')
platform.emit('guild-sync-ready', { guildId: gid, quadSyncPending: 1, syncPending: 1 })
if (typeof platform.requestGuildSyncFanout === 'function') {
platform.requestGuildSyncFanout()
}
}
pushState({
structural: true,
light: false,
source: 'sync-guild-mesh-quad-sync-pending'
})
return true
}
if (t === 'sync-guild-mesh-quad-roster-complete') {
if (platform.mode === 'guild' && platform.guild?.guild?.id) {
const gid = platform.guild.guild.id