Skip to content

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

test(session_host): set workspace dir in runtime session test builders

Steven Enamakele5a663b3290a
diff --git a/crates/openhuman-core/src/agent/session_host/runtime_session_tests.rs b/crates/openhuman-core/src/agent/session_host/runtime_session_tests.rs
index 545b734f26..30d5a5ee25 100644
--- a/crates/openhuman-core/src/agent/session_host/runtime_session_tests.rs
+++ b/crates/openhuman-core/src/agent/session_host/runtime_session_tests.rs
@@ -434,6 +434,7 @@ async fn a_resumed_orchestrator_keeps_the_integration_actions_it_was_sent() {
.chat_model(model)
.tools(Vec::new())
.action_dir(action_dir.path().to_path_buf())
+ .workspace_dir(action_dir.path().to_path_buf())
.tool_dispatcher(Box::new(tinytools_agent::dialect::XmlDialect))
.agent_definition_name("orchestrator")
.build()
@@ -504,6 +505,7 @@ async fn session_locator_is_memoized_across_calls() {
.chat_model(model)
.tools(Vec::new())
.action_dir(action_dir.path().to_path_buf())
+ .workspace_dir(action_dir.path().to_path_buf())
.tool_dispatcher(Box::new(tinytools_agent::dialect::XmlDialect))
.agent_definition_name("orchestrator")
.build()
@@ -537,6 +539,7 @@ fn text_dialect_host(
.chat_model(model)
.tools(tools)
.action_dir(action_dir.path().to_path_buf())
+ .workspace_dir(action_dir.path().to_path_buf())
.tool_dispatcher(Box::new(tinytools_agent::dialect::XmlDialect))
.build()
.expect("session build");
@@ -653,6 +656,7 @@ async fn newly_connected_action_cannot_shadow_a_permanent_source() {
.tools(vec![Box::new(AttachedAction)])
.permanent_tool_names(std::collections::HashSet::from(["GMAIL_SEND_EMAIL".into()]))
.action_dir(action_dir.path().to_path_buf())
+ .workspace_dir(action_dir.path().to_path_buf())
.tool_dispatcher(Box::new(tinytools_agent::dialect::XmlDialect))
.agent_definition_name("orchestrator")
.build()