#I can not spawn subagents
1 messages · Page 1 of 1 (latest)
Exec approval is required, but native chat exec approvals are not configured on Discord.
Approve it from the Web UI or terminal UI for now. Discord supports native exec approvals for this account. Configure channels.discord.execApprovals.approvers or commands.ownerAllowFrom; leave channels.discord.execApprovals.enabled unset/auto or set it to true.
That error usually means one of these:
- You’re targeting another agent with
agentId, but that target is not allowed - The session is stale and still has the old permission snapshot
For sessions_spawn, the config that matters is subagent allowlist, not tools.agentToAgent.allow.
Use one of these in openclaw.json:
{
agents: {
defaults: {
subagents: {
allowAgents: ["*"], // or ["worker", "researcher"]
},
},
list: [
{
id: "main",
subagents: {
allowAgents: ["worker", "researcher"],
},
},
],
},
}
A couple important gotchas:
- If you only want a background worker under the same agent, omit
agentIdentirely.
- After changing
allowAgents, restart the gateway and start a brand new session/thread. Older sessions can keep stale permissions and still showallowed: none.
Quick check:
- Have the agent call
agents_list - If the target agent does not appear there,
sessions_spawnwill keep failing
Docs:
If you want, paste your agents section here and I’ll sanity-check the exact JSON5.