{"record":{"id":"c94833f17034def1","repo":"openai/codex","slug":"reasoning-item-merge-attempted-with-different-encr","errorCode":null,"errorMessage":"reasoning item merge attempted with different encrypted_content identity","messagePattern":"reasoning item merge attempted with different encrypted_content identity","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"codex-rs/rollout-trace/src/reducer/conversation.rs","lineNumber":638,"sourceCode":"    let Some(left_encoded) = reasoning_encoded_part(left) else {\n        return false;\n    };\n    let Some(right_encoded) = reasoning_encoded_part(right) else {\n        return false;\n    };\n\n    left_encoded == right_encoded\n}\n\nfn merge_reasoning_body(\n    existing: &mut ConversationBody,\n    incoming: &ConversationBody,\n) -> Result<()> {\n    if conversation_body_matches(existing, incoming) {\n        return Ok(());\n    }\n    if !reasoning_body_matches(existing, incoming) {\n        bail!(\"reasoning item merge attempted with different encrypted_content identity\");\n    }\n\n    let existing_text_parts = reasoning_text_parts(existing);\n    let existing_summary_parts = reasoning_summary_parts(existing);\n    if !existing_text_parts.is_empty() && !existing_summary_parts.is_empty() {\n        return Ok(());\n    }\n\n    let incoming_text_parts = reasoning_text_parts(incoming);\n    let incoming_summary_parts = reasoning_summary_parts(incoming);\n\n    let text_parts = if !existing_text_parts.is_empty() {\n        existing_text_parts\n    } else {\n        incoming_text_parts\n    };\n\n    let summary_parts = if !existing_summary_parts.is_empty() {","sourceCodeStart":620,"sourceCodeEnd":656,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/rollout-trace/src/reducer/conversation.rs#L620-L656","documentation":"Error \"reasoning item merge attempted with different encrypted_content identity\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/rollout-trace/src/reducer/conversation.rs:638 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":"339751715c64496cb86246bfb3935f40e309dd3d","analyzedAt":"2026-08-25T05:35:09.876Z","schemaVersion":2},"datasetVersion":"2026-08-25T06:17:31.827Z"}