Skip to content

Generated config contains invalid key: messages.queue.byProvider #17

@schickling

Description

@schickling

Problem

The mkRoutingConfig function in the home-manager module generates a config with messages.queue.byProvider, but this key is not recognized by the clawdbot config schema.

Error

Invalid config at ~/.clawdbot/clawdbot.json:
- messages.queue: Unrecognized key: "byProvider"

Generated config

{
  "messages": {
    "queue": {
      "byProvider": {
        "discord": "queue",
        "telegram": "interrupt",
        "webchat": "queue"
      },
      "mode": "interrupt"
    }
  }
}

Impact

The clawdbot gateway fails to start because of this invalid config.

Suggested Fix

Either:

  1. Remove byProvider from mkRoutingConfig if it's not part of the schema
  2. Or update the clawdbot schema to accept this key

Workaround

Currently no easy workaround since configOverrides uses lib.recursiveUpdate which merges rather than replaces.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions