tinyhumansai/openhuman · error

cmd start brave exited with status {status}

Error message

cmd start brave exited with status {status}

What it means

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.

Source

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

                    }
                    Err(e) => {
                        last_error = format!("{cmd} not runnable: {e}");
                    }
                }
            }
            anyhow::bail!("{last_error}");
        }
        "windows" => {
            let status = tokio::process::Command::new("cmd")
                .args(["/C", "start", "", "brave", url])
                .status()
                .await?;

            if status.success() {
                return Ok(());
            }

            anyhow::bail!("cmd start brave exited with status {status}");
        }
        _ => anyhow::bail!("browser_open is not supported on this OS"),
    }
}

fn normalize_allowed_domains(domains: Vec<String>) -> Vec<String> {
    let mut normalized = domains
        .into_iter()
        .filter_map(|d| normalize_domain(&d))
        .collect::<Vec<_>>();
    normalized.sort_unstable();
    normalized.dedup();
    normalized
}

fn normalize_domain(raw: &str) -> Option<String> {
    let mut d = raw.trim().to_lowercase();
    if d.is_empty() {

View on GitHub (pinned to 7491200858)

Solutions

  1. Install Brave Browser on Windows so the 'brave' app registration exists.
  2. Check default-app/protocol registration for Brave.
Defensive patterns

Strategy: fallback

When it happens

Trigger: Thrown at src/openhuman/tools/impl/browser/browser_open.rs:155 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/b65e98c7ca820338. Report an issue: GitHub.