feat(ui-flow): sync-guild-mesh-triple-topic recovery IPC (Phase 798)
Emits guild-mesh-topology and channelTopic guild-sync-ready for triple mesh UI. 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 798 (v0.8.765):** `sync-guild-mesh-triple-topic` → topology + channelTopic recovery. Bundle: `npm run test:ci-phase798`.
|
||||||
|
|
||||||
**Phase 797 (v0.8.764):** `sync-guild-channel-topic` → topic guild-sync-ready + structural push. Bundle: `npm run test:ci-phase797`.
|
**Phase 797 (v0.8.764):** `sync-guild-channel-topic` → topic guild-sync-ready + structural push. Bundle: `npm run test:ci-phase797`.
|
||||||
|
|
||||||
**Phase 796 (v0.8.763):** `sync-guild-partition-heal` → force heal + structural push. Bundle: `npm run test:ci-phase796`.
|
**Phase 796 (v0.8.763):** `sync-guild-partition-heal` → force heal + structural push. Bundle: `npm run test:ci-phase796`.
|
||||||
|
|||||||
@@ -888,6 +888,22 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
|
|||||||
pushState({ structural: true, light: false, source: 'sync-guild-mesh-triple' })
|
pushState({ structural: true, light: false, source: 'sync-guild-mesh-triple' })
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
if (t === 'sync-guild-mesh-triple-topic') {
|
||||||
|
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('guild-sync-ready', { guildId: gid, channelTopic: 1 })
|
||||||
|
if (typeof platform.requestGuildSyncFanout === 'function') {
|
||||||
|
platform.requestGuildSyncFanout()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
pushState({ structural: true, light: false, source: 'sync-guild-mesh-triple-topic' })
|
||||||
|
return true
|
||||||
|
}
|
||||||
if (t === 'sync-guild-partition-heal') {
|
if (t === 'sync-guild-partition-heal') {
|
||||||
if (platform.mode === 'guild' && platform.guild?.guild?.id) {
|
if (platform.mode === 'guild' && platform.guild?.guild?.id) {
|
||||||
void platform
|
void platform
|
||||||
|
|||||||
Reference in New Issue
Block a user