@devries-cameron20 / composio Mirror · read-only / commits / 623aee4ce
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 21, 16:00 UTC

Revert "refactor(cli): simplify search retry flow"

This reverts commit c180103835b6ecf3463053b09bc172af85c8d222.

shams haroon committed Aug 20, 2026 at 15:46 UTC 623aee4ce93e629c4e80f1260e0b67e36e767ba5
1 file changed +10 -8
ts/packages/cli/src/commands/tools/commands/tools.search.cmd.ts
+10 -8
@@ -447,14 +447,16 @@ const runToolsSearch = (params: {
447 });
448
449 const runSearchRequestWithSpinner = (forceRefresh = false) =>
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);
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 + });
460
461 const firstSearchResult = yield* runSearchRequestWithSpinner();
462 const customToolkitFilters = (toolkitList ?? []).filter(isRemoteCustomToolSlug);