Add worker-modal-open IPC for composer blur after worker modal (Phase 687).

Mirror automation-modal-open pattern with pushState and worker-modal-opened
reply so the renderer restores composer focus after closing worker settings.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-06-03 00:41:53 -04:00
co-authored by Cursor
parent e8bd59d0c3
commit 3ba3608ed6
2 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
Pearcord desktop UI IPC dispatch and automated flow scenarios for Bare smokes. Mirrors `apps/pearcord` pear-pipe message handling.
**Phase 686 (v0.8.661):** `automation-modal-open``automation-modal-opened`; composer focus after automation modal. Bundle: `npm run test:ci-phase686`.
**Phase 687 (v0.8.662):** `worker-modal-open``worker-modal-opened`; composer focus after worker modal. Bundle: `npm run test:ci-phase687`.
**Phase 685 (v0.8.660):** `webhook-modal-open``webhook-modal-opened`; composer focus after webhook modal. Bundle: `npm run test:ci-phase685`.
+5
View File
@@ -2404,6 +2404,11 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
send({ type: 'automation-modal-opened' })
return true
}
if (t === 'worker-modal-open') {
pushState()
send({ type: 'worker-modal-opened' })
return true
}
if (t === 'uninstall-bot') {
await platform.uninstallBot(msg.botId)
pushState()