From ab9c89e6e567e81f2cd782e5ba3bf8955dc5a5c0 Mon Sep 17 00:00:00 2001 From: Ahmed Ibrahim Date: Sat, 4 Apr 2026 14:13:33 -0700 Subject: [PATCH] Fix realtime parser item_id handling and test callsites Preserve item_id on v1 audio deltas and annotate opaque None arguments in calls URL tests so argument-comment lint passes. Co-authored-by: Codex --- .../codex-api/src/endpoint/realtime_websocket/methods.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 1aa7ef3f7c..83c9dcf753 100644 --- a/codex-rs/codex-api/src/endpoint/realtime_websocket/methods.rs +++ b/codex-rs/codex-api/src/endpoint/realtime_websocket/methods.rs @@ -1056,7 +1056,7 @@ mod tests { fn calls_url_from_api_url_appends_quicksilver_intent_for_v1() { let calls_url = calls_url_from_api_url( "wss://example.com/v1/realtime", - None, + /*query_params*/ None, Some("quicksilver-test-model"), RealtimeEventParser::V1, ) @@ -1072,7 +1072,7 @@ mod tests { fn calls_url_from_api_url_omits_intent_for_v2() { let calls_url = calls_url_from_api_url( "wss://example.com/v1/realtime", - None, + /*query_params*/ None, Some("gpt-realtime"), RealtimeEventParser::RealtimeV2, ) @@ -1088,7 +1088,7 @@ mod tests { fn calls_url_from_api_url_appends_calls_path_to_chatgpt_base_url() { let calls_url = calls_url_from_api_url( "https://chatgpt.com/backend-api/codex", - None, + /*query_params*/ None, Some("gpt-realtime"), RealtimeEventParser::RealtimeV2, )