From 0493221e8b605c21611ef1de8fe92413e914504d Mon Sep 17 00:00:00 2001 From: Ahmed Ibrahim Date: Sat, 1 Nov 2025 15:09:43 -0700 Subject: [PATCH] fix --- codex-rs/core/src/client.rs | 2 ++ codex-rs/core/src/response_processing.rs | 5 +++++ codex-rs/protocol/src/models.rs | 2 -- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/codex-rs/core/src/client.rs b/codex-rs/core/src/client.rs index 9dfa3a1316..9fef2cc809 100644 --- a/codex-rs/core/src/client.rs +++ b/codex-rs/core/src/client.rs @@ -26,6 +26,7 @@ use tokio::sync::mpsc; use tokio::time::timeout; use tokio_util::io::ReaderStream; use tracing::debug; +use tracing::error; use tracing::trace; use tracing::warn; @@ -251,6 +252,7 @@ impl ModelClient { prompt_cache_key: Some(self.conversation_id.to_string()), text, }; + error!("payload: {:?}", payload); let mut payload_json = serde_json::to_value(&payload)?; if azure_workaround { diff --git a/codex-rs/core/src/response_processing.rs b/codex-rs/core/src/response_processing.rs index d1767b74c5..3c07078bf7 100644 --- a/codex-rs/core/src/response_processing.rs +++ b/codex-rs/core/src/response_processing.rs @@ -3,6 +3,7 @@ use crate::codex::TurnContext; use codex_protocol::models::FunctionCallOutputPayload; use codex_protocol::models::ResponseInputItem; use codex_protocol::models::ResponseItem; +use tracing::error; use tracing::warn; /// Process streamed `ResponseItem`s from the model into the pair of: @@ -86,6 +87,10 @@ pub(crate) async fn process_items( encrypted_content: encrypted_content.clone(), }); } + (ResponseItem::WebSearchCall { .. }, None) => { + items_to_record_in_conversation_history.push(item.clone()); + error!("WebSearchCall: {item:?}"); + } _ => { warn!("Unexpected response item: {item:?} with response: {response:?}"); } diff --git a/codex-rs/protocol/src/models.rs b/codex-rs/protocol/src/models.rs index a824ee91e4..ae32858f06 100644 --- a/codex-rs/protocol/src/models.rs +++ b/codex-rs/protocol/src/models.rs @@ -120,8 +120,6 @@ pub enum ResponseItem { // "action": {"type":"search","query":"weather: San Francisco, CA"} // } WebSearchCall { - #[serde(default, skip_serializing)] - #[ts(skip)] id: Option, #[serde(default, skip_serializing_if = "Option::is_none")] #[ts(optional)]