You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
subagent: spawns fail with "The provider response ended with an unknown finish reason" #44695
Subagents (e.g. explore) intermittently fail at spawn with The provider response ended with an unknown finish reason. The session dies immediately with no further detail; a retry of the same prompt often succeeds. In one session, 3 of 5 concurrently-spawned explore agents failed this way; a second attempt got 2 of the remaining ones through, and one never succeeded after repeated tries. This makes parallel research via subagents unreliable.
If your issue is specifically about the intermittent/concurrency aspect (more failures under parallel spawns), it may still be worth keeping open as a separate signal, but please review the above and comment if one of them already covers your case.
Closing this: on current V2, an unknown finish reason from the provider is treated as an incomplete stream and retried automatically when no output has started yet (packages/core/src/session/runner/step.ts, #51635). That should cover subagent spawns failing this way. If parallel spawns still fail with this error on a current build, comment here with the version and provider and we'll reopen it.
Activity
github-actions commentedon Aug 24, 2026
This issue might be a duplicate of existing issues. Please check:
core(v2): "unknown finish reason" error omits raw provider finish_reason— same error string, V2 beta, discusses the root cause and where the raw finish value is droppedAborted provider stream recorded as clean stop (finish=unknown, zero usage, no text) — subagent returns empty with no error— same symptom (subagent silently fails on unknown finish), parallel spawns angleSession silently stops on empty LLM response (finish: unknown, 0 tokens)— same loop-exit behavior on unknown finish reasonSession exits silently (exit 0, no error) when a turn returns finish "unknown"— directly tracks the loop-exit-on-unknown-finish bugIf your issue is specifically about the intermittent/concurrency aspect (more failures under parallel spawns), it may still be worth keeping open as a separate signal, but please review the above and comment if one of them already covers your case.
neriousy commentedon Oct 22, 2026
Closing this: on current V2, an unknown finish reason from the provider is treated as an incomplete stream and retried automatically when no output has started yet (packages/core/src/session/runner/step.ts, #51635). That should cover subagent spawns failing this way. If parallel spawns still fail with this error on a current build, comment here with the version and provider and we'll reopen it.