don't add transcript for v2 realtime (#15111)

# External (non-OpenAI) Pull Request Requirements

Before opening this Pull Request, please read the dedicated
"Contributing" markdown file or your PR may be closed:
https://github.com/openai/codex/blob/main/docs/contributing.md

If your PR conforms to our contribution guidelines, replace this text
with a detailed and high quality description of your changes.

Include a link to a bug report or enhancement request.
This commit is contained in:
Ahmed Ibrahim 2026-03-18 15:54:13 -07:00 committed by GitHub
parent bb30432421
commit b306885bd8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -408,7 +408,9 @@ impl RealtimeWebsocketEvents {
append_transcript_delta(&mut active_transcript.entries, "assistant", delta);
}
RealtimeEvent::HandoffRequested(handoff) => {
handoff.active_transcript = std::mem::take(&mut active_transcript.entries);
if self.event_parser == RealtimeEventParser::V1 {
handoff.active_transcript = std::mem::take(&mut active_transcript.entries);
}
}
RealtimeEvent::SessionUpdated { .. }
| RealtimeEvent::AudioOut(_)