{"record":{"id":"b65e98c7ca820338","repo":"tinyhumansai/openhuman","slug":"cmd-start-brave-exited-with-status-status","errorCode":null,"errorMessage":"cmd start brave exited with status {status}","messagePattern":"cmd start brave exited with status (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/openhuman/tools/impl/browser/browser_open.rs","lineNumber":155,"sourceCode":"                    }\n                    Err(e) => {\n                        last_error = format!(\"{cmd} not runnable: {e}\");\n                    }\n                }\n            }\n            anyhow::bail!(\"{last_error}\");\n        }\n        \"windows\" => {\n            let status = tokio::process::Command::new(\"cmd\")\n                .args([\"/C\", \"start\", \"\", \"brave\", url])\n                .status()\n                .await?;\n\n            if status.success() {\n                return Ok(());\n            }\n\n            anyhow::bail!(\"cmd start brave exited with status {status}\");\n        }\n        _ => anyhow::bail!(\"browser_open is not supported on this OS\"),\n    }\n}\n\nfn normalize_allowed_domains(domains: Vec<String>) -> Vec<String> {\n    let mut normalized = domains\n        .into_iter()\n        .filter_map(|d| normalize_domain(&d))\n        .collect::<Vec<_>>();\n    normalized.sort_unstable();\n    normalized.dedup();\n    normalized\n}\n\nfn normalize_domain(raw: &str) -> Option<String> {\n    let mut d = raw.trim().to_lowercase();\n    if d.is_empty() {","sourceCodeStart":137,"sourceCodeEnd":173,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/tools/impl/browser/browser_open.rs#L137-L173","documentation":"On Windows, open_in_brave invokes `cmd /C start brave <url>`; when the command completes with a non-zero exit status the status is reported. This means Windows could not resolve or launch the 'brave' app registration.","triggerScenarios":"Thrown at src/openhuman/tools/impl/browser/browser_open.rs:155 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Install Brave Browser on Windows so the 'brave' app registration exists.","Check default-app/protocol registration for Brave."],"exampleFix":null,"handlingStrategy":"fallback","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-14T05:17:10.506Z"}