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
refactor(subagent_host): reformat runner policy code
Steven Enamakel39ccc532427a
diff --git a/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs b/crates/openhuman-core/src/agent/subagent_host/ops/runner.rsindex 2f33327a30..62532f963a 100644--- a/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs+++ b/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs@@ -411,8 +411,8 @@ async fn apply_subagent_result_policies(.or_else(|| policy.as_ref().map(|p| p.action_dir.clone()));let can_store = !policy- .as_ref()- .is_some_and(|p| p.autonomy == crate::security::AutonomyLevel::ReadOnly);+ .as_ref()+ .is_some_and(|p| p.autonomy == crate::security::AutonomyLevel::ReadOnly);let store = match (action_dir.as_ref(), can_store) {(Some(action_dir), true) => Some(Arc::new(SubagentArtifactStore::new(policy,@@ -423,9 +423,13 @@ async fn apply_subagent_result_policies(};if let Some(store) = store.as_ref() {- let threshold =- effective_offload_threshold(DEFAULT_OFFLOAD_THRESHOLD_BYTES, definition.max_result_chars);- if let Some(stored) = offload_result_by_policy(task_id, &outcome.output, threshold, store).await {+ let threshold = effective_offload_threshold(+ DEFAULT_OFFLOAD_THRESHOLD_BYTES,+ definition.max_result_chars,+ );+ if let Some(stored) =+ offload_result_by_policy(task_id, &outcome.output, threshold, store).await+ {outcome.output = stored.pointer;if !paths.contains(&stored.relative_path) {paths.push(stored.relative_path);diff --git a/crates/openhuman-core/src/agent/subagent_host/ops/runner_tests.rs b/crates/openhuman-core/src/agent/subagent_host/ops/runner_tests.rsindex 49d5160dff..9f9b53d6ae 100644--- a/crates/openhuman-core/src/agent/subagent_host/ops/runner_tests.rs+++ b/crates/openhuman-core/src/agent/subagent_host/ops/runner_tests.rs@@ -50,5 +50,8 @@ async fn byte_policy_offloads_full_output_before_applying_the_character_cap() {.with_max_chars(512).apply("task-policy-test", &stored.pointer, None).await;- assert_eq!(capped.text, stored.pointer, "the existing pointer fits its cap");+ assert_eq!(+ capped.text, stored.pointer,+ "the existing pointer fits its cap"+ );}