From 56f01bc4930bafa924c1757f696ad95892a162fc Mon Sep 17 00:00:00 2001 From: echoVic Date: Sun, 22 Feb 2026 18:12:04 +0800 Subject: [PATCH] fix(config): add missing comment field to BindingsSchema Strict validation (added in d1e9490f9) rejects the legitimate 'comment' field on bindings. This field is used for annotations in config files. Changes: - BindingsSchema: added comment: z.string().optional() - AgentBinding type: added comment?: string Fixes #23385 --- src/config/types.agents.ts | 1 + src/config/zod-schema.agents.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/src/config/types.agents.ts b/src/config/types.agents.ts index 2816d33a726..478e14e526b 100644 --- a/src/config/types.agents.ts +++ b/src/config/types.agents.ts @@ -72,6 +72,7 @@ export type AgentsConfig = { export type AgentBinding = { agentId: string; + comment?: string; match: { channel: string; accountId?: string; diff --git a/src/config/zod-schema.agents.ts b/src/config/zod-schema.agents.ts index 704d1752ca5..c7c921a5e5a 100644 --- a/src/config/zod-schema.agents.ts +++ b/src/config/zod-schema.agents.ts @@ -16,6 +16,7 @@ export const BindingsSchema = z z .object({ agentId: z.string(), + comment: z.string().optional(), match: z .object({ channel: z.string(),