From 27fcbf9a24ec4cdfea56715c1792f0add2e3e54c Mon Sep 17 00:00:00 2001 From: Owen Lin Date: Mon, 3 Nov 2025 15:00:00 -0800 Subject: [PATCH] remove turn on Thread object for now, it's not populated yet --- codex-rs/app-server-protocol/src/protocol/v2.rs | 1 - codex-rs/app-server/src/codex_message_processor.rs | 3 --- 2 files changed, 4 deletions(-) diff --git a/codex-rs/app-server-protocol/src/protocol/v2.rs b/codex-rs/app-server-protocol/src/protocol/v2.rs index 1fc43ea78c..99c8ee6b21 100644 --- a/codex-rs/app-server-protocol/src/protocol/v2.rs +++ b/codex-rs/app-server-protocol/src/protocol/v2.rs @@ -329,7 +329,6 @@ pub struct ThreadCompactResponse {} #[ts(export_to = "v2/")] pub struct Thread { pub id: String, - pub turn: Vec, } #[derive(Serialize, Deserialize, Debug, Clone, PartialEq, JsonSchema, TS)] diff --git a/codex-rs/app-server/src/codex_message_processor.rs b/codex-rs/app-server/src/codex_message_processor.rs index ddd6683491..9cd1191dd6 100644 --- a/codex-rs/app-server/src/codex_message_processor.rs +++ b/codex-rs/app-server/src/codex_message_processor.rs @@ -948,7 +948,6 @@ impl CodexMessageProcessor { Ok(new_conv) => { let thread = Thread { id: new_conv.conversation_id.to_string(), - turn: Vec::::new(), }; // Send response first to complete the RPC. @@ -1306,7 +1305,6 @@ impl CodexMessageProcessor { .into_iter() .map(|s| Thread { id: s.conversation_id.to_string(), - turn: Vec::::new(), }) .collect(); @@ -1402,7 +1400,6 @@ impl CodexMessageProcessor { let response = ThreadResumeResponse { thread: Thread { id: conversation_id.to_string(), - turn: Vec::::new(), }, }; self.outgoing.send_response(request_id, response).await;