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(storage): simplify agent filtering in artifact_scoped_for_in
Steven Enamakel7ca127a7b6e7
diff --git a/crates/openhuman-core/src/storage/sessions/workspace.rs b/crates/openhuman-core/src/storage/sessions/workspace.rsindex e775de69bc..17bffaf630 100644--- a/crates/openhuman-core/src/storage/sessions/workspace.rs+++ b/crates/openhuman-core/src/storage/sessions/workspace.rs@@ -232,9 +232,10 @@ pub fn artifact_scoped_for_in(// Artifacts are shared across the profile, like the artifacts domain's// existing document records. Session state is agent-scoped, so using its// session key here would strand records in a narrower namespace.- let agent = tenant.agent.as_deref().filter(|agent| {- tenant.profile.is_none() && *agent != super::DEFAULT_AGENT- });+ let agent = tenant+ .agent+ .as_deref()+ .filter(|agent| tenant.profile.is_none() && *agent != super::DEFAULT_AGENT);let scope = match crate::storage::scope_from(tenant.profile.as_deref(),agent,