diff --git a/src/config/web-search-codex-config.test.ts b/src/config/web-search-codex-config.test.ts index d6fc717c8ec..c11bffd35f9 100644 --- a/src/config/web-search-codex-config.test.ts +++ b/src/config/web-search-codex-config.test.ts @@ -1,10 +1,11 @@ import { describe, expect, it } from "vitest"; import { validateConfigObjectRaw } from "./validation.js"; -import { OpenClawSchema } from "./zod-schema.js"; describe("web search Codex native config validation", () => { - it("accepts tools.web.search.openaiCodex", () => { - const result = OpenClawSchema.safeParse({ + it("accepts tools.web.search.openaiCodex", async () => { + const { OpenClawSchema: freshOpenClawSchema } = + await import("./zod-schema.js?scope=web-search-codex"); + const result = freshOpenClawSchema.safeParse({ tools: { web: { search: {