tinyhumansai/openhuman · error · anyhow::Error

config load failed: {e}

Error message

config load failed: {e}

What it means

Error "config load failed: {e}" thrown in tinyhumansai/openhuman.

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 a221052e0d)

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@a221052e0d (2026-08-16). Data as JSON: /api/errors/37e15d61f2c21412. Report an issue: GitHub.