fix(cli): catch unhandled rejection in background wirePushHandlers
Some checks failed
CI / Lint (push) Has been cancelled
CI / Typecheck (push) Has been cancelled
CI / Broker tests (Postgres) (push) Has been cancelled
CI / Docker build (linux/amd64) (push) Has been cancelled

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Alejandro Gutiérrez
2026-04-09 01:15:09 +01:00
parent 4cb5a97512
commit 3226493e6d

View File

@@ -1741,10 +1741,10 @@ Your message mode is "${messageMode}".
// Connect to broker WS in background — don't block MCP startup.
startClients(config).then(() => {
wirePushHandlers();
wirePushHandlers().catch(() => {});
}).catch(() => {
// Connect failed — clients are in reconnecting state, push wiring still needed
wirePushHandlers();
wirePushHandlers().catch(() => {});
});
async function wirePushHandlers() {