Phase 848: sync-guild-mesh-quad-channel-lifecycle IPC

Quad mesh channel lifecycle fanout emits guild-sync-ready for channel list refresh.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-06-04 05:33:14 -04:00
co-authored by Cursor
parent 800d7d1e48
commit ca41b00ed2
2 changed files with 28 additions and 0 deletions
+2
View File
@@ -2,6 +2,8 @@
Pearcord desktop UI IPC dispatch and automated flow scenarios for Bare smokes. Mirrors `apps/pearcord` pear-pipe message handling.
**Phase 848 (v0.8.815):** `sync-guild-mesh-quad-channel-lifecycle` channel IPC. Bundle: `npm run test:ci-phase848`.
**Phase 847 (v0.8.814):** `sync-guild-mesh-quad-sounds` soundboard IPC. Bundle: `npm run test:ci-phase847`.
**Phase 846 (v0.8.813):** `sync-guild-mesh-quad-channel-settings` settings IPC. Bundle: `npm run test:ci-phase846`.
+26
View File
@@ -1450,6 +1450,32 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
})
return true
}
if (t === 'sync-guild-mesh-quad-channel-lifecycle') {
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
})
platform.emit('guild-sync-ready', {
guildId: gid,
quadChannelLifecycle: 1,
channels: 1
})
if (typeof platform.requestGuildSyncFanout === 'function') {
platform.requestGuildSyncFanout()
}
}
pushState({
structural: true,
light: false,
source: 'sync-guild-mesh-quad-channel-lifecycle'
})
return true
}
if (t === 'sync-guild-mesh-quad-sounds') {
if (platform.mode === 'guild' && platform.guild?.guild?.id) {
const gid = platform.guild.guild.id