feat(ui-flow): sync-guild-mesh-triple-topic recovery IPC (Phase 798)

Emits guild-mesh-topology and channelTopic guild-sync-ready for triple mesh UI.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-06-03 22:35:35 -04:00
co-authored by Cursor
parent 9f4d27bdb7
commit f3d99fe795
2 changed files with 18 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 798 (v0.8.765):** `sync-guild-mesh-triple-topic` → topology + channelTopic recovery. Bundle: `npm run test:ci-phase798`.
**Phase 797 (v0.8.764):** `sync-guild-channel-topic` → topic guild-sync-ready + structural push. Bundle: `npm run test:ci-phase797`.
**Phase 796 (v0.8.763):** `sync-guild-partition-heal` → force heal + structural push. Bundle: `npm run test:ci-phase796`.
+16
View File
@@ -888,6 +888,22 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
pushState({ structural: true, light: false, source: 'sync-guild-mesh-triple' })
return true
}
if (t === 'sync-guild-mesh-triple-topic') {
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
})
platform.emit('guild-sync-ready', { guildId: gid, channelTopic: 1 })
if (typeof platform.requestGuildSyncFanout === 'function') {
platform.requestGuildSyncFanout()
}
}
pushState({ structural: true, light: false, source: 'sync-guild-mesh-triple-topic' })
return true
}
if (t === 'sync-guild-partition-heal') {
if (platform.mode === 'guild' && platform.guild?.guild?.id) {
void platform