feat(ui-flow): composer focus after select-guild IPC

Phase 597 parity — autofocus message composer when switching guilds
and a text channel is selected, matching join-invite behavior.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-05-24 17:18:13 -04:00
co-authored by Cursor
parent 780f873aa7
commit 43d554d7c4
2 changed files with 8 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.
**v0.8.560 (Phase 597):** `select-guild` emits `composer-focus-channel` in guild mode when `activeChannelId` is set (matching join-invite guild switch behavior). Bundle: `npm run test:phase597-session` (app repo).
**v0.8.559 (Phase 596):** `create-guild` emits `composer-focus-channel` in guild mode when `activeChannelId` is set (matching existing `join-invite` behavior). Bundle: `npm run test:phase596-onboarding` (app repo). **v0.8.559 (Phase 596):** `create-guild` emits `composer-focus-channel` in guild mode when `activeChannelId` is set (matching existing `join-invite` behavior). Bundle: `npm run test:phase596-onboarding` (app repo).
**v0.8.550 (Phase 587):** `pin-message` and `unpin-message` emit `composer-focus-channel` in guild mode when `activeChannelId` is set. Bundle: `npm run test:phase587-pins` (app repo). **v0.8.550 (Phase 587):** `pin-message` and `unpin-message` emit `composer-focus-channel` in guild mode when `activeChannelId` is set. Bundle: `npm run test:phase587-pins` (app repo).
+6
View File
@@ -599,6 +599,12 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
}) })
} }
pushState() pushState()
if (platform.activeChannelId && platform.mode === 'guild') {
send({
type: 'composer-focus-channel',
channelId: platform.activeChannelId
})
}
return true return true
} }
if (t === 'join-stage') { if (t === 'join-stage') {