Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

Make the code mode yield/resume test yield explicitly between phases (#56236)

goodman-oaia3d93e1e692f
diff --git a/codex-rs/core/tests/suite/code_mode.rs b/codex-rs/core/tests/suite/code_mode.rs
index 1985147110..64cbb6a2d2 100644
--- a/codex-rs/core/tests/suite/code_mode.rs
+++ b/codex-rs/core/tests/suite/code_mode.rs
@@ -4885,6 +4885,7 @@ text("phase 1");
yield_control();
{phase_2_wait}
text((await tools.exec_command({{cmd: "printf 'phase 2'"}})).output);
+yield_control();
{phase_3_wait}
text((await tools.exec_command({{cmd: "printf 'phase 3'"}})).output);
"#
@@ -4933,7 +4934,7 @@ text((await tools.exec_command({{cmd: "printf 'phase 3'"}})).output);
"wait",
&serde_json::to_string(&serde_json::json!({
"cell_id": cell_id.clone(),
- "yield_time_ms": 1_000,
+ "yield_time_ms": 10_000,
}))?,
),
ev_completed("resp-3"),
@@ -4980,7 +4981,7 @@ text((await tools.exec_command({{cmd: "printf 'phase 3'"}})).output);
"wait",
&serde_json::to_string(&serde_json::json!({
"cell_id": cell_id.clone(),
- "yield_time_ms": 1_000,
+ "yield_time_ms": 10_000,
}))?,
),
ev_completed("resp-5"),