feat(ui-flow): sync-guild-mesh-triple-pins recovery IPC (Phase 805)

Triple topology refresh for pin gossip and guild-sync-ready pins.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-06-03 22:52:50 -04:00
co-authored by Cursor
parent 80940f0eb0
commit 3f695ae5b2
2 changed files with 23 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 805 (v0.8.772):** `sync-guild-mesh-triple-pins` recovery IPC. Bundle: `npm run test:ci-phase805`.
**Phase 804 (v0.8.771):** `sync-guild-mesh-triple-sounds` recovery IPC. Bundle: `npm run test:ci-phase804`.
**Phase 803 (v0.8.770):** `sync-guild-mesh-triple-stickers` recovery IPC. Bundle: `npm run test:ci-phase803`.
+21
View File
@@ -870,6 +870,27 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
pushState({ structural: true, light: false, source: 'sync-guild-pins' })
return true
}
if (t === 'sync-guild-mesh-triple-pins') {
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('pin', {
guildId: gid,
channelId: platform.activeChannelId,
manualRecovery: true
})
platform.emit('guild-sync-ready', { guildId: gid, pins: 1 })
if (typeof platform.requestGuildSyncFanout === 'function') {
platform.requestGuildSyncFanout()
}
}
pushState({ structural: true, light: false, source: 'sync-guild-mesh-triple-pins' })
return true
}
if (t === 'sync-guild-sounds') {
if (platform.mode === 'guild' && platform.guild?.guild?.id) {
platform.emit('guild-sound', {