Skip to content

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

refactor(config): re-export config file read helpers from load module

Steven Enamakel226585df30cc
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 ec9be9f91e..c55453bb91 100644
--- a/crates/openhuman-core/src/config/schema/load/impl_load.rs
+++ b/crates/openhuman-core/src/config/schema/load/impl_load.rs
@@ -14,10 +14,10 @@ use super::secrets::{
};
use anyhow::{Context, Result};
use std::path::Path;
-use std::sync::{Mutex, OnceLock};
-use tokio::fs;
pub(super) use super::parse_source::parse_source_contents;
+pub(super) use super::config_file_read::read_config_with_recovery_or_default;
+pub(crate) use super::config_file_read::CONFIG_OWNER_MISMATCH_MARKER;
impl Config {
pub async fn load_or_init() -> Result<Self> {
diff --git a/crates/openhuman-core/src/config/schema/load/mod.rs b/crates/openhuman-core/src/config/schema/load/mod.rs
index 576d1e9395..49cb1c08cd 100644
--- a/crates/openhuman-core/src/config/schema/load/mod.rs
+++ b/crates/openhuman-core/src/config/schema/load/mod.rs
@@ -2,6 +2,7 @@
mod active_workspace;
mod branches;
+mod config_file_read;
mod dirs;
pub(in crate::config::schema) mod env;
mod env_overlay;