feat(ui-flow): composer focus after bot install IPC (Phase 539)

Restore message composer focus in guild mode after create-bot-install-token
and install-bot-token handlers complete.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-05-24 12:40:21 -04:00
co-authored by Cursor
parent 924ef58bb1
commit 440d83d351
+12
View File
@@ -753,6 +753,12 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
}) })
send({ type: 'bot-install-token', token: out.token, bot: out.bot, expiresAt: out.expiresAt }) send({ type: 'bot-install-token', token: out.token, bot: out.bot, expiresAt: out.expiresAt })
pushState() pushState()
if (platform.mode === 'guild' && platform.activeChannelId) {
send({
type: 'composer-focus-channel',
channelId: platform.activeChannelId
})
}
return true return true
} }
if (t === 'install-bot-token') { if (t === 'install-bot-token') {
@@ -763,6 +769,12 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
bot: out?.bot || null bot: out?.bot || null
}) })
pushState() pushState()
if (platform.mode === 'guild' && platform.activeChannelId) {
send({
type: 'composer-focus-channel',
channelId: platform.activeChannelId
})
}
return true return true
} }
if (t === 'send-message') { if (t === 'send-message') {