Repository navigation
ref(chat): use native Turn execution for Conversation API - #1682
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
dcramer
marked this pull request as ready for review
August 25, 2026 16:00
dcramer
force-pushed
the
codex/native-api-turn-execution
branch
from
August 25, 2026 17:55
30eecf8 to
c3b874c
Compare
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 c3b874c. Configure here.
dcramer
force-pushed
the
codex/native-api-turn-execution
branch
from
August 25, 2026 18:26
c3b874c to
df9721d
Compare
This branch was successfully deployed
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.

The Conversation API worker now calls core executeTurn instead of calling AgentRunner and writing final Turn events itself. The worker still owns Conversation API authorization, cancellation, Conversation state, reply storage, and plugin work. Slack behavior does not change.
This is the small change described in #1563. It does not change IDs, routing, stored state, or retry and recovery rules. Existing api-turns paths and names remain for now. #1563 removes them after the native API is live.
The worker receives AgentRunner directly because the caller chooses it. It gets fixed app services from the modules that own them. Integration tests can replace only model output. They cannot replace the Junior worker or Turn event code.
Existing integration tests cover successful replies, no Slack publish, Turn events, cancellation, authorization pause and resume, ACP reconnect, and later messages. The policy changes state that an options object is still dependency injection and that a refactor must preserve error handling.
Failures after the agent finishes can still cause a second model Run. This is a real existing defect, but it needs its own design and behavior tests. #1686 tracks that work instead of adding recovery rules to this refactor.
Refs #1563