{"record":{"id":"b91855c46ba1084b","repo":"Hmbown/CodeWhale","slug":"unknown-bridge-slug","errorCode":null,"errorMessage":"unknown bridge '{slug}'. {}","messagePattern":"unknown bridge '(.+?)'\\. (.+?)","errorType":"validation","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"crates/tui/src/remote_setup/mod.rs","lineNumber":167,"sourceCode":"        bail!(\n            \"--cloud is required in --non-interactive mode. {}\",\n            cloud_choices()\n        );\n    }\n    let idx = prompt_choice(\n        \"Cloud target\",\n        &CLOUD_TARGETS\n            .iter()\n            .map(|c| format!(\"{} ({})\", c.display, c.slug))\n            .collect::<Vec<_>>(),\n    )?;\n    Ok(&CLOUD_TARGETS[idx])\n}\n\nfn resolve_bridge(args: &RemoteSetupArgs) -> Result<&'static BridgeSpec> {\n    if let Some(slug) = &args.bridge {\n        return registry::bridge_by_slug(slug)\n            .ok_or_else(|| anyhow::anyhow!(\"unknown bridge '{slug}'. {}\", bridge_choices()));\n    }\n    if args.non_interactive {\n        bail!(\n            \"--bridge is required in --non-interactive mode. {}\",\n            bridge_choices()\n        );\n    }\n    let idx = prompt_choice(\n        \"Chat bridge\",\n        &BRIDGES\n            .iter()\n            .map(|b| format!(\"{} ({})\", b.display, b.slug))\n            .collect::<Vec<_>>(),\n    )?;\n    Ok(&BRIDGES[idx])\n}\n\nfn resolve_provider(args: &RemoteSetupArgs) -> Result<ProviderInfo> {","sourceCodeStart":149,"sourceCodeEnd":185,"githubUrl":"https://github.com/Hmbown/CodeWhale/blob/0c42157ee52f9d55af2b506d71b46249910f77d3/crates/tui/src/remote_setup/mod.rs#L149-L185","documentation":"resolve_bridge received a --bridge slug not present in the BRIDGES registry; the message appends the valid bridge choices. Triggered by a typo'd or removed bridge slug.","triggerScenarios":"Thrown at crates/tui/src/remote_setup/mod.rs:167 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Re-run with one of the listed bridge slugs","Drop --bridge to select interactively"],"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"}