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:
@@ -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 |
|
||||||
|
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user