Skip to content

Commit 4133edb

Browse files
authored
fix: restore web tools to coding profile (openclaw#43436)
* fix: restore web tools to coding profile * fix: tighten tool catalog regression assertion
1 parent 128e5bc commit 4133edb

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

src/agents/tool-catalog.test.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { describe, expect, it } from "vitest";
2+
import { resolveCoreToolProfilePolicy } from "./tool-catalog.js";
3+
4+
describe("tool-catalog", () => {
5+
it("includes web_search and web_fetch in the coding profile policy", () => {
6+
const policy = resolveCoreToolProfilePolicy("coding");
7+
expect(policy).toBeDefined();
8+
expect(policy!.allow).toContain("web_search");
9+
expect(policy!.allow).toContain("web_fetch");
10+
});
11+
});

src/agents/tool-catalog.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,15 +86,15 @@ const CORE_TOOL_DEFINITIONS: CoreToolDefinition[] = [
8686
label: "web_search",
8787
description: "Search the web",
8888
sectionId: "web",
89-
profiles: [],
89+
profiles: ["coding"],
9090
includeInOpenClawGroup: true,
9191
},
9292
{
9393
id: "web_fetch",
9494
label: "web_fetch",
9595
description: "Fetch web content",
9696
sectionId: "web",
97-
profiles: [],
97+
profiles: ["coding"],
9898
includeInOpenClawGroup: true,
9999
},
100100
{

0 commit comments

Comments
 (0)