-
-
Notifications
You must be signed in to change notification settings - Fork 69.4k
[Bug] Discord agentComponents config rejected by strict Zod schema #35564
Copy link
Copy link
Closed
Description
Bug Description
The DiscordAccountSchema in zod-schema.providers-core.ts uses .strict() but is missing the agentComponents field. This field is:
- Defined in the TypeScript type at
types.discord.ts:301asagentComponents?: DiscordAgentComponentsConfig - Actively read at runtime in
discord/monitor/provider.ts:544-545 - Used in tests at
discord/monitor/provider.test.ts:87
Because the schema is .strict(), any user who sets channels.discord.agentComponents.enabled: true in their config YAML will get a validation error, even though the field is valid and used at runtime.
Steps to Reproduce
channels:
discord:
agentComponents:
enabled: trueThis config is rejected by validateConfigObject() with an unrecognized key error.
Expected Behavior
The config should be accepted, since agentComponents is a valid field defined in the TypeScript types and used at runtime.
Root Cause
Type/schema drift: agentComponents was added to the TypeScript types and runtime code but not to the Zod validation schema.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Fields
Give feedbackNo fields configured for issues without a type.