{"record":{"id":"af71accd5b0b7fa9","repo":"tinyhumansai/openhuman","slug":"brave-browser-was-not-found-tried-macos-app-names","errorCode":null,"errorMessage":"Brave Browser was not found (tried macOS app names 'Brave Browser' and 'Brave')","messagePattern":"Brave Browser was not found \\(tried macOS app names 'Brave Browser' and 'Brave'\\)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/openhuman/tools/impl/browser/browser_open.rs","lineNumber":126,"sourceCode":"\nasync fn open_in_brave(url: &str) -> anyhow::Result<()> {\n    match std::env::consts::OS {\n        \"macos\" => {\n            for app in [\"Brave Browser\", \"Brave\"] {\n                let status = tokio::process::Command::new(\"open\")\n                    .arg(\"-a\")\n                    .arg(app)\n                    .arg(url)\n                    .status()\n                    .await;\n\n                if let Ok(s) = status {\n                    if s.success() {\n                        return Ok(());\n                    }\n                }\n            }\n            anyhow::bail!(\n                \"Brave Browser was not found (tried macOS app names 'Brave Browser' and 'Brave')\"\n            );\n        }\n        \"linux\" => {\n            let mut last_error = String::new();\n            for cmd in [\"brave-browser\", \"brave\"] {\n                match tokio::process::Command::new(cmd).arg(url).status().await {\n                    Ok(status) if status.success() => return Ok(()),\n                    Ok(status) => {\n                        last_error = format!(\"{cmd} exited with status {status}\");\n                    }\n                    Err(e) => {\n                        last_error = format!(\"{cmd} not runnable: {e}\");\n                    }\n                }\n            }\n            anyhow::bail!(\"{last_error}\");\n        }","sourceCodeStart":108,"sourceCodeEnd":144,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/tools/impl/browser/browser_open.rs#L108-L144","documentation":"open_in_brave on macOS tried `open -a` with both 'Brave Browser' and 'Brave' app names and neither launch succeeded (app missing or `open` failed). The tool's sole transport is Brave, so it reports the absence instead of falling back to another browser.","triggerScenarios":"Thrown at src/openhuman/tools/impl/browser/browser_open.rs:126 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Install Brave Browser on macOS.","Verify Brave is in /Applications and launches normally.","Ensure the app name matches what `open -a` can resolve."],"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-14T00:17:10.932Z"}