Route realtime V3 handoffs by response channel - #33903
Merged
copyberry[bot] merged 1 commit intoJul 17, 2026
Merged
Conversation
## What changed - Add `codexResponseHandoffMode` to `thread/realtime/start` for V3 sessions, with `thinking` as the default and `commentary` and `bemTags` routing modes. - Map BEM `analysis` and `commentary` output to the commentary channel and `final` output to the speakable channel, while preserving the original BEM envelope. Unrecognized output falls back to speakable. - Mark explicit speech appends as speakable and stop adding the legacy `"Agent Final Message"` prefix to V3 handoffs. V1 and V2 continue to ignore the new setting. ## Testing - Cover channel selection for every routing mode, streamed BEM header parsing, fallback behavior, explicit speech, and V1 compatibility. GitOrigin-RevId: 1974578257488f2914b252c9c1990ba38831c96b
copyberry
Bot
force-pushed
the
copyberry/codex-internal-to-codex-oss/1974578257488f2914b252c9c1990ba38831c96b
branch
from
July 17, 2026 21:13
6a67da3 to
025db22
Compare
copyberry
Bot
deleted the
copyberry/codex-internal-to-codex-oss/1974578257488f2914b252c9c1990ba38831c96b
branch
July 17, 2026 21:15
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Route realtime V3 handoffs by response channel
What changed
codexResponseHandoffModetothread/realtime/startfor V3 sessions, withthinkingas the default andcommentaryandbemTagsrouting modes.analysisandcommentaryoutput to the commentary channel andfinaloutput to the speakable channel, while preserving the original BEM envelope. Unrecognized output falls back to speakable."Agent Final Message"prefix to V3 handoffs. V1 and V2 continue to ignore the new setting.Testing