Skip to content

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

refactor(runtime): extract bootstrap helpers into dedicated functions

Steven Enamakelf6b9d9bfa489
diff --git a/crates/openhuman-core/src/core/runtime/bootstrap.rs b/crates/openhuman-core/src/core/runtime/bootstrap.rs
index 7023aff5bc..a86d544968 100644
--- a/crates/openhuman-core/src/core/runtime/bootstrap.rs
+++ b/crates/openhuman-core/src/core/runtime/bootstrap.rs
@@ -163,7 +163,7 @@ pub(crate) async fn bootstrap_core_runtime(
// completion log (`<workspace>/.openhuman/background_completions.jsonl`).
// Schedule its delivery turn through the normal idle-gated path.
let redelivering =
- crate::agent::orchestration::background_delivery::recover_on_boot(&workspace_dir);
+ crate::agent::orchestration::background_delivery::recover_on_boot(&DispatchCtx::ambient(), &workspace_dir);
if redelivering > 0 {
log::info!(
"[runtime] scheduled redelivery of undelivered background completions for \