Revert codex patch and increase timeout for image load

This commit is contained in:
canvrno-oai
2026-05-12 15:54:20 -07:00
parent 52804d5354
commit ba61c0981b

View File

@@ -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();