Skip to content

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

fix(storage): skip tinyjuice savings import when source file is missing

Steven Enamakel974d423f4705
diff --git a/crates/openhuman-core/src/modules/storage_import_tinyjuice_savings.rs b/crates/openhuman-core/src/modules/storage_import_tinyjuice_savings.rs
index 2cef86dfe3..e3f0d30d75 100644
--- a/crates/openhuman-core/src/modules/storage_import_tinyjuice_savings.rs
+++ b/crates/openhuman-core/src/modules/storage_import_tinyjuice_savings.rs
@@ -78,6 +78,9 @@ where
if support::already_imported(scoped, MARKER_KIND, &marker).await? {
return Ok(Outcome::AlreadyDone);
}
+ if std::fs::symlink_metadata(file).is_err() {
+ return Ok(Outcome::NoSource);
+ }
let path = file.to_owned();
let bytes = tokio::task::spawn_blocking(move || read_regular(&path))
.await