{"record":{"id":"abca6558b4638f80","repo":"tinyhumansai/openhuman","slug":"claude-code-claude-cli-at-is-version-re","errorCode":null,"errorMessage":"[claude-code] `claude` CLI at {} is version {}; require >= {}","messagePattern":"\\[claude-code\\] `claude` CLI at (.+?) is version (.+?); require >= (.+?)","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"src/openhuman/inference/provider/claude_code/mod.rs","lineNumber":146,"sourceCode":"                    PathBuf::from(path),\n                    workspace_dir,\n                    project_dir,\n                    key,\n                ))\n            }\n            types::CliStatus::NotInstalled => {\n                anyhow::bail!(\n                    \"[claude-code] `claude` CLI not installed. Install Claude Code CLI \\\n                     ({}) >= {} and retry.\",\n                    \"https://docs.anthropic.com/en/docs/claude-code\",\n                    types::MIN_CLI_VERSION\n                )\n            }\n            types::CliStatus::Outdated {\n                version,\n                min_required,\n                path,\n            } => anyhow::bail!(\n                \"[claude-code] `claude` CLI at {} is version {}; require >= {}\",\n                path,\n                version,\n                min_required\n            ),\n            types::CliStatus::Unusable { path, reason } => anyhow::bail!(\n                \"[claude-code] `claude` CLI at {} unusable: {}\",\n                path,\n                reason\n            ),\n        }\n    }\n\n    async fn run_chat(\n        &self,\n        request: ChatRequest<'_>,\n        model_override: Option<&str>,\n    ) -> anyhow::Result<ChatResponse> {","sourceCodeStart":128,"sourceCodeEnd":164,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/inference/provider/claude_code/mod.rs#L128-L164","documentation":"`version_check::probe()` found a `claude` executable but its reported version is older than `MIN_CLI_VERSION` required by this provider (the `CliStatus::Outdated` arm). The installed path and both version numbers are included. Old CLI builds lack flags/stream shapes the driver depends on, so construction refuses instead of failing obscurely mid-turn.","triggerScenarios":"Constructing the claude-code provider with a `claude` on PATH whose `--version` output parses below `types::MIN_CLI_VERSION` — e.g. a distro-pinned or long-unupdated npm install.","commonSituations":"npm global install updated rarely; a system-managed Node with an old cached CLI; CI images caching an outdated CLI layer; users who installed the CLI months ago and never updated.","solutions":["Update the CLI at the path shown in the message: `npm update -g @anthropic-ai/claude-code` (or `claude update` if the native updater is available).","Verify `claude --version` reports >= the `min_required` value from the message.","If multiple CLIs exist, remove stale ones so PATH resolves the updated binary (check `which -a claude`).","Retry the request after the update; no core restart is needed beyond provider reconstruction."],"exampleFix":"# shell\nnpm update -g @anthropic-ai/claude-code\nclaude --version   # compare against min_required in the error","handlingStrategy":"validation","validationCode":"if let types::CliStatus::Outdated { version, min_required, .. } = version_check::probe() {\n    prompt_upgrade(&version, &min_required); // block provider selection until fixed\n}","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Keep the CLI on auto-update or update it in your regular maintenance window.","Assert CLI version >= MIN_CLI_VERSION in environment health checks.","Watch the claude-code changelog for flag changes that force MIN_CLI_VERSION bumps."],"tags":["claude-code","version-mismatch","cli","upgrade"],"backgroundTag":"cli-version-unsupported","analyzedSha":"749120085864ce16e0f273c7b86fac7740b39c5b","analyzedAt":"2026-08-17T21:21:45.363Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}