fix(subagent): validate depth config at load

This commit is contained in:
Tianyi Cui
2026-07-12 10:33:29 +08:00
parent 9fc2260bb6
commit 48067c3a7a
4 changed files with 32 additions and 6 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ The tool description and the `prompt` parameter description are DERIVED from the
| `agentOptions` | Default per-child `{ model? }` applied to every spawned child. |
| `persona` | Per-child persona that shadows the deployment persona; requires the provider's `persona` capability. |
| `toolFilter` | Per-child `{ allow?, deny? }` restriction over global tools; requires the provider's `toolFilter` capability. |
| `maxDepth` | Maximum delegation depth; requires the provider's `depthLimit` capability. |
| `maxDepth` | Maximum delegation depth; a non-negative safe integer validated when this plugin loads. Requires the provider's `depthLimit` capability. |
## Lifecycle (synchronous collect)