Skip to content

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

refactor(sandbox): await apply_requested_backend with full config

Steven Enamakel62ee13a04fdc
diff --git a/crates/openhuman-core/src/sandbox/schemas.rs b/crates/openhuman-core/src/sandbox/schemas.rs
index 97beceac49..de26e860f6 100644
--- a/crates/openhuman-core/src/sandbox/schemas.rs
+++ b/crates/openhuman-core/src/sandbox/schemas.rs
@@ -200,7 +200,13 @@ fn handle_status(params: Map<String, Value>) -> ControllerFuture {
is_remote,
);
if !crate::core::runtime::is_saas() {
- super::ops::apply_requested_backend(&mut policy, &config.sandbox, &config.runtime)
+ super::ops::apply_requested_backend(
+ &mut policy,
+ &config.sandbox,
+ &config.runtime,
+ &config,
+ )
+ .await
.map_err(|e| e.to_string())?;
}
let handle = super::ops::create_sandbox_backend_with_config(&policy, &config).await?;
@@ -253,7 +259,13 @@ fn handle_resolve_policy(params: Map<String, Value>) -> ControllerFuture {
is_remote,
);
if !crate::core::runtime::is_saas() {
- super::ops::apply_requested_backend(&mut policy, &config.sandbox, &config.runtime)
+ super::ops::apply_requested_backend(
+ &mut policy,
+ &config.sandbox,
+ &config.runtime,
+ &config,
+ )
+ .await
.map_err(|e| e.to_string())?;
}
to_json(Outcome::new(policy, vec![]))