Skip to content

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

fix: pass FileRoots to FsArtifactStore in presentation and document producers

Sanila5b654154856
diff --git a/crates/openhuman-core/src/tools/impl/document/mod.rs b/crates/openhuman-core/src/tools/impl/document/mod.rs
index 70a62731ad..595d528aef 100644
--- a/crates/openhuman-core/src/tools/impl/document/mod.rs
+++ b/crates/openhuman-core/src/tools/impl/document/mod.rs
@@ -334,7 +334,7 @@ impl Tool for DocumentTool {
// fresh record is created. The body is the workspace path — the
// document is a binary file, and the shared model stores a reference,
// not bytes.
- let versioned_store = FsArtifactStore::new(&self.workspace_dir);
+ let versioned_store = FsArtifactStore::new(&self.workspace_dir, self.files_dir.clone());
let versioned_result = (|| async {
let body = output_path.display().to_string();
let now = tiny_artifacts::now_millis();
diff --git a/crates/openhuman-core/src/tools/impl/presentation/mod.rs b/crates/openhuman-core/src/tools/impl/presentation/mod.rs
index ac641f0d80..26dbe112ec 100644
--- a/crates/openhuman-core/src/tools/impl/presentation/mod.rs
+++ b/crates/openhuman-core/src/tools/impl/presentation/mod.rs
@@ -422,7 +422,7 @@ impl Tool for PresentationTool {
// artifact; otherwise a fresh record is created. The body is the
// workspace path — the deck is a binary file, and the shared model
// stores a reference, not bytes.
- let versioned_store = FsArtifactStore::new(&self.workspace_dir);
+ let versioned_store = FsArtifactStore::new(&self.workspace_dir, self.files_dir.clone());
let versioned_result = (|| async {
let body = output_path.display().to_string();
let now = tiny_artifacts::now_millis();