{"record":{"id":"e341b28ea1daa914","repo":"tinyhumansai/openhuman","slug":"provider-unavailable-reason","errorCode":null,"errorMessage":"provider unavailable: {reason}","messagePattern":"provider unavailable: (.+?)","errorType":"error_code","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/core/subconscious_cli.rs","lineNumber":147,"sourceCode":"                eprintln!(\"[subconscious] session token found — provider available\");\n            }\n            Ok(None) => {\n                eprintln!(\"[subconscious] WARNING: no session token — cloud provider will fail\");\n                eprintln!(\"  hint: run `openhuman call auth store_session --token <JWT>` first\");\n            }\n            Err(e) => {\n                eprintln!(\"[subconscious] WARNING: session token read failed: {e}\");\n            }\n        }\n\n        // Check provider availability\n        if let Some(reason) =\n            crate::openhuman::subconscious::provider::subconscious_provider_unavailable_reason(\n                &config,\n            )\n        {\n            eprintln!(\"[subconscious] provider unavailable: {reason}\");\n            return Err(anyhow!(\"provider unavailable: {reason}\"));\n        }\n\n        // Create engine and run tick. The engine pulls its own memory_diff /\n        // context state from the workspace — no memory client to pass in.\n        let engine = crate::openhuman::subconscious::memory_instance(&config);\n\n        eprintln!(\"[subconscious] running tick...\");\n        let result = engine\n            .tick()\n            .await\n            .map_err(|e| anyhow!(\"tick failed: {e}\"))?;\n\n        eprintln!(\n            \"[subconscious] tick complete: duration={}ms response_chars={}\",\n            result.duration_ms, result.response_chars,\n        );\n\n        if flags.verbose {","sourceCodeStart":129,"sourceCodeEnd":165,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/core/subconscious_cli.rs#L129-L165","documentation":"Pre-flight provider check in `subconscious tick`. Before running, `subconscious_provider_unavailable_reason(&config)` is consulted; if the configured inference provider cannot run (e.g. no session token for the cloud provider, as warned earlier in the flow), the tick is refused with the reason echoed both to stderr and as this error. The tick intentionally does not proceed in a degraded state.","triggerScenarios":"Thrown at src/core/subconscious_cli.rs:147 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Read the {reason} in the message — it names the specific provider gap.","If the reason is a missing session token, run `openhuman call auth store_session --token <JWT>` first.","Switch to a locally configured provider, or re-run once credentials/provider setup are in place."],"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"}