Skip to content

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

feat(embed): add no-op auto_migrate for builds without legacy-import

Steven Enamakelb8aef2373725
diff --git a/crates/openhuman-embed/src/host_internals.rs b/crates/openhuman-embed/src/host_internals.rs
index b84fc9839d..7e8ed18d33 100644
--- a/crates/openhuman-embed/src/host_internals.rs
+++ b/crates/openhuman-embed/src/host_internals.rs
@@ -512,6 +512,16 @@ pub mod storage {
pub mod layout {
#[cfg(feature = "legacy-import")]
pub use openhuman_core::storage::layout::auto_migrate;
+
+ /// Return `false` when legacy layout import is not part of this build.
+ ///
+ /// The RPC session-store host calls this before resolving its storage
+ /// URL. In builds without `legacy-import`, there is no layout migration
+ /// to run and the configured workspace remains unchanged.
+ #[cfg(not(feature = "legacy-import"))]
+ pub async fn auto_migrate(_config: &crate::core_host::config::Config) -> bool {
+ false
+ }
}
}