{"record":{"id":"a50244a7191fb37a","repo":"openai/codex","slug":"message-a50244","errorCode":null,"errorMessage":"{message}","messagePattern":"\\{message\\}","errorType":"exception","errorClass":"ThreadConfigLoadError","httpStatus":null,"severity":"error","filePath":"codex-rs/config/src/thread_config.rs","lineNumber":55,"sourceCode":"/// A typed config payload paired with the authority that produced it.\n#[derive(Clone, Debug, PartialEq)]\npub enum ThreadConfigSource {\n    Session(SessionThreadConfig),\n    User(UserThreadConfig),\n}\n\n/// Stable category for failures returned while loading thread config.\n#[derive(Clone, Copy, Debug, Eq, PartialEq)]\npub enum ThreadConfigLoadErrorCode {\n    Auth,\n    Timeout,\n    Parse,\n    RequestFailed,\n    Internal,\n}\n\n#[derive(Clone, Debug, Eq, Error, PartialEq)]\n#[error(\"{message}\")]\npub struct ThreadConfigLoadError {\n    code: ThreadConfigLoadErrorCode,\n    message: String,\n    status_code: Option<u16>,\n}\n\nimpl ThreadConfigLoadError {\n    pub fn new(\n        code: ThreadConfigLoadErrorCode,\n        status_code: Option<u16>,\n        message: impl Into<String>,\n    ) -> Self {\n        Self {\n            code,\n            message: message.into(),\n            status_code,\n        }\n    }","sourceCodeStart":37,"sourceCodeEnd":73,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/config/src/thread_config.rs#L37-L73","documentation":"Error \"{message}\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/config/src/thread_config.rs:55 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Address the reported thread config validation message."],"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"}