{"record":{"id":"709076bebb611875","repo":"tinyhumansai/openhuman","slug":"claude-cli-execution-failed-binary-status","errorCode":null,"errorMessage":"claude CLI execution failed (binary='{}', status={}). {}","messagePattern":"claude CLI execution failed \\(binary='(.+?)', status=(.+?)\\)\\. (.+?)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/openhuman/platform/doctor/core.rs","lineNumber":1050,"sourceCode":"            items.push(DiagnosticItem::ok(\n                \"claude_agent_sdk\",\n                format!(\"claude CLI found (binary='{}'): {version}\", sdk.binary),\n            ));\n            tracing::debug!(\n                \"probe:claude_agent_sdk:exit binary={} result=ok\",\n                sdk.binary\n            );\n        }\n        Ok(output) => {\n            let stderr = String::from_utf8_lossy(&output.stderr);\n            let preview = stderr.lines().next().unwrap_or(\"(no stderr)\");\n            tracing::warn!(\n                \"probe:claude_agent_sdk:warn binary={} status={:?} stderr={}\",\n                sdk.binary,\n                output.status,\n                truncate_for_display(preview, COMMAND_VERSION_PREVIEW_CHARS)\n            );\n            items.push(DiagnosticItem::warn(\n                \"claude_agent_sdk\",\n                format!(\n                    \"claude CLI execution failed (binary='{}', status={}). {}\",\n                    sdk.binary,\n                    output.status,\n                    truncate_for_display(preview, COMMAND_VERSION_PREVIEW_CHARS)\n                ),\n            ));\n            tracing::debug!(\n                \"probe:claude_agent_sdk:exit binary={} result=warn\",\n                sdk.binary\n            );\n        }\n        Err(err) => {\n            tracing::warn!(\n                \"probe:claude_agent_sdk:warn binary={} err={}\",\n                sdk.binary,\n                err","sourceCodeStart":1032,"sourceCodeEnd":1068,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/platform/doctor/core.rs#L1032-L1068","documentation":"Doctor claude_agent_sdk probe: the configured claude CLI binary was found and executed, but the version invocation exited non-zero. The message shows the binary path, exit status, and a truncated first stderr line. This is distinct from \"not found\" — the binary exists but errors on invocation, common when the CLI needs auth/login, an update broke it, or the wrong binary shadows the real CLI.","triggerScenarios":"Thrown at src/openhuman/platform/doctor/core.rs:1050 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Run the shown binary with --version manually and read the stderr preview","Re-run the CLI's login flow if it complains about authentication","Reinstall the Claude Code CLI or fix claude_agent_sdk.binary in config to point at a working binary"],"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"}