Phase 838: sync-guild-mesh-quad-pins recovery IPC (v0.8.805)

Emit pin and guild-sync-ready quadPins markers after quad mesh pin fanout
for UI chrome refresh coordination.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-06-04 04:42:28 -04:00
co-authored by Cursor
parent bddc4ab9f4
commit 59acbd3a33
2 changed files with 29 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. Pearcord desktop UI IPC dispatch and automated flow scenarios for Bare smokes. Mirrors `apps/pearcord` pear-pipe message handling.
**Phase 838 (v0.8.805):** `sync-guild-mesh-quad-pins` recovery IPC. Bundle: `npm run test:ci-phase838`.
**Phase 837 (v0.8.804):** `sync-guild-mesh-quad-roles` recovery IPC. Bundle: `npm run test:ci-phase837`. **Phase 837 (v0.8.804):** `sync-guild-mesh-quad-roles` recovery IPC. Bundle: `npm run test:ci-phase837`.
**Phase 836 (v0.8.803):** `sync-guild-mesh-quad-reactions` recovery IPC. Bundle: `npm run test:ci-phase836`. **Phase 836 (v0.8.803):** `sync-guild-mesh-quad-reactions` recovery IPC. Bundle: `npm run test:ci-phase836`.
+27
View File
@@ -1450,6 +1450,33 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
}) })
return true return true
} }
if (t === 'sync-guild-mesh-quad-pins') {
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('pin', {
guildId: gid,
channelId: platform.activeChannelId,
manualRecovery: true
})
platform.emit('guild-sync-ready', { guildId: gid, quadPins: 1, pins: 1 })
if (typeof platform.requestGuildSyncFanout === 'function') {
platform.requestGuildSyncFanout()
}
}
pushState({
structural: true,
light: false,
source: 'sync-guild-mesh-quad-pins'
})
return true
}
if (t === 'sync-guild-mesh-quad-roles') { if (t === 'sync-guild-mesh-quad-roles') {
if (platform.mode === 'guild' && platform.guild?.guild?.id) { if (platform.mode === 'guild' && platform.guild?.guild?.id) {
const gid = platform.guild.guild.id const gid = platform.guild.guild.id