summaryrefslogtreecommitdiff
path: root/packages/cli/src/ui/hooks/atCommandProcessor.ts
diff options
context:
space:
mode:
authorOlcan <[email protected]>2025-06-02 09:56:32 -0700
committerGitHub <[email protected]>2025-06-02 09:56:32 -0700
commitc5869db0806d04bc0d1f4da6823f9e13d22e476b (patch)
tree6e5b4c112dd14f948f6deed7b80c2e10589967cc /packages/cli/src/ui/hooks/atCommandProcessor.ts
parent467dec4edf17abcb03784caadc1694aac29d0373 (diff)
enable async tool discovery by making the registry accessor async; remove call to discoverTools that caused duplicate discovery (#691)
Diffstat (limited to 'packages/cli/src/ui/hooks/atCommandProcessor.ts')
-rw-r--r--packages/cli/src/ui/hooks/atCommandProcessor.ts2
1 files changed, 1 insertions, 1 deletions
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<string, string>();
const contentLabelsForDisplay: string[] = [];
- const toolRegistry = config.getToolRegistry();
+ const toolRegistry = await config.getToolRegistry();
const readManyFilesTool = toolRegistry.getTool('read_many_files');
const globTool = toolRegistry.getTool('glob');