Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(runtime): inherit scope in subprocess reaping task

Steven Enamakeld72f72fadadb
diff --git a/crates/openhuman-core/src/tools/timeout/mod.rs b/crates/openhuman-core/src/tools/timeout/mod.rs
index 6144a7c2b5..615634417f 100644
--- a/crates/openhuman-core/src/tools/timeout/mod.rs
+++ b/crates/openhuman-core/src/tools/timeout/mod.rs
@@ -248,7 +248,7 @@ pub async fn output_unbounded(
let pid = child.id();
let reaped = process_cleanup::Reaped::register();
let (cancel, cancellation) = tokio::sync::watch::channel(false);
- let waiter = tokio::spawn(async move {
+ let waiter = crate::runtime::spawn_scoped(async move {
let _reaped = reaped;
collect_command_output(child, cancellation).await
});