nikivdev/code · error

run-agent bridge run failed: {}

Error message

run-agent bridge run failed: {}

What it means

Error "run-agent bridge run failed: {}" thrown in nikivdev/code.

Source

Thrown at src/ai.rs:4834

        .spawn()
        .with_context(|| format!("failed to launch run-agent bridge for `{agent_id}`"))?;
    {
        let stdin = child
            .stdin
            .as_mut()
            .context("run-agent bridge stdin was not available")?;
        stdin
            .write_all(&request_bytes)
            .context("failed to write run-agent request payload")?;
        stdin
            .write_all(b"\n")
            .context("failed to terminate run-agent request payload")?;
    }
    let output = child
        .wait_with_output()
        .context("failed to wait for run-agent bridge process")?;
    if !output.status.success() {
        bail!(
            "run-agent bridge run failed: {}",
            command_output_error_detail(&output)
        );
    }
    parse_run_agent_completed_event(&output.stdout)
}

fn record_run_agent_bridge_activity(
    agent_id: &str,
    target_path: &Path,
    repo_root: &Path,
    event: &CodexRunAgentCompletedEvent,
) {
    let mut activity_event = activity_log::ActivityEvent::done(
        "codex.agent.run",
        run_agent_bridge_completed_event_summary(event),
    );
    activity_event.route = Some(format!("agent.{agent_id}"));

View on GitHub (pinned to a747e741ae)

When it happens

Trigger: Thrown at src/ai.rs:4834 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/6f851b486c38e7ac. Report an issue: GitHub.