tinyhumansai/openhuman · error

Brave Browser was not found (tried macOS app names 'Brave…

Error message

Brave Browser was not found (tried macOS app names 'Brave Browser' and 'Brave')

What it means

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.

Solutions

  1. Install Brave Browser on macOS.
  2. Verify Brave is in /Applications and launches normally.
  3. Ensure the app name matches what `open -a` can resolve.
Defensive patterns

Strategy: fallback

When it happens

Trigger: Thrown at src/openhuman/tools/impl/browser/browser_open.rs:126 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of tinyhumansai/openhuman@7491200858 (2026-08-17). Data as JSON: /api/errors/af71accd5b0b7fa9. Report an issue: GitHub.

Appendix: source

Thrown at src/openhuman/tools/impl/browser/browser_open.rs:126

async fn open_in_brave(url: &str) -> anyhow::Result<()> {
    match std::env::consts::OS {
        "macos" => {
            for app in ["Brave Browser", "Brave"] {
                let status = tokio::process::Command::new("open")
                    .arg("-a")
                    .arg(app)
                    .arg(url)
                    .status()
                    .await;

                if let Ok(s) = status {
                    if s.success() {
                        return Ok(());
                    }
                }
            }
            anyhow::bail!(
                "Brave Browser was not found (tried macOS app names 'Brave Browser' and 'Brave')"
            );
        }
        "linux" => {
            let mut last_error = String::new();
            for cmd in ["brave-browser", "brave"] {
                match tokio::process::Command::new(cmd).arg(url).status().await {
                    Ok(status) if status.success() => return Ok(()),
                    Ok(status) => {
                        last_error = format!("{cmd} exited with status {status}");
                    }
                    Err(e) => {
                        last_error = format!("{cmd} not runnable: {e}");
                    }
                }
            }
            anyhow::bail!("{last_error}");
        }

View on GitHub (pinned to 7491200858)