Conversation
added 2 commits
October 4, 2026 00:18
Ports the fork's stall watchdog: a provider stream that goes silent — no events, no error — never fails on its own and hangs the step until the user stops it. The drain races a silence check over the step's stream clock (90 seconds, polled every 5); silence before the first event is a slow time to first token and silence while a tool call is pending is a long local or hosted execution idling the stream by design, and neither counts. A stall fails the attempt with the incomplete-stream classification so recovery reuses the established paths — pre-output stalls retry, post-output stalls continue — instead of the fork's TransientTurnError, bounded by the step-level retry schedule and its renewed phases.
Contributor
|
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
Contributor
|
The following comment was made by an LLM, it may be inaccurate: |
This branch has not been deployed
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.
Issue for this PR
Closes #45442
Type of change
What does this PR do?
Two protections for runs that never terminate on their own:
How did you verify your code works?
bun test in packages/core: 233 tests pass in the touched files (session-runner, session-step, doom-loop), full suite matches vanilla upstream/v2. bun typecheck passes.
Screenshots / recordings
Not a UI change.
Checklist