feat(ipc): Phase 835 sync-guild-mesh-quad-typing

Emit typing and guild-sync-ready with quadTyping after quad mesh
typing indicator fanout recovery.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-06-04 04:25:27 -04:00
co-authored by Cursor
parent febe7c4660
commit 7e3e1d42f8
2 changed files with 24 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 835 (v0.8.802):** `sync-guild-mesh-quad-typing` recovery IPC. Bundle: `npm run test:ci-phase835`.
**Phase 834 (v0.8.801):** `sync-guild-mesh-quad-voice` recovery IPC. Bundle: `npm run test:ci-phase834`.
**Phase 833 (v0.8.800):** `sync-guild-mesh-quad-unread` recovery IPC. Bundle: `npm run test:ci-phase833`.
+22
View File
@@ -1450,6 +1450,28 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
})
return true
}
if (t === 'sync-guild-mesh-quad-typing') {
if (platform.mode === 'guild' && platform.guild?.guild?.id && platform.activeChannelId) {
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('typing')
platform.emit('guild-sync-ready', { guildId: gid, quadTyping: 1 })
if (typeof platform.requestGuildSyncFanout === 'function') {
platform.requestGuildSyncFanout()
}
}
pushState({
light: false,
source: 'sync-guild-mesh-quad-typing'
})
return true
}
if (t === 'sync-guild-mesh-quad-voice') {
if (platform.mode === 'guild' && platform.guild?.guild?.id) {
const gid = platform.guild.guild.id