Repository navigation
Conversation
A subagent whose role sets retry.fallbackChains to [] skipped installing its own chain, so a provider failure walked the default role's chain whenever the default role used the same model. Empty chains now install as 'no fallbacks' at spawn, for deferred singleton patterns, and on cold revival; unset chains still inherit the default.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
An implementer role whose
retry.fallbackChainsentry is explicitly empty ([]) now gets no fallback at all. Before this change it silently walked thedefaultrole's chain whenever the default role used the same model, so our Opus implementer kept finishing tasks on Sol, K3 or GLM-5.3 after a provider error.session/retry-fallback-chains.ts,task/executor.ts: subagent chain resolution and installation treat an empty array as "no fallbacks" instead of "unset".sdk.ts: deferred singleton model patterns install the empty chain too, and the session's initial model change records the role so cold revival restores it.default, as before.Why
Local subagent transcripts show implementer-11 (
anthropic/claude-opus-5-5:xhigh, chain[]) finishing runs onkimi-code/k3(Oct 6 and Oct 8) andopenai-codex/gpt-6.1-sol(Oct 18) after Opus errors. Thedefaultrole is also Opus, and its chain is Sol → K3 → GLM-5.3.Testing
subagent runtime model resolution > refuses default fallbacks for an explicitly empty subagent role chain but inherits when unsetfails on the parent commit (0 pass, 1 fail) and passes with the fix.bun test test/issue-2750-subagent-runtime-fallback.test.ts test/retry-fallback.test.ts test/task/persisted-revive.test.ts(packages/coding-agent): 78 pass, 0 fail.bun check: passes.bun checkpasses