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 lock type and drain target match
Steven Enamakelfd58d8700510
diff --git a/crates/openhuman-core/src/agent/orchestration/background_delivery.rs b/crates/openhuman-core/src/agent/orchestration/background_delivery.rsindex af60bb8c4f..cf08cbc236 100644--- a/crates/openhuman-core/src/agent/orchestration/background_delivery.rs+++ b/crates/openhuman-core/src/agent/orchestration/background_delivery.rs@@ -200,7 +200,7 @@ fn drain_target(event: &DomainEvent) -> Option<(&String, Option<&String>, Duratitask_id,..} => Some((parent_session, Some(task_id), DEBOUNCE)),- _ => return None,+ _ => None,}}diff --git a/crates/openhuman-core/src/channels/providers/relay/store.rs b/crates/openhuman-core/src/channels/providers/relay/store.rsindex 82179c54d0..9f799ba040 100644--- a/crates/openhuman-core/src/channels/providers/relay/store.rs+++ b/crates/openhuman-core/src/channels/providers/relay/store.rs@@ -39,8 +39,8 @@ pub fn reply_message_id(message_id: &str) -> String {/// One async lock per `(workspace, thread)`, so the duplicate check and the/// append in [`record_inbound`] are atomic against a concurrent gateway retry.fn thread_lock(workspace_dir: &Path, thread_id: &str) -> Arc<tokio::sync::Mutex<()>> {- static LOCKS: OnceLock<Mutex<HashMap<(PathBuf, String), Arc<tokio::sync::Mutex<()>>>>> =- OnceLock::new();+ type ThreadLocks = Mutex<HashMap<(PathBuf, String), Arc<tokio::sync::Mutex<()>>>>;+ static LOCKS: OnceLock<ThreadLocks> = OnceLock::new();let mut map = LOCKS.get_or_init(|| Mutex::new(HashMap::new())).lock()diff --git a/scripts/ci/check-gated-test-allowlist.sh b/scripts/ci/check-gated-test-allowlist.shindex 50f5f49229..33312d6994 100755--- a/scripts/ci/check-gated-test-allowlist.sh+++ b/scripts/ci/check-gated-test-allowlist.sh@@ -39,6 +39,7 @@ mcp/server/resources.rsmcp/server/mod.rsmcp/server/tools/mod.rsplatform/socket/event_handlers.rs+profiles/surface_tests.rssecurity/credentials/ops/credential.rsskills/bundled/mod.rsskills/mod.rs