codex: send realtime transcript deltas only

Emit only the live transcript delta entries from realtime transcript notifications instead of the accumulated transcript snapshot, and update the v2 test and docs to match.

Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
Ahmed Ibrahim
2026-03-20 14:09:45 -07:00
parent 07424ff80c
commit ebca8c2aa9
5 changed files with 15 additions and 55 deletions

View File

@@ -213,16 +213,10 @@ async fn realtime_conversation_streams_v2_notifications() -> Result<()> {
assert_eq!(second_transcript_update.thread_id, output_audio.thread_id);
assert_eq!(
second_transcript_update.transcript,
vec![
ThreadRealtimeTranscriptEntry {
role: "user".to_string(),
text: "delegate now".to_string(),
},
ThreadRealtimeTranscriptEntry {
role: "assistant".to_string(),
text: "working".to_string(),
},
]
vec![ThreadRealtimeTranscriptEntry {
role: "assistant".to_string(),
text: "working".to_string(),
}]
);
let realtime_error =