@devries-cameron20 / composio Mirror · read-only / commits / 606d6d3a3
Fork 0

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 22, 04:30 UTC

fix(cli): exit with non-zero code on unhandled errors

The global error handler in bin.ts caught errors for pretty-printing but then succeeded, causing the teardown function to exit with code 0. Scripts piping CLI output could not detect failures via exit code.

jkomyno committed Mar 9, 2026 at 14:07 UTC 606d6d3a3dc0b2927c472404cda4e56c8896106c
1 file changed +1
ts/packages/cli/src/bin.ts
+1
@@ -219,6 +219,7 @@ runWithArgs.pipe(
219 );
220
221 yield* Console.error(message);
222 + process.exitCode = 1;
223 }
224 })
225 ),