Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
Mirrored from https://github.com/Camo67/composio.git
Synced Nov 21, 12:15 UTC
fix(core): contain rejected promises from async onSubscriptionError handlers
The containment around the subscription error callback only caught synchronous throws. TypeScript accepts an async function against a void-returning callback type, so a rejected promise escaped as an unhandled rejection after subscribe() resolved - on modern Node that can terminate the process, the same failure class this PR contains. Route the callback result through Promise.resolve(...).catch so both sync throws and async rejections land in the same contained logger path, and add a regression test for the async case. Addresses greptile-apps P1 and Cursor Bugbot review comments.