Repository navigation
fix(sdk): accept a suspended known status in readCompletedStepOutput (main typecheck) - #592
Conversation
#590 and #441 merged in the same window: #441 widened RunReport.status to include 'suspended', and #590's reader took the caller's known status as a bare RunStatus, so main no longer typechecks (authored-worker-step.ts:143). A suspended child is not terminal and is judged like one still in flight. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
… check Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Verification on this head (b-tests + real runtime)
|
|
@codex review |
|
Codex Review: Didn't find any major issues. 🚀 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Why
mainstopped typechecking at 78b677a, right after #590 merged.Relayflow v2 surface package› packed-consumer failed, and so did the Cloud runtime artifact and thePublish Packagebuild (Build SDK against packed surface):How main got broken
Neither PR was wrong on its own; this is a semantic merge conflict.
RunReport.statustoRunStatus | 'suspended'.readCompletedStepOutput(…, knownStatus?: RunStatus).authored-worker-step.tspasses itexecution.report.status.RunReport.statuswithout'suspended', and passed. feat: add durable Event Await suspension protocol #441's CI never saw fix(sdk): read an authored step's terminal completion, not a retried attempt #590's new parameter. Both were green; the combination onmainis not.Suggestion: turn on branch protection for
mainwith "Require branches to be up to date before merging" (or a merge queue), so the required checks always run against the actual merge result.Fix
knownStatus?: RunStatus | 'suspended'.suspendedis the authored root's Event Await boundary (suspendedExecution, exit 4), never a terminal verdict. A single-step child kernel run does not journal it, so on this path it is type-level only.Verification
tsc --noEmit,tsc -p tsconfig.type-tests.jsonandtsc -p tsconfig.tests.jsonare clean against the local Surface build. Without the change there is exactly the one error above.tests/authored-step-terminal-completion.test.ts, under "readCompletedStepOutput given a suspended known status (feat: add durable Event Await suspension protocol #441)":authored-step-terminal-completion+authored-node-result: 57/57 pass. Fullnpm testand the Cloud real-runtime deadline-resume e2e results will be posted as a comment.🤖 Generated with Claude Code