chore: clamp min yield time for empty write_stdin (#9156)

After evals, 0 impact on performance
This commit is contained in:
jif-oai
2026-01-14 16:25:40 +00:00
committed by GitHub
parent bdae0035ec
commit 32b1795ff4
3 changed files with 16 additions and 5 deletions

View File

@@ -902,21 +902,21 @@ async fn unified_exec_terminal_interaction_captures_delayed_output() -> Result<(
// and a final long poll to capture the second marker.
let first_poll_call_id = "uexec-delayed-poll-1";
let first_poll_args = json!({
"chars": "",
"chars": "x",
"session_id": 1000,
"yield_time_ms": 10,
});
let second_poll_call_id = "uexec-delayed-poll-2";
let second_poll_args = json!({
"chars": "",
"chars": "x",
"session_id": 1000,
"yield_time_ms": 4000,
});
let third_poll_call_id = "uexec-delayed-poll-3";
let third_poll_args = json!({
"chars": "",
"chars": "x",
"session_id": 1000,
"yield_time_ms": 6000,
});
@@ -1037,7 +1037,7 @@ async fn unified_exec_terminal_interaction_captures_delayed_output() -> Result<(
.iter()
.map(|ev| ev.stdin.as_str())
.collect::<Vec<_>>(),
vec!["", "", ""],
vec!["x", "x", "x"],
"terminal interactions should reflect the three stdin polls"
);