ref(chat): add native Turn execution - #1679
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit cde1ac1. Configure here.
dcramer
force-pushed
the
codex/native-turn-execution
branch
from
August 25, 2026 02:33
cde1ac1 to
936680f
Compare
dcramer
force-pushed
the
codex/native-turn-execution
branch
from
August 25, 2026 02:37
936680f to
2b9212c
Compare
dcramer
force-pushed
the
codex/native-turn-execution
branch
from
August 25, 2026 03:46
2b9212c to
6d0472c
Compare
dcramer
marked this pull request as ready for review
August 25, 2026 05:32
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.

Internal child work now uses the native
executeTurnfunction. The child worker saves its result before the runtime marks the Turn complete or failed. Completed execution returns onlycompleted, so later code cannot act on a model result that lost a race to an earlier saved result.The runtime now owns Turn event storage directly. It does not accept an options or services object. The only passed service is
AgentRunner, the model boundary used by production setup and model fakes. The child worker also takes that runner directly instead of a one-field options object.An agent Run error follows the existing child retry rules. An error while saving the result goes back to the queue, so saved work can still be recovered.
This is a small part of #1563. It does not change routing, IDs, recovery rules, Slack, the Conversation API, or the local CLI. We can move those callers in separate changes after this boundary is proven.
The existing child-work integration scenario checks successful and failed Turn events through real Junior wiring. A focused component scenario protects the Run-error and save-error boundary.