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 {
// 深度超限、目标 Agent 不存在等前置错误以抛出表达(由 Environment 收敛为 failed)
spawn(input: {
agentId?: string; // 缺省复用当前 Agent(自派生)
modelId?: string; // 缺省用 Project 默认模型
modelId?: string; // 缺省继承父 Session 的模型
}): Promise<SubagentHandle>;
}