{"record":{"id":"9b015bb382b1b159","repo":"tinyhumansai/openhuman","slug":"unknown-mode-other-expected-simple-aggressive","errorCode":null,"errorMessage":"unknown mode '{other}', expected simple|aggressive","messagePattern":"unknown mode '(.+?)', expected simple\\|aggressive","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/core/subconscious_cli.rs","lineNumber":87,"sourceCode":"fn 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        }\n\n        // Ensure subconscious is enabled\n        if !config.heartbeat.enabled || !config.heartbeat.inference_enabled {\n            config.heartbeat.enabled = true;\n            config.heartbeat.inference_enabled = true;\n            if !config.heartbeat.subconscious_mode.is_enabled() {\n                config.heartbeat.subconscious_mode =\n                    crate::openhuman::config::schema::SubconsciousMode::Simple;\n            }\n        }\n","sourceCodeStart":69,"sourceCodeEnd":105,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/core/subconscious_cli.rs#L69-L105","documentation":"Enum validation of the --mode value in `subconscious tick`. After parsing, the mode string is matched against the config's subconscious_mode variants; only `simple` and `aggressive` exist. Any other value (case-sensitive, so `Simple` also fails) is rejected before the heartbeat config is mutated.","triggerScenarios":"Thrown at src/core/subconscious_cli.rs:87 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pass exactly `--mode simple` or `--mode aggressive` (lowercase).","Omit --mode to keep the currently configured mode.","Check for stray whitespace or capitalisation in the value."],"exampleFix":null,"handlingStrategy":"validation","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"}