fix(coding-agent): restored subagent thinking precedence

Agent frontmatter thinkingLevel now wins over model role suffix thinking when both are configured.

Fixes #3915
This commit is contained in:
roboomp
2026-06-30 20:15:04 +00:00
parent b6c9747d45
commit e4561d64fa
3 changed files with 39 additions and 3 deletions
+1 -3
View File
@@ -2053,9 +2053,7 @@ export async function runSubprocess(options: ExecutorOptions): Promise<SingleRes
? formatModelSelectorValue(formatModelStringWithRouting(model), resolvedThinkingLevel)
: formatModelStringWithRouting(model);
}
const effectiveThinkingLevel = explicitThinkingLevel
? resolvedThinkingLevel
: (thinkingLevel ?? resolvedThinkingLevel);
const effectiveThinkingLevel = thinkingLevel ?? resolvedThinkingLevel;
resolvedAt = performance.now();
const effectiveCwd = worktree ?? cwd;