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, 22:15 UTC
fix(cli): use Effect.logDebug in tool-router-session service
`tool-router-session-connections.ts` is a service-layer module — peer services (`composio-clients.ts`, `project-context.ts`, `env-lang-detector.ts`, `js-package-manager-detector.ts`) all route diagnostic signal through `Effect.logDebug`, while user-facing warnings are emitted via `ui.log.warn` from command layers. The previous `Effect.logWarning` was a CLI outlier; align with the service-layer convention. Addresses pattern-recognition review of PR #3344 (P2#1).
jkomyno committed
May 7, 2026 at 10:46 UTC
9d524c4ae769067c2c5cf5b7961afa041fc2550f
1 file changed
+4
-1
ts/packages/cli/src/services/tool-router-session-connections.ts
+4
-1
@@ -127,7 +127,10 @@ export const resolveToolRouterSessionConnections = (
127
});
128
129
if (unknownStatuses.size > 0) {
130
- yield* Effect.logWarning(
130
+ // Service-layer code: peers use `Effect.logDebug` for diagnostic
131
+ // signal. The user-facing `ui.log.warn` channel runs from command
132
+ // layers (e.g. `connected-accounts.list.cmd.ts`).
133
+ yield* Effect.logDebug(
134
`[ToolRouterSession] received unrecognized connected_account.status ` +
135
`value(s): ${[...unknownStatuses].join(', ')}. Treating as 'UNKNOWN' ` +
136
`(not selectable). Run "composio upgrade" to pick up the latest schema.`