Phase 819: sync-guild-mesh-triple-sync-pending IPC (v0.8.786).
Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
|
||||
Pearcord desktop UI IPC dispatch and automated flow scenarios for Bare smokes. Mirrors `apps/pearcord` pear-pipe message handling.
|
||||
|
||||
**Phase 819 (v0.8.786):** `sync-guild-mesh-triple-sync-pending` recovery IPC. Bundle: `npm run test:ci-phase819`.
|
||||
|
||||
**Phase 818 (v0.8.785):** `sync-guild-mesh-triple-sync-health` recovery IPC. Bundle: `npm run test:ci-phase818`.
|
||||
|
||||
**Phase 817 (v0.8.784):** `sync-guild-mesh-triple-offline-recovery` recovery IPC. Bundle: `npm run test:ci-phase817`.
|
||||
|
||||
@@ -1153,6 +1153,32 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
|
||||
pushState({ structural: true, light: false, source: 'sync-guild-mesh-reconnect' })
|
||||
return true
|
||||
}
|
||||
if (t === 'sync-guild-mesh-triple-sync-pending') {
|
||||
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)
|
||||
}
|
||||
if (typeof platform._flushGuildGossipOutbox === 'function') {
|
||||
await platform._flushGuildGossipOutbox({ reason: 'ui-triple-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, syncPending: 1 })
|
||||
if (typeof platform.requestGuildSyncFanout === 'function') {
|
||||
platform.requestGuildSyncFanout()
|
||||
}
|
||||
}
|
||||
pushState({ structural: true, light: false, source: 'sync-guild-mesh-triple-sync-pending' })
|
||||
return true
|
||||
}
|
||||
if (t === 'sync-guild-mesh-triple-sync-health') {
|
||||
if (platform.mode === 'guild' && platform.guild?.guild?.id) {
|
||||
const gid = platform.guild.guild.id
|
||||
|
||||
Reference in New Issue
Block a user