Phase 829: sync-guild-mesh-quad-churn-rejoin IPC (v0.8.796)
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 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`.
|
||||
|
||||
**Phase 827 (v0.8.794):** `sync-guild-mesh-quad` mesh IPC. Bundle: `npm run test:ci-phase827`.
|
||||
|
||||
@@ -1450,6 +1450,45 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
|
||||
})
|
||||
return true
|
||||
}
|
||||
if (t === 'sync-guild-mesh-quad-churn-rejoin') {
|
||||
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,
|
||||
churnRejoin: 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,
|
||||
churnRejoin: true
|
||||
})
|
||||
platform.emit('guild-sync-ready', { guildId: gid, quadChurnRejoin: 1 })
|
||||
}
|
||||
pushState({
|
||||
structural: true,
|
||||
light: false,
|
||||
source: 'sync-guild-mesh-quad-churn-rejoin'
|
||||
})
|
||||
return true
|
||||
}
|
||||
if (t === 'sync-guild-mesh-triple-churn-rejoin') {
|
||||
if (platform.mode === 'guild' && platform.guild?.guild?.id) {
|
||||
const gid = platform.guild.guild.id
|
||||
|
||||
Reference in New Issue
Block a user