Skip to content

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

feat(tools): add desktop control and workspace tool definitions

Steven Enamakel58bc15a92b46
diff --git a/crates/openhuman-core/src/config/workspace/tools.rs b/crates/openhuman-core/src/config/workspace/tools.rs
index 006b38b806..a94071e838 100644
--- a/crates/openhuman-core/src/config/workspace/tools.rs
+++ b/crates/openhuman-core/src/config/workspace/tools.rs
@@ -8,7 +8,6 @@
//! identity/scaffold, so they ship default-OFF via `tools/user_filter.rs`
//! (`workspace_manage` toggle).
-use crate::core::runtime::DispatchCtx;
use std::sync::Arc;
use async_trait::async_trait;
diff --git a/crates/openhuman-core/src/desktop/control/tools.rs b/crates/openhuman-core/src/desktop/control/tools.rs
index c24e849337..5c8ab6947c 100644
--- a/crates/openhuman-core/src/desktop/control/tools.rs
+++ b/crates/openhuman-core/src/desktop/control/tools.rs
@@ -1,6 +1,5 @@
//! Deferred desktop tools. Only their names and descriptions enter discovery.
-use crate::core::runtime::DispatchCtx;
use std::sync::Arc;
use async_trait::async_trait;
@@ -181,7 +180,10 @@ impl Tool for DesktopTool {
Err(error) => Err(error.into()),
},
DesktopToolKind::Goal => {
- let live_config = match DispatchCtx::ambient().load_config().await {
+ let live_config = match crate::agent::tinyagents::host::run_context::dispatch_ctx_for_tool(context)
+ .load_config()
+ .await
+ {
Ok(config) => config,
Err(error) => {
return Ok(ToolResult::error(format!(