Skip to content

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

chore(config): add missing imports for config load helpers

Steven Enamakel12dc7373147a
diff --git a/crates/openhuman-core/src/config/schema/load/config_file_read.rs b/crates/openhuman-core/src/config/schema/load/config_file_read.rs
index 5fa4d02fb4..42d265d01d 100644
--- a/crates/openhuman-core/src/config/schema/load/config_file_read.rs
+++ b/crates/openhuman-core/src/config/schema/load/config_file_read.rs
@@ -1,9 +1,10 @@
-use anyhow::{Context, Result};
+use anyhow::Result;
use std::path::Path;
use std::sync::{Mutex, OnceLock};
use tokio::fs;
use super::super::Config;
+use super::branches::default_config_boxed;
/// Guards the "corrupted config read, resetting to defaults" warning so it
/// fires at most once per process lifetime. Without this, a permanently
diff --git a/crates/openhuman-core/src/config/schema/load/impl_load.rs b/crates/openhuman-core/src/config/schema/load/impl_load.rs
index e28f1bd7d1..2b36b1ff89 100644
--- a/crates/openhuman-core/src/config/schema/load/impl_load.rs
+++ b/crates/openhuman-core/src/config/schema/load/impl_load.rs
@@ -14,6 +14,7 @@ use super::secrets::{
};
use anyhow::{Context, Result};
use std::path::Path;
+use tokio::fs;
pub(crate) use super::config_file_read::parse_config_with_recovery;
pub(super) use super::config_file_read::read_config_with_recovery_or_default;