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, 18:30 UTC
fix(cli): preserve setup timeout failures
jkomyno committed
Jul 14, 2026 at 15:59 UTC
b6e7dc5e409606ed2dfac773b321f43f82d7e578
2 files changed
+7
-2
ts/packages/cli/src/services/setup.ts
+2
-2
@@ -220,11 +220,11 @@ const capture = (executable: string, args: ReadonlyArray<string>) =>
220
Effect.gen(function* () {
221
const runner = yield* CommandRunner;
222
return yield* runner.capture(Command.make(executable, ...args)).pipe(
223
+ Effect.catchAll(() => Effect.succeed<CommandResult | undefined>(undefined)),
224
Effect.timeoutFail({
225
duration: SETUP_COMMAND_TIMEOUT,
226
onTimeout: () => new Error(`${executable} command timed out.`),
226
- }),
227
- Effect.catchAll(() => Effect.succeed<CommandResult | undefined>(undefined))
227
+ })
228
);
229
});
230
ts/packages/cli/test/src/commands/setup.cmd.test.ts
+5
@@ -584,6 +584,11 @@ describe('CLI: composio setup', () => {
584
const exit = yield* Fiber.join(fiber);
585
586
expect(Exit.isFailure(exit)).toBe(true);
587
+ if (Exit.isFailure(exit)) {
588
+ const renderedCause = Cause.pretty(exit.cause);
589
+ expect(renderedCause).toContain('claude command timed out');
590
+ expect(renderedCause).not.toContain('not installed or not available on PATH');
591
+ }
592
})
593
);
594
});