Skip to content

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

test(prompts): update workspace_dir to pass workspace reference

Steven Enamakel9e7a835df806
diff --git a/crates/openhuman-core/src/agent/prompts/mod_tests_builder_sections_tests.rs b/crates/openhuman-core/src/agent/prompts/mod_tests_builder_sections_tests.rs
index 09d9ec622d..4a79b4ec4c 100644
--- a/crates/openhuman-core/src/agent/prompts/mod_tests_builder_sections_tests.rs
+++ b/crates/openhuman-core/src/agent/prompts/mod_tests_builder_sections_tests.rs
@@ -120,7 +120,7 @@ fn identity_section_creates_missing_workspace_files() {
let tools: Vec<Box<dyn Tool>> = vec![];
let prompt_tools = PromptTool::from_tools(&tools);
let ctx = PromptContext {
- workspace_dir: workspace.path(),
+ workspace_dir: &workspace,
model_name: "test-model",
agent_id: "",
tools: &prompt_tools,