tinyhumansai/openhuman · error
config load failed
Error message
config load failed: {e} What it means
Error-context wrapper around `Config::load_or_init()` inside the `subconscious tick` async block. Any failure loading or initialising the TOML config (unreadable file, malformed TOML, migration failure) is re-wrapped with this prefix so the CLI reports the stage that failed, with the underlying error appended as {e}.
Solutions
- Inspect the wrapped cause after `config load failed:` — it names the actual load error.
- Check the config TOML for syntax errors or an unreadable workspace path.
- Use --workspace to point at a valid directory, or move/repair the corrupted config file and retry.
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at src/core/subconscious_cli.rs:76 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of tinyhumansai/openhuman@7491200858 (2026-08-17).
Data as JSON: /api/errors/37e15d61f2c21412.
Report an issue: GitHub.
Appendix: source
Thrown at src/core/subconscious_cli.rs:76
}
other => return Err(anyhow!("unknown flag '{other}'")),
}
}
Ok(TickFlags {
workspace,
mode,
verbose,
})
}
fn run_tick(args: &[String]) -> Result<()> {
let flags = parse_tick_flags(args)?;
let rt = tokio::runtime::Runtime::new()?;
rt.block_on(async {
let mut config = crate::openhuman::config::Config::load_or_init()
.await
.map_err(|e| anyhow!("config load failed: {e}"))?;
if let Some(ws) = &flags.workspace {
config.workspace_dir = ws.clone();
}
if let Some(mode_str) = &flags.mode {
config.heartbeat.subconscious_mode = match mode_str.as_str() {
"simple" => crate::openhuman::config::schema::SubconsciousMode::Simple,
"aggressive" => crate::openhuman::config::schema::SubconsciousMode::Aggressive,
other => {
return Err(anyhow!(
"unknown mode '{other}', expected simple|aggressive"
))
}
};
config.heartbeat.enabled = true;
config.heartbeat.inference_enabled = true;
}View on GitHub (pinned to 7491200858)