Skip to content

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

docs(example): doctor runner must not use OPENHUMAN_WORKSPACE on a logged-in install\n\nField-tested the trap: with the env var pointed at users/<id>/workspace the\nloader synthesizes users/<id>/.openhuman/config.toml -- nonexistent -- and\nthe doctor reports a default, unconfigured profile with no hint anything\nwas wrong (#5356's wrong-dir shape). Without the override the active-user\nmarker resolves the same config the app reads. The runner now prints the\nloaded config_path and provider to stderr so a wrong verdict shows up as a\nwrong path.\n

Shanu1fa050a3138f
diff --git a/examples/run_memory_doctor.rs b/examples/run_memory_doctor.rs
index 66943d60ad..c83bbd764b 100644
--- a/examples/run_memory_doctor.rs
+++ b/examples/run_memory_doctor.rs
@@ -1,5 +1,14 @@
-//! One-shot memory doctor over a real workspace, for operator use:
-//! OPENHUMAN_WORKSPACE=<workspace> cargo run --example run_memory_doctor
+//! One-shot memory doctor over the active user's real workspace:
+//!
+//! cargo run --example run_memory_doctor
+//!
+//! Run it with NO `OPENHUMAN_WORKSPACE` override for a logged-in install —
+//! the loader then resolves the active-user marker exactly like the app and
+//! reads `users/<id>/config.toml`. Pointing the env var at a user-scoped
+//! workspace instead synthesizes `users/<id>/.openhuman/config.toml`, which
+//! does not exist, and the doctor silently reports a default (unconfigured)
+//! config. The stderr probe line prints which config actually loaded so a
+//! wrong verdict is visible as a wrong path.
#[tokio::main(flavor = "multi_thread")]
async fn main() -> anyhow::Result<()> {
@@ -14,6 +23,13 @@ async fn main() -> anyhow::Result<()> {
config.clone(),
));
+ eprintln!(
+ "config_path={} embeddings_provider={:?} embedding_endpoint={:?}",
+ config.config_path.display(),
+ config.embeddings_provider,
+ config.memory_tree.embedding_endpoint,
+ );
+
let report = openhuman_core::openhuman::memory::tree::health::report::run_doctor(&config).await;
println!("{}", serde_json::to_string_pretty(&report)?);
Ok(())