{"record":{"id":"56b4c53848927880","repo":"Hmbown/CodeWhale","slug":"failed-to-resolve-runtime-thread-route-reason","errorCode":null,"errorMessage":"Failed to resolve runtime thread route: {reason}","messagePattern":"Failed to resolve runtime thread route: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/tui/src/runtime_threads.rs","lineNumber":2363,"sourceCode":"    let bucket = buckets.entry(key.clone()).or_insert_with(|| UsageBucket {\n        key,\n        ..UsageBucket::default()\n    });\n    bucket.dropped_usage_records = bucket.dropped_usage_records.saturating_add(dropped);\n    bucket.unpriced_turns = bucket.unpriced_turns.saturating_add(dropped);\n    bucket.turns = bucket.turns.saturating_add(dropped);\n    bucket\n        .unpriced_reasons\n        .insert(\"runtime_usage_journal_truncated\".to_string());\n}\n\nfn resolve_runtime_thread_route(\n    config: &Config,\n    provider: ApiProvider,\n    model_selector: Option<&str>,\n) -> Result<ResolvedRuntimeRoute> {\n    resolve_runtime_route(config, provider, model_selector)\n        .map_err(|reason| anyhow!(\"Failed to resolve runtime thread route: {reason}\"))\n}\n\nfn resolve_runtime_thread_route_for_identity(\n    config: &Config,\n    identity: &ProviderIdentity,\n    model_selector: Option<&str>,\n) -> Result<ResolvedRuntimeRoute> {\n    resolve_runtime_route_for_identity(config, identity, model_selector)\n        .map_err(|reason| anyhow!(\"Failed to resolve runtime thread route: {reason}\"))\n}\n\nfn runtime_compaction_config(\n    provider: ApiProvider,\n    model: &str,\n    route_limits: Option<codewhale_config::route::RouteLimits>,\n    auto_compact: bool,\n    auto_compact_explicit: bool,\n    threshold_percent: f64,","sourceCodeStart":2345,"sourceCodeEnd":2381,"githubUrl":"https://github.com/Hmbown/CodeWhale/blob/0c42157ee52f9d55af2b506d71b46249910f77d3/crates/tui/src/runtime_threads.rs#L2345-L2381","documentation":"Route resolution for a runtime thread failed while mapping the configured provider and optional model selector to a concrete provider/model route; {reason} names the specific config problem (unknown provider, model, or route).","triggerScenarios":"Thrown at crates/tui/src/runtime_threads.rs:2363 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Read {reason} and correct the corresponding config entry (provider, model, or route)","Verify the provider is configured and the model id is spelled correctly","Retry after fixing the route configuration"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"0c42157ee52f9d55af2b506d71b46249910f77d3","analyzedAt":"2026-08-20T21:50:45.477Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}