Skip to content

[Bug] Discord agentComponents config rejected by strict Zod schema #35564

@ingyukoh

Description

@ingyukoh

Bug Description

The DiscordAccountSchema in zod-schema.providers-core.ts uses .strict() but is missing the agentComponents field. This field is:

  1. Defined in the TypeScript type at types.discord.ts:301 as agentComponents?: DiscordAgentComponentsConfig
  2. Actively read at runtime in discord/monitor/provider.ts:544-545
  3. 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: true

This 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions