From 10003a6490ab1db1a3d4bff627af37b015afdb94 Mon Sep 17 00:00:00 2001 From: joshualitt Date: Tue, 18 Nov 2025 14:58:12 -0800 Subject: [PATCH] fix(core): Ensure `read_many_files` tool is available to zed. (#13338) --- packages/cli/src/zed-integration/zedIntegration.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/cli/src/zed-integration/zedIntegration.ts b/packages/cli/src/zed-integration/zedIntegration.ts index 50a20a3a05..7769ce2780 100644 --- a/packages/cli/src/zed-integration/zedIntegration.ts +++ b/packages/cli/src/zed-integration/zedIntegration.ts @@ -31,6 +31,7 @@ import { DEFAULT_GEMINI_MODEL_AUTO, DEFAULT_GEMINI_FLASH_MODEL, debugLogger, + ReadManyFilesTool, } from '@google/gemini-cli-core'; import * as acp from './acp.js'; import { AcpFileSystemService } from './fileSystemService.js'; @@ -570,7 +571,7 @@ class Session { const ignoredPaths: string[] = []; const toolRegistry = this.config.getToolRegistry(); - const readManyFilesTool = toolRegistry.getTool('read_many_files'); + const readManyFilesTool = new ReadManyFilesTool(this.config); const globTool = toolRegistry.getTool('glob'); if (!readManyFilesTool) { @@ -734,7 +735,7 @@ class Session { if (pathSpecsToRead.length > 0) { const toolArgs = { - paths: pathSpecsToRead, + include: pathSpecsToRead, }; const callId = `${readManyFilesTool.name}-${Date.now()}`;