@devries-cameron20 / composio Mirror · read-only / commits / ebea12d96
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): add debug logging to silent catchAll handlers in install command

Replace silent error swallowing with Effect.logDebug in the rc file read and directory creation error handlers, matching the pattern used elsewhere in the codebase (e.g., toolkits.list.cmd.ts session fetch error handler).

jkomyno committed Mar 9, 2026 at 16:03 UTC ebea12d967e0e838af1c6bbed7266dc3f245374d
1 file changed +10 -2
ts/packages/cli/src/commands/install.cmd.ts
+10 -2
@@ -142,7 +142,11 @@ export const installShellIntegration = (params: {
142 const rcPath = config.rcFile;
143 const existing = yield* fs
144 .readFileString(rcPath)
145 - .pipe(Effect.catchAll(() => Effect.succeed('')));
145 + .pipe(
146 + Effect.catchAll(e =>
147 + Effect.logDebug('RC file does not exist yet, will create:', e).pipe(Effect.as(''))
148 + )
149 + );
150
151 // Build blocks to append (idempotently)
152 const blocks: string[] = [];
@@ -169,7 +173,11 @@ export const installShellIntegration = (params: {
173 // Ensure parent directory exists (for fish config)
174 yield* fs
175 .makeDirectory(path.dirname(rcPath), { recursive: true })
172 - .pipe(Effect.catchAll(() => Effect.void));
176 + .pipe(
177 + Effect.catchAll(e =>
178 + Effect.logDebug('Could not create parent directory (may already exist):', e)
179 + )
180 + );
181
182 const appendContent = '\n' + blocks.join('\n\n') + '\n';
183 yield* fs.writeFileString(rcPath, existing + appendContent);