Repository navigation
fix(comply): forward AbortSignal into runWithDegradedProfile runOptions - #1646
Merged
Merged
Conversation
complyImpl already threads its combined timeout/external AbortSignal into the StoryboardRunOptions it hands to runStoryboard(), so executeStoryboardPass can bail at the next phase/step boundary. The auth-degraded fallback path (runWithDegradedProfile) checked the signal between storyboards but never forwarded it into the runner's options — a single degraded storyboard could still consume the entire timeout budget without firing mid-storyboard. Closes the gap left by #1612 / completes #1615. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
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.
Closes the residual gap left by #1612 (so we can close stale draft #1615).
What
complyImplalready threads its combined timeout/externalAbortSignalinto theStoryboardRunOptionsit hands torunStoryboard()— that letsexecuteStoryboardPassbail at the next phase/step boundary inside a long-running storyboard. The auth-degraded fallback path (runWithDegradedProfile) checked the signal between storyboards (line 1192) but never forwarded it into the runner's options. A single degraded storyboard could still consume the entire timeout budget without firing mid-storyboard.One-line fix: spread
signalinto therunOptionsobject the same waycomplyImpldoes.Why this isn't just rebasing #1615
Most of #1615's work shipped in #1612 (added
signalfield toStoryboardRunOptions, threaded it fromcomplyImpl, addedthrowIfAbortedchecks at phase/step boundaries inexecuteStoryboardPass). #1615's branch is hundreds of commits behind main and conflicts on every file it touches. TherunWithDegradedProfileforward was the only contribution that didn't land — extracted here as a clean patch. #1615 will be closed as superseded.Test plan
npm run typecheckcleannpm run format:checkclean🤖 Generated with Claude Code