{"record":{"id":"3fd12f49f00d57e0","repo":"openai/codex","slug":"thread-thread-id-not-found","errorCode":null,"errorMessage":"thread {thread_id} not found","messagePattern":"thread (.+?) not found","errorType":"exception","errorClass":"ThreadStoreError","httpStatus":null,"severity":"error","filePath":"codex-rs/thread-store/src/error.rs","lineNumber":22,"sourceCode":"/// Result type returned by thread-store operations.\npub type ThreadStoreResult<T> = Result<T, ThreadStoreError>;\n\npub(crate) fn reject_paginated_history_mode(\n    history_mode: ThreadHistoryMode,\n) -> ThreadStoreResult<()> {\n    if matches!(history_mode, ThreadHistoryMode::Paginated) {\n        return Err(ThreadStoreError::Unsupported {\n            operation: \"paginated_threads\",\n        });\n    }\n    Ok(())\n}\n\n/// Error type shared by thread-store implementations.\n#[derive(Debug, thiserror::Error)]\npub enum ThreadStoreError {\n    /// The requested thread does not exist in this store.\n    #[error(\"thread {thread_id} not found\")]\n    ThreadNotFound {\n        /// Thread id requested by the caller.\n        thread_id: ThreadId,\n    },\n\n    /// The caller supplied invalid request data.\n    #[error(\"invalid thread-store request: {message}\")]\n    InvalidRequest {\n        /// User-facing explanation of the invalid request.\n        message: String,\n    },\n\n    /// The operation conflicted with current store state.\n    #[error(\"thread-store conflict: {message}\")]\n    Conflict {\n        /// User-facing explanation of the conflict.\n        message: String,\n    },","sourceCodeStart":4,"sourceCodeEnd":40,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/thread-store/src/error.rs#L4-L40","documentation":"Error \"thread {thread_id} not found\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/thread-store/src/error.rs:22 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"}