From 81d0003f0f77b759eb1b8439efa733dac2f724cd Mon Sep 17 00:00:00 2001 From: Ahmed Ibrahim Date: Fri, 24 Oct 2025 11:36:36 -0700 Subject: [PATCH] tests --- codex-rs/core/src/conversation_history.rs | 2 +- codex-rs/core/tests/suite/input_validation.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/codex-rs/core/src/conversation_history.rs b/codex-rs/core/src/conversation_history.rs index 1370a5e671..ba2ea265db 100644 --- a/codex-rs/core/src/conversation_history.rs +++ b/codex-rs/core/src/conversation_history.rs @@ -27,7 +27,7 @@ impl ConversationHistory { }; Self { items: Vec::new(), - token_info: Some(TokenUsageInfo::default()), + token_info: None, tokenizer, } } diff --git a/codex-rs/core/tests/suite/input_validation.rs b/codex-rs/core/tests/suite/input_validation.rs index 4d09900981..b649b62081 100644 --- a/codex-rs/core/tests/suite/input_validation.rs +++ b/codex-rs/core/tests/suite/input_validation.rs @@ -38,7 +38,7 @@ async fn interrupt_tool_records_history_entries() { .unwrap(); // Wait for the normal turn to complete before sending the oversized input - let turn_timeout = Duration::from_secs(2); + let turn_timeout = Duration::from_secs(1); wait_for_event_with_timeout( &codex, |ev| matches!(ev, EventMsg::TaskComplete(_)),