tinyhumansai/openhuman · error

browser_open is not supported on this OS

Error message

browser_open is not supported on this OS

What it means

open_in_brave's catch-all arm rejects any OS other than macOS, Linux, or Windows. browser_open implements launchers only for those three platforms, so on any other target the tool refuses at launch time.

Source

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

                        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() {
        return None;
    }

View on GitHub (pinned to 7491200858)

Solutions

  1. Use browser_open on a supported desktop OS.
  2. Open the URL manually on unsupported platforms.
Defensive patterns

Strategy: fallback

When it happens

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