From 3226493e6daab22a07e0e1612f8898960333dfbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Guti=C3=A9rrez?= <35082514+alezmad@users.noreply.github.com> Date: Thu, 9 Apr 2026 01:15:09 +0100 Subject: [PATCH] fix(cli): catch unhandled rejection in background wirePushHandlers Co-Authored-By: Claude Opus 4.6 (1M context) --- apps/cli/src/mcp/server.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/cli/src/mcp/server.ts b/apps/cli/src/mcp/server.ts index 871d2f1..bb2f2d0 100644 --- a/apps/cli/src/mcp/server.ts +++ b/apps/cli/src/mcp/server.ts @@ -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() {