From ba61c0981b3d2c61a47a310eb7d7f5b74dc1c8a6 Mon Sep 17 00:00:00 2001 From: canvrno-oai Date: Tue, 12 May 2026 15:54:20 -0700 Subject: [PATCH] Revert codex patch and increase timeout for image load --- codex-rs/tui/src/chatwidget/tests/status_and_layout.rs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/codex-rs/tui/src/chatwidget/tests/status_and_layout.rs b/codex-rs/tui/src/chatwidget/tests/status_and_layout.rs index 51d0ff855b..e149f6f21a 100644 --- a/codex-rs/tui/src/chatwidget/tests/status_and_layout.rs +++ b/codex-rs/tui/src/chatwidget/tests/status_and_layout.rs @@ -407,14 +407,6 @@ async fn configured_pet_load_is_deferred_until_after_construction() { let mut cfg = test_config().await; cfg.tui_pet = Some(crate::pets::DEFAULT_PET_ID.to_string()); crate::pets::write_test_pack(&cfg.codex_home); - // Prime the frame cache so this test only asserts deferred construction behavior. - crate::pets::AmbientPet::load( - Some(crate::pets::DEFAULT_PET_ID), - &cfg.codex_home, - FrameRequester::test_dummy(), - cfg.animations, - ) - .unwrap(); let resolved_model = crate::legacy_core::test_support::get_model_offline(cfg.model.as_deref()); let session_telemetry = test_session_telemetry(&cfg, resolved_model.as_str()); let init = ChatWidgetInit { @@ -442,7 +434,7 @@ async fn configured_pet_load_is_deferred_until_after_construction() { let chat = ChatWidget::new_with_app_event(init); assert!(!chat.ambient_pet_image_enabled()); - let event = tokio::time::timeout(std::time::Duration::from_secs(2), rx.recv()) + let event = tokio::time::timeout(std::time::Duration::from_secs(10), rx.recv()) .await .unwrap() .unwrap();