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

refactor(cli): simplify search retry flow

shams haroon committed Aug 20, 2026 at 14:39 UTC c180103835b6ecf3463053b09bc172af85c8d222
1 file changed +8 -10
ts/packages/cli/src/commands/tools/commands/tools.search.cmd.ts
+8 -10
@@ -447,16 +447,14 @@ const runToolsSearch = (params: {
447 });
448
449 const runSearchRequestWithSpinner = (forceRefresh = false) =>
450 - Effect.gen(function* () {
451 - return yield* emitHuman
452 - ? ui.withSpinner(
453 - queries.length === 1
454 - ? `Searching tools for "${queries[0]}"...`
455 - : `Searching tools for ${queries.length} queries...`,
456 - runSearchRequest(forceRefresh)
457 - )
458 - : runSearchRequest(forceRefresh);
459 - });
450 + emitHuman
451 + ? ui.withSpinner(
452 + queries.length === 1
453 + ? `Searching tools for "${queries[0]}"...`
454 + : `Searching tools for ${queries.length} queries...`,
455 + runSearchRequest(forceRefresh)
456 + )
457 + : runSearchRequest(forceRefresh);
458
459 const firstSearchResult = yield* runSearchRequestWithSpinner();
460 const customToolkitFilters = (toolkitList ?? []).filter(isRemoteCustomToolSlug);