Phase 821: sync-guild-mesh-triple-ack-watermark IPC (v0.8.788).
Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -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`.
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user