The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
docs(example): doctor runner must not use OPENHUMAN_WORKSPACE on a logged-in install
Shanue81f83e46ed8
diff --git a/examples/run_memory_doctor.rs b/examples/run_memory_doctor.rsindex 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(())