fix(task): preserved deferred fallback chains

Install subagent retry fallback chains after deferred model patterns resolve so runtime-only candidates keep their ordered fallbacks.\n\nFixes #4421
This commit is contained in:
roboomp
2026-07-03 09:41:25 +00:00
parent 17163a2b9f
commit 4409e6cfb5
4 changed files with 73 additions and 2 deletions
@@ -2164,6 +2164,8 @@ export async function runSubprocess(options: ExecutorOptions): Promise<SingleRes
modelPattern: model || modelOverride === undefined ? undefined : modelPatterns,
modelPatternAuthFallback:
model || modelOverride === undefined ? undefined : options.parentActiveModelPattern,
modelPatternFallbackRole:
model || modelOverride === undefined ? undefined : `${SUBAGENT_RETRY_FALLBACK_ROLE_PREFIX}${id}`,
thinkingLevel: effectiveThinkingLevel,
toolNames,
outputSchema,