{"record":{"id":"188a37ee8a547e44","repo":"tinyhumansai/openhuman","slug":"sentry-test-unavailable-built-without-the-crash-r","errorCode":null,"errorMessage":"sentry-test unavailable: built without the crash-reporting feature — rebuild with `--features crash-reporting`","messagePattern":"sentry-test unavailable: built without the crash-reporting feature — rebuild with `--features crash-reporting`","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"src/core/cli.rs","lineNumber":322,"sourceCode":"\n    println!(\"{event_id}\");\n\n    if do_panic {\n        eprintln!(\n            \"[sentry-test] Triggering panic as requested — the panic integration should capture it.\"\n        );\n        panic!(\"openhuman sentry-test intentional panic\");\n    }\n\n    Ok(())\n}\n\n/// Disabled-build stand-in for [`run_sentry_test_command`]. Same signature as\n/// the `crash-reporting` version; reports that the probe is unavailable in a\n/// build compiled without the feature rather than pretending to succeed.\n#[cfg(not(feature = \"crash-reporting\"))]\nfn run_sentry_test_command(_args: &[String]) -> Result<()> {\n    Err(anyhow::anyhow!(\n        \"sentry-test unavailable: built without the crash-reporting feature — \\\n         rebuild with `--features crash-reporting`\"\n    ))\n}\n\n/// Loads key/value pairs from a `.env` file into the process environment.\n///\n/// This is used for all CLI entrypoints so direct namespace commands pick up\n/// the same repo-local configuration as `run` / `serve`.\n///\n/// Precedence:\n/// 1. Variables already set in the process environment are **not** overwritten.\n/// 2. If `OPENHUMAN_DOTENV_PATH` is set, that file is loaded.\n/// 3. Otherwise, it searches for `.env` in the current working directory.\npub(crate) fn load_dotenv_for_cli() -> Result<()> {\n    match std::env::var(\"OPENHUMAN_DOTENV_PATH\") {\n        Ok(path) if !path.trim().is_empty() => {\n            dotenvy::from_path(&path).map_err(|e| {","sourceCodeStart":304,"sourceCodeEnd":340,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/core/cli.rs#L304-L340","documentation":"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.","triggerScenarios":"Thrown at src/core/cli.rs:322 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","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)"],"exampleFix":null,"handlingStrategy":"validation","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-23T08:17:48.524Z"}