Skip to content

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

refactor(core): adjust file_store handling in build_artifacts_service

Steven Enamakelc561b8bfdca1
diff --git a/crates/openhuman-core/src/artifacts/tiny_store.rs b/crates/openhuman-core/src/artifacts/tiny_store.rs
index df4ad6b30e..ef877ac6da 100644
--- a/crates/openhuman-core/src/artifacts/tiny_store.rs
+++ b/crates/openhuman-core/src/artifacts/tiny_store.rs
@@ -435,11 +435,11 @@ fn build_artifacts_service(
chat,
)))
.with_file_roots(guarded_roots(roots));
- if let Some(file_store) = file_store {
+ if let Some(file_store) = file_store.as_ref() {
if let Some(publisher) = publisher {
artifacts = artifacts.with_publisher(publisher(file_store.clone()));
}
- artifacts = artifacts.with_file_store(file_store);
+ artifacts = artifacts.with_file_store(file_store.clone());
}
(artifacts, file_store)
}