Skip to content

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

fix(config): thread document version through file config source

Steven Enamakel749f78f0eedf
diff --git a/crates/openhuman-core/src/config/schema/load/source/file.rs b/crates/openhuman-core/src/config/schema/load/source/file.rs
index 07d2703d2e..77f3995e84 100644
--- a/crates/openhuman-core/src/config/schema/load/source/file.rs
+++ b/crates/openhuman-core/src/config/schema/load/source/file.rs
@@ -52,10 +52,11 @@ impl ConfigSource for FileConfigSource {
contents,
recovered,
from_document: false,
+ document_version: None,
})
}
- async fn write(&self, toml_str: &str) -> Result<()> {
+ async fn write(&self, toml_str: &str, _expected: Option<tinystoragedrivers::Version>) -> Result<Option<tinystoragedrivers::Version>> {
let config_path = &self.path;
let parent_dir = config_path
.parent()
@@ -150,6 +151,6 @@ impl ConfigSource for FileConfigSource {
// left behind holding the whole config.
let _ = fs::remove_file(&temp_path).await;
}
- committed
+ committed.map(|()| None)
}
}