Skip to content

Keep spawned children provisional until the spawn result returns - #53654

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/028b873ad4c1fac2c4b5d1dc823b4561ff19e6bf
Oct 13, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/028b873ad4c1fac2c4b5d1dc823b4561ff19e6bf

Conversation

@copyberry

@copyberry copyberry Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

Keep spawned children provisional until the spawn result returns

Why

Cancellation after initial input admission could leave a child registered even though the spawn caller had not received its result.

What changed

Resolve the child's status and configuration before committing reservations and releasing provisional ownership. This keeps cancellation cleanup active through the final awaits and lets the spawn result return without yielding after commitment. Cancellation after the result returns does not retract the accepted child.

Testing

Add a regression test that cancels spawn during the final status lookup after input admission and verifies that the child is unregistered, terminated, and unloaded, and that shutdown completes. Extend the provisional-child cancellation test to cover both native V1 and V2 callers.

)

## Why

Cancellation after initial input admission could leave a child registered even though the spawn caller had not received its result.

## What changed

Resolve the child's status and configuration before committing reservations and releasing provisional ownership. This keeps cancellation cleanup active through the final awaits and lets the spawn result return without yielding after commitment. Cancellation after the result returns does not retract the accepted child.

## Testing

Add a regression test that cancels spawn during the final status lookup after input admission and verifies that the child is unregistered, terminated, and unloaded, and that shutdown completes. Extend the provisional-child cancellation test to cover both native V1 and V2 callers.

GitOrigin-RevId: 028b873ad4c1fac2c4b5d1dc823b4561ff19e6bf
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/028b873ad4c1fac2c4b5d1dc823b4561ff19e6bf branch from 8ec42aa to 4e7ef7d Compare October 13, 2026 12:43
@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-10-13T12:43:06.911467Z 8ec42aa PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@copyberry
copyberry Bot merged commit 4e7ef7d into main Oct 13, 2026
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/028b873ad4c1fac2c4b5d1dc823b4561ff19e6bf branch October 13, 2026 12:43
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 13, 2026
@zshmtj
zshmtj deployed to issue-triage October 13, 2026 12:47 — with Image GitHub Actions Active
@zshmtj
zshmtj deployed to issue-triage October 13, 2026 12:47 — with Image GitHub Actions Active
@zshmtj
zshmtj deployed to issue-triage October 13, 2026 12:47 — with Image GitHub Actions Active

This branch was successfully deployed

1 active deployment
issue-triage — 4e7ef7d1 Deployed Oct 13, 2026 by DOUBAO2026-hjh via Identify potential duplicates (all issues) #55081
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants