{"record":{"id":"37e15d61f2c21412","repo":"tinyhumansai/openhuman","slug":"config-load-failed-e","errorCode":null,"errorMessage":"config load failed: {e}","messagePattern":"config load failed: (.+?)","errorType":"error_code","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/core/subconscious_cli.rs","lineNumber":76,"sourceCode":"            }\n            other => return Err(anyhow!(\"unknown flag '{other}'\")),\n        }\n    }\n    Ok(TickFlags {\n        workspace,\n        mode,\n        verbose,\n    })\n}\n\nfn run_tick(args: &[String]) -> Result<()> {\n    let flags = parse_tick_flags(args)?;\n\n    let rt = tokio::runtime::Runtime::new()?;\n    rt.block_on(async {\n        let mut config = crate::openhuman::config::Config::load_or_init()\n            .await\n            .map_err(|e| anyhow!(\"config load failed: {e}\"))?;\n\n        if let Some(ws) = &flags.workspace {\n            config.workspace_dir = ws.clone();\n        }\n\n        if let Some(mode_str) = &flags.mode {\n            config.heartbeat.subconscious_mode = match mode_str.as_str() {\n                \"simple\" => crate::openhuman::config::schema::SubconsciousMode::Simple,\n                \"aggressive\" => crate::openhuman::config::schema::SubconsciousMode::Aggressive,\n                other => {\n                    return Err(anyhow!(\n                        \"unknown mode '{other}', expected simple|aggressive\"\n                    ))\n                }\n            };\n            config.heartbeat.enabled = true;\n            config.heartbeat.inference_enabled = true;\n        }","sourceCodeStart":58,"sourceCodeEnd":94,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/core/subconscious_cli.rs#L58-L94","documentation":"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}.","triggerScenarios":"Thrown at src/core/subconscious_cli.rs:76 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","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."],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"749120085864ce16e0f273c7b86fac7740b39c5b","analyzedAt":"2026-08-17T21:21:45.363Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}