fix(cli): catch unhandled rejection in background wirePushHandlers
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1741,10 +1741,10 @@ Your message mode is "${messageMode}".
|
|||||||
|
|
||||||
// Connect to broker WS in background — don't block MCP startup.
|
// Connect to broker WS in background — don't block MCP startup.
|
||||||
startClients(config).then(() => {
|
startClients(config).then(() => {
|
||||||
wirePushHandlers();
|
wirePushHandlers().catch(() => {});
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
// Connect failed — clients are in reconnecting state, push wiring still needed
|
// Connect failed — clients are in reconnecting state, push wiring still needed
|
||||||
wirePushHandlers();
|
wirePushHandlers().catch(() => {});
|
||||||
});
|
});
|
||||||
|
|
||||||
async function wirePushHandlers() {
|
async function wirePushHandlers() {
|
||||||
|
|||||||
Reference in New Issue
Block a user