{"record":{"id":"cd7fd2bdaf42c7a5","repo":"tinyhumansai/openhuman","slug":"cmd-not-available-preview","errorCode":null,"errorMessage":"{cmd} not available ({preview})","messagePattern":"(.+?) not available \\((.+?)\\)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/openhuman/platform/doctor/core.rs","lineNumber":769,"sourceCode":"        use std::os::windows::process::CommandExt;\n        child_cmd.creation_flags(0x0800_0000); // CREATE_NO_WINDOW\n    }\n    match child_cmd.output() {\n        Ok(output) if output.status.success() => {\n            let version = String::from_utf8_lossy(&output.stdout)\n                .lines()\n                .next()\n                .unwrap_or(\"(unknown)\")\n                .to_string();\n            items.push(DiagnosticItem::ok(cat, format!(\"{cmd}: {version}\")));\n        }\n        Ok(output) => {\n            let preview = String::from_utf8_lossy(&output.stderr)\n                .lines()\n                .next()\n                .unwrap_or(\"(failed)\")\n                .to_string();\n            items.push(DiagnosticItem::warn(\n                cat,\n                format!(\"{cmd} not available ({preview})\"),\n            ));\n        }\n        Err(err) => {\n            items.push(DiagnosticItem::warn(\n                cat,\n                format!(\"{cmd} not available ({err})\"),\n            ));\n        }\n    }\n}\n\n// ── Memory-tree DB health ────────────────────────────────────────\n\n/// Probe the memory-tree SQLite database and push a [`DiagnosticItem`].\n///\n/// - If the DB directory / file does not exist yet: `Warn` (not yet created).","sourceCodeStart":751,"sourceCodeEnd":787,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/platform/doctor/core.rs#L751-L787","documentation":"Doctor environment check: an external command probe (git, etc.) launched with its version flag exited non-zero or could not run, so `check_command_available` reports the command as unavailable and shows the first stderr line as a preview. It does not necessarily mean the binary is absent — a present-but-broken binary (wrong arch, missing runtime libs, permission bits) lands in this same arm.","triggerScenarios":"Thrown at src/openhuman/platform/doctor/core.rs:769 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Run the shown command manually (e.g. `git --version`) and read the stderr preview","Reinstall the tool or fix PATH so the correct binary resolves","On macOS verify the binary matches the CPU arch (file $(which <cmd>))"],"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-14T00:17:10.932Z"}