fix(tool-subagent): default maxDepth to 3

This commit is contained in:
Tianyi Cui
2026-07-20 17:12:14 +08:00
parent 27f37942df
commit 1a1ff56ab7
6 changed files with 15 additions and 12 deletions

View File

@@ -105,7 +105,7 @@ const SCENARIOS: Scenario[] = [
},
{ name: 'cancel', hasModelTurn: true, recorded: false, overridden: true },
{ name: 'cancel-tool-calls', hasModelTurn: true, recorded: false, overridden: true },
// Children sit AT the default depth cap (maxDepth 1), so each child's header
// Children sit at this example's configured depth cap (`maxDepth: 1`), so each child's header
// legitimately omits the delegation tool that spawned it (schema hiding).
{ name: 'subagent-spawn', hasModelTurn: true, recorded: true, childToolOmissions: ['subagent'] },
{ name: 'subagent-multi', hasModelTurn: true, recorded: true, childToolOmissions: ['subagent'] },
@@ -125,7 +125,7 @@ const SCENARIOS: Scenario[] = [
pinsHeader: true,
headerClass: 'advanced',
configPath: ADVANCED_CONFIG,
// The direct spawn child sits AT the default cap and loses `subagent`;
// The direct spawn child sits at the configured cap and loses `subagent`;
// workflow children bypass tool-subagent and keep the full set.
childToolOmissions: ['subagent'],
},