Phase 850: sync-guild-mesh-quad-partition-heal IPC
Wire quad partition heal recovery IPC with topology emit, forced heal, presence refresh, and guild-sync-ready partitionHeal flag. 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 850 (v0.8.817):** `sync-guild-mesh-quad-partition-heal` recovery IPC. Bundle: `npm run test:ci-phase850`.
|
||||
|
||||
**Phase 849 (v0.8.816):** `sync-guild-mesh-quad-expression-soak` composite IPC. Bundle: `npm run test:ci-phase849`.
|
||||
|
||||
**Phase 848 (v0.8.815):** `sync-guild-mesh-quad-channel-lifecycle` channel IPC. Bundle: `npm run test:ci-phase848`.
|
||||
|
||||
@@ -1450,6 +1450,35 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
|
||||
})
|
||||
return true
|
||||
}
|
||||
if (t === 'sync-guild-mesh-quad-partition-heal') {
|
||||
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
|
||||
})
|
||||
void platform
|
||||
.runPartitionHealSync({
|
||||
force: true,
|
||||
source: 'sync-guild-mesh-quad-partition-heal'
|
||||
})
|
||||
.catch(() => null)
|
||||
platform.emit('presence')
|
||||
platform.emit('guild-sync-ready', { guildId: gid, presence: 1, partitionHeal: 1 })
|
||||
if (typeof platform.requestGuildSyncFanout === 'function') {
|
||||
platform.requestGuildSyncFanout()
|
||||
}
|
||||
}
|
||||
pushState({
|
||||
structural: true,
|
||||
light: false,
|
||||
source: 'sync-guild-mesh-quad-partition-heal'
|
||||
})
|
||||
return true
|
||||
}
|
||||
if (t === 'sync-guild-mesh-quad-expression-soak') {
|
||||
if (platform.mode === 'guild' && platform.guild?.guild?.id) {
|
||||
const gid = platform.guild.guild.id
|
||||
|
||||
Reference in New Issue
Block a user