fix: support default subagent allowlists (#59944) (thanks @hclsys)

This commit is contained in:
Peter Steinberger
2026-04-03 19:39:30 +09:00
parent a57766bad0
commit d921784718
8 changed files with 86 additions and 0 deletions

View File

@@ -278,6 +278,8 @@ export type AgentDefaultsConfig = {
maxConcurrent?: number;
/** Sub-agent defaults (spawned via sessions_spawn). */
subagents?: {
/** Default allowlist of target agent ids for sessions_spawn. Use "*" to allow any. */
allowAgents?: string[];
/** Max concurrent sub-agent runs (global lane: "subagent"). Default: 1. */
maxConcurrent?: number;
/** Maximum depth allowed for sessions_spawn chains. Default behavior: 1 (no nested spawns). */