Skip to content

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

refactor(tinyagents): drop workspace from subagent owner key

Steven Enamakel3f3a67bb815a
diff --git a/crates/openhuman-core/src/agent/tinyagents/tool_registration.rs b/crates/openhuman-core/src/agent/tinyagents/tool_registration.rs
index b6b622cd1d..0708f54a83 100644
--- a/crates/openhuman-core/src/agent/tinyagents/tool_registration.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/tool_registration.rs
@@ -77,18 +77,13 @@ impl ToolDispatch<(), OpenHumanRunContext> for LiveToolContextDispatch {
/// absent thread from the literal `"no-thread"` and handles delimiters in any
/// value.
pub(crate) fn subagent_owner_key(
- workspace: &std::path::Path,
+ _workspace: &std::path::Path,
parent_session: &str,
thread_id: Option<&str>,
) -> String {
format!(
"openhuman-subagent-owner:{}",
- serde_json::to_string(&(
- workspace.as_os_str().as_encoded_bytes(),
- parent_session,
- thread_id,
- ))
- .expect("owner scope tuple is always JSON serializable")
+ serde_json::to_string(&(parent_session, thread_id)).unwrap_or_else(|_| "null".into())
)
}