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
Unverified
parent bdae0035ec
commit 32b1795ff4
3 changed files with 16 additions and 5 deletions
+2
View File
@@ -45,6 +45,8 @@ pub(crate) use errors::UnifiedExecError;
pub(crate) use process::UnifiedExecProcess;
pub(crate) const MIN_YIELD_TIME_MS: u64 = 250;
// Minimum yield time for an empty `write_stdin`.
pub(crate) const MIN_EMPTY_YIELD_TIME_MS: u64 = 5_000;
pub(crate) const MAX_YIELD_TIME_MS: u64 = 30_000;
pub(crate) const DEFAULT_MAX_OUTPUT_TOKENS: usize = 10_000;
pub(crate) const UNIFIED_EXEC_OUTPUT_MAX_BYTES: usize = 1024 * 1024; // 1 MiB