@devries-cameron20 / composio-1 / commits / 692dec45e
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.

fix(cli): preserve explicit setup PATH errors

Kshitij Jhunjhunwala committed Jul 14, 2026 at 15:55 UTC 692dec45e76765071230a4aca2ee1bcc65a5d71e
2 files changed +12
ts/packages/cli/src/commands/setup.cmd.ts
+7
@@ -71,6 +71,13 @@ const setupBaseCmd = Command.make(
71 );
72 }
73 if (detected.length === 0) {
74 + if (target === 'claude' || target === 'codex') {
75 + return yield* Effect.fail(
76 + new Error(
77 + `${target} is not installed or not available on PATH. Install it and rerun \`composio setup${uninstall ? ' --uninstall' : ''} --target ${target}\`.`
78 + )
79 + );
80 + }
81 if (!ifPresent || target !== 'auto') {
82 return yield* Effect.fail(
83 new Error(
ts/packages/cli/test/src/commands/setup.cmd.test.ts
+5
@@ -669,6 +669,11 @@ describe('CLI: composio setup', () => {
669 cli(['setup', '--target', 'claude', '--yes', '--if-present'])
670 );
671 expect(Exit.isFailure(exit)).toBe(true);
672 + if (Exit.isFailure(exit)) {
673 + expect(Cause.pretty(exit.cause)).toContain(
674 + 'claude is not installed or not available on PATH'
675 + );
676 + }
677 })
678 );
679 });