{"record":{"id":"49e0643528e44dcd","repo":"openai/codex","slug":"context-source-49e064","errorCode":null,"errorMessage":"{context}: {source}","messagePattern":"\\{context\\}: \\{source\\}","errorType":"exception","errorClass":"IoError","httpStatus":null,"severity":"error","filePath":"codex-rs/apply-patch/src/lib.rs","lineNumber":136,"sourceCode":"    fn from(err: std::io::Error) -> Self {\n        ApplyPatchError::IoError(IoError {\n            context: \"I/O error\".to_string(),\n            source: err,\n        })\n    }\n}\n\nimpl From<&std::io::Error> for ApplyPatchError {\n    fn from(err: &std::io::Error) -> Self {\n        ApplyPatchError::IoError(IoError {\n            context: \"I/O error\".to_string(),\n            source: std::io::Error::new(err.kind(), err.to_string()),\n        })\n    }\n}\n\n#[derive(Debug, Error)]\n#[error(\"{context}: {source}\")]\npub struct IoError {\n    context: String,\n    #[source]\n    source: std::io::Error,\n}\n\nimpl PartialEq for IoError {\n    fn eq(&self, other: &Self) -> bool {\n        self.context == other.context && self.source.to_string() == other.source.to_string()\n    }\n}\n\n/// Both the raw PATCH argument to `apply_patch` as well as the PATCH argument\n/// parsed into hunks.\n#[derive(Debug, PartialEq)]\npub struct ApplyPatchArgs {\n    pub patch: String,\n    pub hunks: Vec<Hunk>,","sourceCodeStart":118,"sourceCodeEnd":154,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/apply-patch/src/lib.rs#L118-L154","documentation":"Error \"{context}: {source}\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/apply-patch/src/lib.rs:136 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"}