From c5869db0806d04bc0d1f4da6823f9e13d22e476b Mon Sep 17 00:00:00 2001 From: Olcan Date: Mon, 2 Jun 2025 09:56:32 -0700 Subject: enable async tool discovery by making the registry accessor async; remove call to discoverTools that caused duplicate discovery (#691) --- packages/cli/src/ui/hooks/atCommandProcessor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packages/cli/src/ui/hooks/atCommandProcessor.ts') diff --git a/packages/cli/src/ui/hooks/atCommandProcessor.ts b/packages/cli/src/ui/hooks/atCommandProcessor.ts index 54b10d51..ac56ab75 100644 --- a/packages/cli/src/ui/hooks/atCommandProcessor.ts +++ b/packages/cli/src/ui/hooks/atCommandProcessor.ts @@ -138,7 +138,7 @@ export async function handleAtCommand({ const atPathToResolvedSpecMap = new Map(); const contentLabelsForDisplay: string[] = []; - const toolRegistry = config.getToolRegistry(); + const toolRegistry = await config.getToolRegistry(); const readManyFilesTool = toolRegistry.getTool('read_many_files'); const globTool = toolRegistry.getTool('glob'); -- cgit v1.2.3