feat(core): subagents inherit the parent session's model and thinking level (#38)

Co-authored-by: Alice <alice@prismshadow.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
authored and GitHub committed 2026-07-23 00:27:58 +08:00
1 parent cf27b13880
commit 1514cd66b2
12 files changed
+353 -28

No files matched your search

+1 -1
View File
@@ -202,7 +202,7 @@ interface SubagentRunner {
// Precheck errors (depth limit, unknown agent) are thrown — Environment collapses them to failed
spawn(input: {
agentId?: string; // defaults to the current Agent (self-spawn)
modelId?: string; // defaults to the Project default model
modelId?: string; // omitted = inherit the parent Session's model
}): Promise<SubagentHandle>;
}