Skip to content

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

fix(modules): hand the memory module the host's config path

Shanuf628ab64a3d3
diff --git a/src/openhuman/modules/ops.rs b/src/openhuman/modules/ops.rs
index 3b23de1b4f..be363ca580 100644
--- a/src/openhuman/modules/ops.rs
+++ b/src/openhuman/modules/ops.rs
@@ -271,6 +271,11 @@ fn module_config(config: &Config, id: &str) -> serde_json::Value {
}
serde_json::json!({
"workspace_dir": config.workspace_dir,
+ // The registry file the host writes `[[memory_sources]]` into. The
+ // module used to derive `workspace_dir/config.toml`, a file that does
+ // not exist, and answered `NotFound` for every host-registered source
+ // on sync (openhuman#5820). Additive: an older module ignores it.
+ "config_path": config.config_path,
"memory": config.memory,
"memory_tree": config.memory_tree,
"scheduler_gate": config.scheduler_gate,