Phase 854: sync-guild-mesh-quad-resilience-soak IPC
Wire mega-soak IPC with partition heal, offline recovery, expression slices, and guild-sync-ready quadResilienceSoak 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 854 (v0.8.821):** `sync-guild-mesh-quad-resilience-soak` mega-soak IPC. Bundle: `npm run test:ci-phase854`.
|
||||
|
||||
**Phase 853 (v0.8.820):** `sync-guild-mesh-quad-offline-heal` composite recovery IPC. Bundle: `npm run test:ci-phase853`.
|
||||
|
||||
**Phase 852 (v0.8.819):** `sync-guild-mesh-quad-recovery-heal` composite recovery IPC. Bundle: `npm run test:ci-phase852`.
|
||||
|
||||
@@ -1450,6 +1450,58 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
|
||||
})
|
||||
return true
|
||||
}
|
||||
if (t === 'sync-guild-mesh-quad-resilience-soak') {
|
||||
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,
|
||||
resilienceSoak: true
|
||||
})
|
||||
void platform
|
||||
.runPartitionHealSync({
|
||||
force: true,
|
||||
source: 'sync-guild-mesh-quad-resilience-soak'
|
||||
})
|
||||
.catch(() => null)
|
||||
if (typeof platform.runOfflineRecoverySync === 'function') {
|
||||
await platform.runOfflineRecoverySync().catch(() => null)
|
||||
}
|
||||
platform.emit('guild-emoji', { guildId: gid, manualRecovery: true })
|
||||
platform.emit('guild-sticker', { guildId: gid, manualRecovery: true })
|
||||
platform.emit('guild-sound', { guildId: gid, manualRecovery: true })
|
||||
platform.emit('channel-settings', {
|
||||
guildId: gid,
|
||||
channelId: platform.activeChannelId,
|
||||
manualRecovery: true
|
||||
})
|
||||
platform.emit('presence')
|
||||
platform.emit('guild-sync-ready', {
|
||||
guildId: gid,
|
||||
quadResilienceSoak: 1,
|
||||
partitionHeal: 1,
|
||||
emojis: 1,
|
||||
stickers: 1,
|
||||
sounds: 1,
|
||||
channelTopic: 1,
|
||||
channelSettings: 1,
|
||||
messages: 1,
|
||||
presence: 1
|
||||
})
|
||||
if (typeof platform.requestGuildSyncFanout === 'function') {
|
||||
platform.requestGuildSyncFanout()
|
||||
}
|
||||
}
|
||||
pushState({
|
||||
structural: true,
|
||||
light: false,
|
||||
source: 'sync-guild-mesh-quad-resilience-soak'
|
||||
})
|
||||
return true
|
||||
}
|
||||
if (t === 'sync-guild-mesh-quad-offline-heal') {
|
||||
if (platform.mode === 'guild' && platform.guild?.guild?.id) {
|
||||
const gid = platform.guild.guild.id
|
||||
|
||||
Reference in New Issue
Block a user