nikivdev/code · error

run-agent bridge is unavailable; expected router at {}

Error message

run-agent bridge is unavailable; expected router at {}

What it means

Error "run-agent bridge is unavailable; expected router at {}" thrown in nikivdev/code.

Source

Thrown at src/ai.rs:4695

        Ok(output) => CodexRunAgentBridgeStatus {
            router_path: router_path_display,
            status: "error".to_string(),
            agent_count: 0,
            error: Some(command_output_error_detail(&output)),
        },
        Err(err) => CodexRunAgentBridgeStatus {
            router_path: router_path_display,
            status: "error".to_string(),
            agent_count: 0,
            error: Some(err.to_string()),
        },
    }
}

fn require_run_agent_router_path() -> Result<PathBuf> {
    let router_path = run_agent_router_path();
    if !router_path.is_file() {
        bail!(
            "run-agent bridge is unavailable; expected router at {}",
            router_path.display()
        );
    }
    Ok(router_path)
}

fn run_agent_router_list() -> Result<Vec<String>> {
    let router_path = require_run_agent_router_path()?;
    let output = Command::new("bash")
        .arg(&router_path)
        .arg("list")
        .output()
        .with_context(|| format!("failed to execute {}", router_path.display()))?;
    if !output.status.success() {
        bail!(
            "run-agent bridge list failed: {}",
            command_output_error_detail(&output)

View on GitHub (pinned to a747e741ae)

When it happens

Trigger: Thrown at src/ai.rs:4695 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of nikivdev/code@a747e741ae (2026-09-01). Data as JSON: /api/errors/5a5c56679ac3dee4. Report an issue: GitHub.