Phase 816: add sync-guild-mesh-triple-partition-heal recovery IPC.
Triple mesh partition heal recovery emits topology, runs heal, presence sync-ready, and fanout. 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 816 (v0.8.783):** `sync-guild-mesh-triple-partition-heal` recovery IPC. Bundle: `npm run test:ci-phase816`.
|
||||
|
||||
**Phase 815 (v0.8.782):** `sync-guild-mesh-triple-loading` recovery IPC. Bundle: `npm run test:ci-phase815`.
|
||||
|
||||
**Phase 814 (v0.8.781):** `sync-guild-mesh-triple-messages` recovery IPC. Bundle: `npm run test:ci-phase814`.
|
||||
|
||||
@@ -1100,6 +1100,33 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
|
||||
})
|
||||
return true
|
||||
}
|
||||
if (t === 'sync-guild-mesh-triple-partition-heal') {
|
||||
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
|
||||
})
|
||||
void platform
|
||||
.runPartitionHealSync({
|
||||
force: true,
|
||||
source: 'sync-guild-mesh-triple-partition-heal'
|
||||
})
|
||||
.catch(() => null)
|
||||
platform.emit('presence')
|
||||
platform.emit('guild-sync-ready', { guildId: gid, presence: 1 })
|
||||
if (typeof platform.requestGuildSyncFanout === 'function') {
|
||||
platform.requestGuildSyncFanout()
|
||||
}
|
||||
}
|
||||
pushState({
|
||||
structural: true,
|
||||
light: false,
|
||||
source: 'sync-guild-mesh-triple-partition-heal'
|
||||
})
|
||||
return true
|
||||
}
|
||||
if (t === 'sync-guild-partition-heal') {
|
||||
if (platform.mode === 'guild' && platform.guild?.guild?.id) {
|
||||
void platform
|
||||
|
||||
Reference in New Issue
Block a user