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: simplify unused bindings and early return
Steven Enamakel9d676e8a3e31
diff --git a/crates/openhuman-core/src/agent/orchestration/completion_owners.rs b/crates/openhuman-core/src/agent/orchestration/completion_owners.rsindex 01583bc884..eafc62e39e 100644--- a/crates/openhuman-core/src/agent/orchestration/completion_owners.rs+++ b/crates/openhuman-core/src/agent/orchestration/completion_owners.rs@@ -142,7 +142,7 @@ pub(crate) fn driver_tasks_for_thread(owners().driver_tasks.iter()- .filter_map(|(key, owner)| {+ .filter_map(|(_, owner)| {(owner.profile == profile&& owner.workspace_dir == workspace_dir&& owner.parent_thread_id.as_deref() == Some(thread_id))diff --git a/crates/openhuman-core/src/agent_runs/subagent_control.rs b/crates/openhuman-core/src/agent_runs/subagent_control.rsindex dafe582b82..a710a12ac5 100644--- a/crates/openhuman-core/src/agent_runs/subagent_control.rs+++ b/crates/openhuman-core/src/agent_runs/subagent_control.rs@@ -209,9 +209,9 @@ async fn settle_paused_driver_cancel(parent_epoch: Option<u64>,reason: Option<&str>,) -> Result<bool, String> {- let Some(lifecycle_key) = paused.lifecycle_key.as_ref() else {+ if paused.lifecycle_key.is_none() {return Err("subagent_cancel: paused driver child has no lifecycle key".into());- };+ }let store = subagent_sessions::open_for_context(ctx,paused.workspace_dir.clone(),