fix(config): add missing params field to agents.list[] validation schema

The AgentConfig TypeScript type already declares params as
Record<string, unknown>, 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
This commit is contained in:
atian8179 2026-03-09 23:14:16 +08:00 committed by Altay
parent f9ea879729
commit d483915f7e
No known key found for this signature in database
1 changed files with 1 additions and 0 deletions

View File

@ -757,6 +757,7 @@ export const AgentEntrySchema = z
.strict()
.optional(),
sandbox: AgentSandboxSchema,
params: z.record(z.string(), z.unknown()).optional(),
tools: AgentToolsSchema,
runtime: AgentRuntimeSchema,
})