The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
fix(runtime): reject NaN cpu_limit in sandbox boot validation
Steven Enamakel56a423badff8
diff --git a/crates/openhuman-core/src/core/runtime/boot_guard.rs b/crates/openhuman-core/src/core/runtime/boot_guard.rsindex f5d1b588f6..566a21edf1 100644--- a/crates/openhuman-core/src/core/runtime/boot_guard.rs+++ b/crates/openhuman-core/src/core/runtime/boot_guard.rs@@ -269,7 +269,7 @@ fn sandbox_problems(inputs: &BootInputs<'_>) -> Vec<String> {if sandbox.image.trim().is_empty() {problems.push("no image is set".to_string());}- if sandbox.memory_limit_mb == 0 || !(sandbox.cpu_limit > 0.0) {+ if sandbox.memory_limit_mb == 0 || sandbox.cpu_limit.is_nan() || sandbox.cpu_limit <= 0.0 {problems.push("memory_limit_mb and cpu_limit must be positive".to_string());}problems