Lightweight coding agent that runs in your terminal
Rust
fix: flaky tests 4 (#7875)
jif-oaid4554ce6c89e
diff --git a/codex-rs/Cargo.lock b/codex-rs/Cargo.lockindex ce10e7ef21..24eb0e4bab 100644--- a/codex-rs/Cargo.lock+++ b/codex-rs/Cargo.lock@@ -850,7 +850,7 @@ dependencies = ["shlex","tempfile","tokio",- "toml",+ "toml 0.9.5","toml_edit","tracing","tracing-subscriber",@@ -1003,7 +1003,7 @@ dependencies = ["supports-color 3.0.2","tempfile","tokio",- "toml",+ "toml 0.9.5","tracing",]@@ -1079,7 +1079,7 @@ dependencies = ["codex-ollama","codex-protocol","serde",- "toml",+ "toml 0.9.5",][[package]]@@ -1158,7 +1158,7 @@ dependencies = ["tokio","tokio-test","tokio-util",- "toml",+ "toml 0.9.5","toml_edit","tracing","tracing-test",@@ -1578,7 +1578,7 @@ dependencies = ["tokio","tokio-stream","tokio-util",- "toml",+ "toml 0.9.5","tracing","tracing-appender","tracing-subscriber",@@ -1647,7 +1647,7 @@ dependencies = ["tokio","tokio-stream","tokio-util",- "toml",+ "toml 0.9.5","tracing","tracing-appender","tracing-subscriber",@@ -1697,7 +1697,7 @@ version = "0.0.0"dependencies = ["pretty_assertions","serde_json",- "toml",+ "toml 0.9.5",][[package]]@@ -1734,6 +1734,7 @@ name = "codex-windows-sandbox"version = "0.0.0"dependencies = ["anyhow",+ "base64","chrono","codex-protocol","dirs-next",@@ -1742,7 +1743,9 @@ dependencies = ["serde","serde_json","tempfile",+ "windows 0.58.0","windows-sys 0.52.0",+ "winres",][[package]]@@ -3175,7 +3178,7 @@ dependencies = ["js-sys","log","wasm-bindgen",- "windows-core",+ "windows-core 0.61.2",][[package]]@@ -4814,7 +4817,7 @@ dependencies = ["nix 0.30.1","tokio","tracing",- "windows",+ "windows 0.61.3",][[package]]@@ -6680,6 +6683,15 @@ dependencies = ["tokio",]+[[package]]+name = "toml"+version = "0.5.11"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f4f7f0dd8d50a853a531c426359045b1998f04219d88799810762cd4ad314234"+dependencies = [+ "serde",+]+[[package]]name = "toml"version = "0.9.5"@@ -7484,6 +7496,16 @@ version = "0.4.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"+[[package]]+name = "windows"+version = "0.58.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "dd04d41d93c4992d421894c18c8b43496aa748dd4c081bac0dc93eb0489272b6"+dependencies = [+ "windows-core 0.58.0",+ "windows-targets 0.52.6",+]+[[package]]name = "windows"version = "0.61.3"@@ -7491,7 +7513,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "9babd3a767a4c1aef6900409f85f5d53ce2544ccdfaa86dad48c91782c6d6893"dependencies = ["windows-collections",- "windows-core",+ "windows-core 0.61.2","windows-future","windows-link 0.1.3","windows-numerics",@@ -7503,7 +7525,20 @@ version = "0.2.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "3beeceb5e5cfd9eb1d76b381630e82c4241ccd0d27f1a39ed41b2760b255c5e8"dependencies = [- "windows-core",+ "windows-core 0.61.2",+]++[[package]]+name = "windows-core"+version = "0.58.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6ba6d44ec8c2591c134257ce647b7ea6b20335bf6379a27dac5f1641fcf59f99"+dependencies = [+ "windows-implement 0.58.0",+ "windows-interface 0.58.0",+ "windows-result 0.2.0",+ "windows-strings 0.1.0",+ "windows-targets 0.52.6",][[package]]@@ -7512,11 +7547,11 @@ version = "0.61.2"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "c0fdd3ddb90610c7638aa2b3a3ab2904fb9e5cdbecc643ddb3647212781c4ae3"dependencies = [- "windows-implement",- "windows-interface",+ "windows-implement 0.60.0",+ "windows-interface 0.59.1","windows-link 0.1.3",- "windows-result",- "windows-strings",+ "windows-result 0.3.4",+ "windows-strings 0.4.2",][[package]]@@ -7525,11 +7560,22 @@ version = "0.2.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "fc6a41e98427b19fe4b73c550f060b59fa592d7d686537eebf9385621bfbad8e"dependencies = [- "windows-core",+ "windows-core 0.61.2","windows-link 0.1.3","windows-threading",]+[[package]]+name = "windows-implement"+version = "0.58.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "2bbd5b46c938e506ecbce286b6628a02171d56153ba733b6c741fc627ec9579b"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.104",+]+[[package]]name = "windows-implement"version = "0.60.0"@@ -7541,6 +7587,17 @@ dependencies = ["syn 2.0.104",]+[[package]]+name = "windows-interface"+version = "0.58.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "053c4c462dc91d3b1504c6fe5a726dd15e216ba718e84a0e46a88fbe5ded3515"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.104",+]+[[package]]name = "windows-interface"version = "0.59.1"@@ -7570,7 +7627,7 @@ version = "0.2.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "9150af68066c4c5c07ddc0ce30421554771e528bde427614c61038bc2c92c2b1"dependencies = [- "windows-core",+ "windows-core 0.61.2","windows-link 0.1.3",]@@ -7581,8 +7638,17 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "5b8a9ed28765efc97bbc954883f4e6796c33a06546ebafacbabee9696967499e"dependencies = ["windows-link 0.1.3",- "windows-result",- "windows-strings",+ "windows-result 0.3.4",+ "windows-strings 0.4.2",+]++[[package]]+name = "windows-result"+version = "0.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1d1043d8214f791817bab27572aaa8af63732e11bf84aa21a45a78d6c317ae0e"+dependencies = [+ "windows-targets 0.52.6",][[package]]@@ -7594,6 +7660,16 @@ dependencies = ["windows-link 0.1.3",]+[[package]]+name = "windows-strings"+version = "0.1.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "4cd9b125c486025df0eabcb585e62173c6c9eddcec5d117d3b6e8c30e2ee4d10"+dependencies = [+ "windows-result 0.2.0",+ "windows-targets 0.52.6",+]+[[package]]name = "windows-strings"version = "0.4.2"@@ -7917,6 +7993,15 @@ dependencies = ["winapi",]+[[package]]+name = "winres"+version = "0.1.12"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b68db261ef59e9e52806f688020631e987592bd83619edccda9c47d42cde4f6c"+dependencies = [+ "toml 0.5.11",+]+[[package]]name = "winsafe"version = "0.0.19"diff --git a/codex-rs/core/tests/suite/unified_exec.rs b/codex-rs/core/tests/suite/unified_exec.rsindex 28f4076cc1..af5e4a1497 100644--- a/codex-rs/core/tests/suite/unified_exec.rs+++ b/codex-rs/core/tests/suite/unified_exec.rs@@ -688,7 +688,7 @@ async fn unified_exec_full_lifecycle_with_background_end_event() -> Result<()> {let call_id = "uexec-full-lifecycle";let args = json!({"cmd": "printf 'HELLO-FULL-LIFECYCLE'",- "yield_time_ms": 50,+ "yield_time_ms": 250,});let responses = vec![