From d483915f7e6becc203c0b33d013bb9861b404750 Mon Sep 17 00:00:00 2001 From: atian8179 Date: Mon, 9 Mar 2026 23:14:16 +0800 Subject: [PATCH] fix(config): add missing params field to agents.list[] validation schema The AgentConfig TypeScript type already declares params as Record, but the Zod validation schema in AgentEntrySchema omits it. Because the schema uses .strict(), any agents.list[] entry containing params (e.g. cacheRetention, temperature, maxTokens) is rejected by `openclaw config validate`. Add the params field to AgentEntrySchema to match the type definition. Fixes #41160 --- src/config/zod-schema.agent-runtime.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/config/zod-schema.agent-runtime.ts b/src/config/zod-schema.agent-runtime.ts index 28c7cfaabed..680b79cdc16 100644 --- a/src/config/zod-schema.agent-runtime.ts +++ b/src/config/zod-schema.agent-runtime.ts @@ -757,6 +757,7 @@ export const AgentEntrySchema = z .strict() .optional(), sandbox: AgentSandboxSchema, + params: z.record(z.string(), z.unknown()).optional(), tools: AgentToolsSchema, runtime: AgentRuntimeSchema, })