{"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":"ThreadStoreError::ThreadNotFound: the thread-store operation targeted a thread id that has no record in this store. It is the typed store-level signal (used by both in-memory and persistent implementations) that the requested ThreadId does not exist.","triggerScenarios":"Thrown at codex-rs/thread-store/src/error.rs:22 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the thread id (list threads) and correct any transcription or stale-cache error","Create/start the thread before issuing operations against it","If the store was reset or points at a different database, reconnect to the store that actually holds the thread"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"339751715c64496cb86246bfb3935f40e309dd3d","analyzedAt":"2026-08-25T05:35:09.876Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}