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:
- Remove
byProvider from mkRoutingConfig if it's not part of the schema
- Or update the clawdbot schema to accept this key
Workaround
Currently no easy workaround since configOverrides uses lib.recursiveUpdate which merges rather than replaces.