{"record":{"id":"5a5c56679ac3dee4","repo":"nikivdev/code","slug":"run-agent-bridge-is-unavailable-expected-router-a","errorCode":null,"errorMessage":"run-agent bridge is unavailable; expected router at {}","messagePattern":"run-agent bridge is unavailable; expected router at (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/ai.rs","lineNumber":4695,"sourceCode":"        Ok(output) => CodexRunAgentBridgeStatus {\n            router_path: router_path_display,\n            status: \"error\".to_string(),\n            agent_count: 0,\n            error: Some(command_output_error_detail(&output)),\n        },\n        Err(err) => CodexRunAgentBridgeStatus {\n            router_path: router_path_display,\n            status: \"error\".to_string(),\n            agent_count: 0,\n            error: Some(err.to_string()),\n        },\n    }\n}\n\nfn require_run_agent_router_path() -> Result<PathBuf> {\n    let router_path = run_agent_router_path();\n    if !router_path.is_file() {\n        bail!(\n            \"run-agent bridge is unavailable; expected router at {}\",\n            router_path.display()\n        );\n    }\n    Ok(router_path)\n}\n\nfn run_agent_router_list() -> Result<Vec<String>> {\n    let router_path = require_run_agent_router_path()?;\n    let output = Command::new(\"bash\")\n        .arg(&router_path)\n        .arg(\"list\")\n        .output()\n        .with_context(|| format!(\"failed to execute {}\", router_path.display()))?;\n    if !output.status.success() {\n        bail!(\n            \"run-agent bridge list failed: {}\",\n            command_output_error_detail(&output)","sourceCodeStart":4677,"sourceCodeEnd":4713,"githubUrl":"https://github.com/nikivdev/code/blob/a747e741ae92c09071d0ae946ab48488adcff1ce/src/ai.rs#L4677-L4713","documentation":"Error \"run-agent bridge is unavailable; expected router at {}\" thrown in nikivdev/code.","triggerScenarios":"Thrown at src/ai.rs:4695 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a747e741ae92c09071d0ae946ab48488adcff1ce","analyzedAt":"2026-09-01T22:43:55.719Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}