From b306885bd8ea4cd6c7e742b93c20614b79e6ac5d Mon Sep 17 00:00:00 2001 From: Ahmed Ibrahim Date: Wed, 18 Mar 2026 15:54:13 -0700 Subject: [PATCH] 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. --- codex-rs/codex-api/src/endpoint/realtime_websocket/methods.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/codex-rs/codex-api/src/endpoint/realtime_websocket/methods.rs b/codex-rs/codex-api/src/endpoint/realtime_websocket/methods.rs index c78bac432..10c72d72b 100644 --- a/codex-rs/codex-api/src/endpoint/realtime_websocket/methods.rs +++ b/codex-rs/codex-api/src/endpoint/realtime_websocket/methods.rs @@ -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(_)