Skip to content

fix(comply): forward AbortSignal into runWithDegradedProfile runOptions - #1646

Merged
bokelley merged 1 commit into
mainfrom
bokelley/fix-1612-degraded-profile-signal
May 10, 2026
Merged

bokelley merged 1 commit into
mainfrom
bokelley/fix-1612-degraded-profile-signal

Conversation

@bokelley

Copy link
Copy Markdown
Contributor

Closes the residual gap left by #1612 (so we can close stale draft #1615).

What

complyImpl already threads its combined timeout/external AbortSignal into the StoryboardRunOptions it hands to runStoryboard() — that lets executeStoryboardPass bail 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 signal into the runOptions object the same way complyImpl does.

Why this isn't just rebasing #1615

Most of #1615's work shipped in #1612 (added signal field to StoryboardRunOptions, threaded it from complyImpl, added throwIfAborted checks at phase/step boundaries in executeStoryboardPass). #1615's branch is hundreds of commits behind main and conflicts on every file it touches. The runWithDegradedProfile forward was the only contribution that didn't land — extracted here as a clean patch. #1615 will be closed as superseded.

Test plan

  • npm run typecheck clean
  • npm run format:check clean
  • CI green (Test & Build, changeset check)

🤖 Generated with Claude Code

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]>
@bokelley
bokelley merged commit 8e5ce88 into main May 10, 2026
10 checks passed
@bokelley
bokelley deleted the bokelley/fix-1612-degraded-profile-signal branch May 10, 2026 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant