{"record":{"id":"6f851b486c38e7ac","repo":"nikivdev/code","slug":"run-agent-bridge-run-failed","errorCode":null,"errorMessage":"run-agent bridge run failed: {}","messagePattern":"run-agent bridge run failed: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/ai.rs","lineNumber":4834,"sourceCode":"        .spawn()\n        .with_context(|| format!(\"failed to launch run-agent bridge for `{agent_id}`\"))?;\n    {\n        let stdin = child\n            .stdin\n            .as_mut()\n            .context(\"run-agent bridge stdin was not available\")?;\n        stdin\n            .write_all(&request_bytes)\n            .context(\"failed to write run-agent request payload\")?;\n        stdin\n            .write_all(b\"\\n\")\n            .context(\"failed to terminate run-agent request payload\")?;\n    }\n    let output = child\n        .wait_with_output()\n        .context(\"failed to wait for run-agent bridge process\")?;\n    if !output.status.success() {\n        bail!(\n            \"run-agent bridge run failed: {}\",\n            command_output_error_detail(&output)\n        );\n    }\n    parse_run_agent_completed_event(&output.stdout)\n}\n\nfn record_run_agent_bridge_activity(\n    agent_id: &str,\n    target_path: &Path,\n    repo_root: &Path,\n    event: &CodexRunAgentCompletedEvent,\n) {\n    let mut activity_event = activity_log::ActivityEvent::done(\n        \"codex.agent.run\",\n        run_agent_bridge_completed_event_summary(event),\n    );\n    activity_event.route = Some(format!(\"agent.{agent_id}\"));","sourceCodeStart":4816,"sourceCodeEnd":4852,"githubUrl":"https://github.com/nikivdev/code/blob/a747e741ae92c09071d0ae946ab48488adcff1ce/src/ai.rs#L4816-L4852","documentation":"Error \"run-agent bridge run failed: {}\" thrown in nikivdev/code.","triggerScenarios":"Thrown at src/ai.rs:4834 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"}