Repository navigation
fix(evals): Cancel provider retries after test timeout - #821
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
dcramer
force-pushed
the
codex/fix-eval-provider-cancellation
branch
from
July 10, 2026 16:19
263cfef to
4ee8934
Compare
dcramer
force-pushed
the
codex/fix-eval-provider-cancellation
branch
from
July 10, 2026 16:32
4ee8934 to
f0f87eb
Compare
dcramer
force-pushed
the
codex/fix-eval-provider-cancellation
branch
from
July 10, 2026 16:36
f0f87eb to
f2ba900
Compare
Propagate the eval host abort signal into the active Pi call and provider retry backoff so timed-out Vitest cases do not leave provider work running during teardown. Keep cancellation local to the agent execution boundary instead of spreading it through Slack runtime and classifier layers. Fixes #779 Co-Authored-By: GPT-5.4 <[email protected]>
dcramer
force-pushed
the
codex/fix-eval-provider-cancellation
branch
from
July 10, 2026 17:24
f2ba900 to
306090b
Compare
dcramer
marked this pull request as ready for review
July 10, 2026 17:31
This branch was successfully 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.
Vitest already aborts the eval harness signal when a test times out, but the
Slack eval path dropped that signal before agent execution. Active provider
calls and provider retry backoff could therefore continue during teardown.
This passes the host signal through
runEvalScenariointoAgentRunPolicy.The agent runner aborts the active Pi call and uses the shared abort-capable
chat/sleeputility for provider retry backoff. Other standard delay helpersnow use the same utility; the two lock delays that intentionally
unref()their timers remain feature-owned because they have different lifecycle
semantics.
Slack runtime, classifier, judge, and explicit
taskTimeoutbehavior remainunchanged. Focused coverage verifies harness signal wiring, active provider
cancellation, retry cancellation, and the shared delay contract.
Fixes #779