Skip to content

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

fix(mcp): key the agent client table by the canonical folder

Steven Enamakelf55a3e098876
diff --git a/crates/openhuman-core/src/mcp/module_client/lifecycle.rs b/crates/openhuman-core/src/mcp/module_client/lifecycle.rs
index 494e2349e1..7c6261dc75 100644
--- a/crates/openhuman-core/src/mcp/module_client/lifecycle.rs
+++ b/crates/openhuman-core/src/mcp/module_client/lifecycle.rs
@@ -253,7 +253,10 @@ fn client_key(data_dir: &std::path::Path) -> PathBuf {
let mut ancestor = data_dir;
loop {
if let Ok(real) = ancestor.canonicalize() {
- return missing.iter().rev().fold(real, |path, part| path.join(part));
+ return missing
+ .iter()
+ .rev()
+ .fold(real, |path, part| path.join(part));
}
match (ancestor.parent(), ancestor.file_name()) {
(Some(parent), Some(name)) => {