diff --git a/.openclaw-sync/source.json b/.openclaw-sync/source.json index 8055c305d..e06d0ad10 100644 --- a/.openclaw-sync/source.json +++ b/.openclaw-sync/source.json @@ -1,5 +1,5 @@ { "repository": "openclaw/openclaw", - "sha": "877b5a14f1a9f674bc252b1122cafb2dcd8d66e5", - "syncedAt": "2026-04-27T13:52:57.085Z" + "sha": "2e99c1d22726e6d099b0181325b9cddab6fd615b", + "syncedAt": "2026-04-27T13:54:27.245Z" } diff --git a/docs/gateway/config-agents.md b/docs/gateway/config-agents.md index 46258d396..51628a509 100644 --- a/docs/gateway/config-agents.md +++ b/docs/gateway/config-agents.md @@ -979,7 +979,7 @@ for provider examples and precedence. - `runtime`: optional per-agent runtime descriptor. Use `type: "acp"` with `runtime.acp` defaults (`agent`, `backend`, `mode`, `cwd`) when the agent should default to ACP harness sessions. - `identity.avatar`: workspace-relative path, `http(s)` URL, or `data:` URI. - `identity` derives defaults: `ackReaction` from `emoji`, `mentionPatterns` from `name`/`emoji`. -- `subagents.allowAgents`: allowlist of agent ids for `sessions_spawn` (`["*"]` = any; default: same agent only). +- `subagents.allowAgents`: allowlist of agent ids for explicit `sessions_spawn.agentId` targets (`["*"]` = any; default: same agent only). Include the requester id when self-targeted `agentId` calls should be allowed. - Sandbox inheritance guard: if the requester session is sandboxed, `sessions_spawn` rejects targets that would run unsandboxed. - `subagents.requireAgentId`: when true, block `sessions_spawn` calls that omit `agentId` (forces explicit profile selection; default: false). diff --git a/docs/tools/subagents.md b/docs/tools/subagents.md index f694e6577..f00f87955 100644 --- a/docs/tools/subagents.md +++ b/docs/tools/subagents.md @@ -244,7 +244,7 @@ See [Configuration reference](/gateway/configuration-reference) and ### Allowlist - List of agent ids that can be targeted via `agentId` (`["*"]` allows any). Default: only the requester agent. + List of agent ids that can be targeted via explicit `agentId` (`["*"]` allows any). Default: only the requester agent. If you set a list and still want the requester to spawn itself with `agentId`, include the requester id in the list. Default target-agent allowlist used when the requester agent does not set its own `subagents.allowAgents`.