Phase 821: sync-guild-mesh-triple-ack-watermark IPC (v0.8.788).

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-06-04 00:13:05 -04:00
co-authored by Cursor
parent bcc17d7a47
commit 008364c146
2 changed files with 26 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 821 (v0.8.788):** `sync-guild-mesh-triple-ack-watermark` recovery IPC. Bundle: `npm run test:ci-phase821`.
**Phase 820 (v0.8.787):** `sync-guild-mesh-triple-roster-complete` recovery IPC. Bundle: `npm run test:ci-phase820`. **Phase 820 (v0.8.787):** `sync-guild-mesh-triple-roster-complete` recovery IPC. Bundle: `npm run test:ci-phase820`.
**Phase 819 (v0.8.786):** `sync-guild-mesh-triple-sync-pending` recovery IPC. Bundle: `npm run test:ci-phase819`. **Phase 819 (v0.8.786):** `sync-guild-mesh-triple-sync-pending` recovery IPC. Bundle: `npm run test:ci-phase819`.
+24
View File
@@ -1342,6 +1342,30 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
pushState({ structural: true, light: false, source: 'sync-guild-mesh-triple-messages' }) pushState({ structural: true, light: false, source: 'sync-guild-mesh-triple-messages' })
return true return true
} }
if (t === 'sync-guild-mesh-triple-ack-watermark') {
if (platform.mode === 'guild' && platform.guild?.guild?.id) {
const gid = platform.guild.guild.id
const chId = platform.activeChannelId || null
platform.emit('guild-mesh-topology', {
guildId: gid,
meshPeerCount: platform.guild?.peers?.size ?? 0,
manualRecovery: true
})
if (typeof platform.clearGuildSyncPushHalt === 'function') {
platform.clearGuildSyncPushHalt(gid)
}
if (typeof platform._fanoutGuildSyncRequestWithAckWatermarks === 'function') {
platform._fanoutGuildSyncRequestWithAckWatermarks(chId)
} else if (typeof platform.requestGuildSyncFanout === 'function') {
platform.requestGuildSyncFanout()
}
platform.emit('guild-sync-health')
platform.emit('message')
platform.emit('guild-sync-ready', { guildId: gid, messages: 1, ackWatermark: 1 })
}
pushState({ structural: true, light: false, source: 'sync-guild-mesh-triple-ack-watermark' })
return true
}
if (t === 'sync-guild-mesh-triple-roster-complete') { if (t === 'sync-guild-mesh-triple-roster-complete') {
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