Repository navigation
fix(history): preserve native turn failures observed before cancellation - #735
Conversation
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. |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 53a8c9f052
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
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".
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 67afadc3ba
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
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".
|
@codex review |
|
Codex Review: Didn't find any major issues. Swish! 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". |
sylvesterkaczmarek
left a comment
There was a problem hiding this comment.
canceled is inferred from the signal's current state, not from the exception that ended the scan. If a real scan failure occurs and abort/close races before this bookkeeping block, the failure is recorded as canceled and its message/cost are dropped. Use cancel-scan only for a cancellation-derived failure, and add a fail-then-abort race test.
|
Addressed in commit |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 13ca814c11
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
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".
…scan-cancel # Conflicts: # sdk/typescript/src/api.ts
|
@codex review |
|
Merged latest origin/main in commit |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6eb5e4dbc8
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
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".
|
Addressed the client-close race review in commit Validation: 5 focused API tests passed, TypeScript lint, Prettier, generated-model check, and plugin build passed. |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ad93cd531d
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
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".
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 647d72662f
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
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".
|
@codex review |
|
Codex Review: Didn't find any major issues. Swish! 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". |
…dex-security-scan-cancel # Conflicts: # sdk/typescript/src/api.ts
|
Thanks for the careful cancellation updates. I checked the current red CI run and found a specific leftover expectation: |
|
Thanks for catching this. I updated both the caller-abort and Validation on this head:
Pushed normally as |
|
Thanks for updating the installed-package cancellation fixtures and carrying this through the latest main merge, @Hughhhhcoder. I checked head |
Preserve the contributor history and take main's registered scan cancellation and cost semantics from openai#2307. Keep the independently verified native terminal event ordering correction and shared component lifecycle test.
|
Thanks for tracking down this race, @Hughhhhcoder. The tests for both event orders make the intent clear: a failure the SDK has already seen should survive cleanup, and an earlier caller cancellation should still be recorded as such. I appreciate you narrowing the patch after the broader cancellation fix landed. |
Summary
#2307 landed the registered-scan cancellation and measured-cost changes. This PR keeps one case that remained on main. A native SDK scan can report
turn.failedwhile the caller signal is live, then receive a caller abort as the SDK closes the failed event stream. History now records the failure and its native diagnostic. If the caller aborts before the SDK observes the failure event, history records cancellation.Scope
The SDK records the order when it receives the native terminal event. Hosted executor receipts continue to follow #2307. An explicit hosted cancellation records a canceled scan even if the executor reports failure. A caller deadline after registration records a failed scan. The existing workbench command persists measured cost. The hosted result retains available executor identity, status and usage.
The branch includes the shared one-line component test correction for #2317. An expressly aborted component scan reports a canceled lifecycle event while the component receipt records failure and retains its scan ID.
Verification
Public disclosure review