fix(coding-agent): do not enable web_search if explicitly disabled (#593)

Co-authored-by: le-cameleon <200889489+le-cameleon@users.noreply.github.com>
This commit is contained in:
BayLee4
2026-04-01 15:26:08 +02:00
committed by GitHub
parent 4b1d5ebb0b
commit 2d5f802daf
2 changed files with 3 additions and 2 deletions
-1
View File
@@ -1240,7 +1240,6 @@ Use `--tools <list>` to restrict available built-in tools.
| `todo_write` | Phased task tracking with progress management | | `todo_write` | Phased task tracking with progress management |
| `fetch` | Fetch and extract URL content | | `fetch` | Fetch and extract URL content |
| `web_search` | Multi-provider web search | | `web_search` | Multi-provider web search |
| `deep_search` | AI-powered deep research with synthesized results (Exa) |
| `write` | Create/overwrite files | | `write` | Create/overwrite files |
| `generate_image` | Generate or edit images using Gemini image models | | `generate_image` | Generate or edit images using Gemini image models |
+3 -1
View File
@@ -1009,7 +1009,9 @@ export async function createAgentSession(options: CreateAgentSessionOptions = {}
} }
// Add web search tools // Add web search tools
customTools.push(...getSearchTools()); if (options.toolNames?.includes("web_search")) {
customTools.push(...getSearchTools());
}
// Discover and load custom tools from .omp/tools/, .claude/tools/, etc. // Discover and load custom tools from .omp/tools/, .claude/tools/, etc.
const builtInToolNames = builtinTools.map(t => t.name); const builtInToolNames = builtinTools.map(t => t.name);