Skip to content

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

fix(artifacts): allow overwriting existing artifact files

Steven Enamakelcd129c5cc5ff
diff --git a/crates/openhuman-core/src/artifacts/tiny_store.rs b/crates/openhuman-core/src/artifacts/tiny_store.rs
index c65caa8801..f1479d5989 100644
--- a/crates/openhuman-core/src/artifacts/tiny_store.rs
+++ b/crates/openhuman-core/src/artifacts/tiny_store.rs
@@ -333,7 +333,9 @@ impl LegacyUiBridge {
.file_name()
.and_then(|name| name.to_str())
.ok_or_else(|| anyhow::anyhow!("artifact presentation file has no valid name"))?;
- let metadata = FsFileStore::new(root).put(name, bytes, media_type).await?;
+ let metadata = FsFileStore::new(root)
+ .overwrite_existing(name, bytes, media_type)
+ .await?;
Ok(metadata.size_bytes)
}