feat(ui-flow): sync-guild-mesh-triple-reactions recovery IPC (Phase 806)

Triple topology refresh for reaction gossip and guild-sync-ready reactions.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-06-03 22:55:33 -04:00
co-authored by Cursor
parent 3f695ae5b2
commit 5918a4258f
2 changed files with 19 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 806 (v0.8.773):** `sync-guild-mesh-triple-reactions` recovery IPC. Bundle: `npm run test:ci-phase806`.
**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`.
+17
View File
@@ -796,6 +796,23 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
pushState({ structural: true, light: false, source: 'sync-guild-reactions' })
return true
}
if (t === 'sync-guild-mesh-triple-reactions') {
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('reaction', { guildId: gid, manualRecovery: true })
platform.emit('guild-sync-ready', { guildId: gid, reactions: 1 })
if (typeof platform.requestGuildSyncFanout === 'function') {
platform.requestGuildSyncFanout()
}
}
pushState({ structural: true, light: false, source: 'sync-guild-mesh-triple-reactions' })
return true
}
if (t === 'sync-guild-emojis') {
if (platform.mode === 'guild' && platform.guild?.guild?.id) {
platform.emit('guild-emoji', {