fix: restore web tools to coding profile (#43436)

* fix: restore web tools to coding profile

* fix: tighten tool catalog regression assertion
This commit is contained in:
Tak Hoffman
2026-03-11 15:07:17 -05:00
committed by GitHub
parent 128e5bc317
commit 4133edb395
2 changed files with 13 additions and 2 deletions

View File

@@ -0,0 +1,11 @@
import { describe, expect, it } from "vitest";
import { resolveCoreToolProfilePolicy } from "./tool-catalog.js";
describe("tool-catalog", () => {
it("includes web_search and web_fetch in the coding profile policy", () => {
const policy = resolveCoreToolProfilePolicy("coding");
expect(policy).toBeDefined();
expect(policy!.allow).toContain("web_search");
expect(policy!.allow).toContain("web_fetch");
});
});

View File

@@ -86,7 +86,7 @@ const CORE_TOOL_DEFINITIONS: CoreToolDefinition[] = [
label: "web_search", label: "web_search",
description: "Search the web", description: "Search the web",
sectionId: "web", sectionId: "web",
profiles: [], profiles: ["coding"],
includeInOpenClawGroup: true, includeInOpenClawGroup: true,
}, },
{ {
@@ -94,7 +94,7 @@ const CORE_TOOL_DEFINITIONS: CoreToolDefinition[] = [
label: "web_fetch", label: "web_fetch",
description: "Fetch web content", description: "Fetch web content",
sectionId: "web", sectionId: "web",
profiles: [], profiles: ["coding"],
includeInOpenClawGroup: true, includeInOpenClawGroup: true,
}, },
{ {