tinyhumansai/openhuman · error · anyhow::Error
sentry-test unavailable: built without the crash-reporting…
Error message
sentry-test unavailable: built without the crash-reporting feature — rebuild with `--features crash-reporting`
What it means
Disabled-build stand-in for `run_sentry_test_command` (compiled under `#[cfg(not(feature = "crash-reporting"))]`): the binary was built without the crash-reporting feature, so the sentry-test probe refuses to run rather than pretending to succeed. Mirrors the `mcp` CLI precedent of reporting a build fact instead of a bogus unknown-command error.
Solutions
- Rebuild the core with `--features crash-reporting`
- Use a binary that was compiled with the product feature set (the shipped desktop core includes it)
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/core/cli.rs:322 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/188a37ee8a547e44.
Report an issue: GitHub.
Appendix: source
Thrown at src/core/cli.rs:322
println!("{event_id}");
if do_panic {
eprintln!(
"[sentry-test] Triggering panic as requested — the panic integration should capture it."
);
panic!("openhuman sentry-test intentional panic");
}
Ok(())
}
/// Disabled-build stand-in for [`run_sentry_test_command`]. Same signature as
/// the `crash-reporting` version; reports that the probe is unavailable in a
/// build compiled without the feature rather than pretending to succeed.
#[cfg(not(feature = "crash-reporting"))]
fn run_sentry_test_command(_args: &[String]) -> Result<()> {
Err(anyhow::anyhow!(
"sentry-test unavailable: built without the crash-reporting feature — \
rebuild with `--features crash-reporting`"
))
}
/// Loads key/value pairs from a `.env` file into the process environment.
///
/// This is used for all CLI entrypoints so direct namespace commands pick up
/// the same repo-local configuration as `run` / `serve`.
///
/// Precedence:
/// 1. Variables already set in the process environment are **not** overwritten.
/// 2. If `OPENHUMAN_DOTENV_PATH` is set, that file is loaded.
/// 3. Otherwise, it searches for `.env` in the current working directory.
pub(crate) fn load_dotenv_for_cli() -> Result<()> {
match std::env::var("OPENHUMAN_DOTENV_PATH") {
Ok(path) if !path.trim().is_empty() => {
dotenvy::from_path(&path).map_err(|e| {View on GitHub (pinned to 7491200858)