{"record":{"id":"5d4a4f80853f6af4","repo":"openai/codex","slug":"invalid-thread-store-request-message","errorCode":null,"errorMessage":"invalid thread-store request: {message}","messagePattern":"invalid thread-store request: (.+?)","errorType":"exception","errorClass":"ThreadStoreError","httpStatus":null,"severity":"error","filePath":"codex-rs/thread-store/src/error.rs","lineNumber":29,"sourceCode":"        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    },\n\n    /// The store implementation does not support this operation yet.\n    #[error(\"thread-store unsupported operation: {operation}\")]\n    Unsupported {\n        /// Stable operation name for callers that need to map unsupported operations.\n        operation: &'static str,\n    },","sourceCodeStart":11,"sourceCodeEnd":47,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/thread-store/src/error.rs#L11-L47","documentation":"ThreadStoreError::InvalidRequest: a generic sentinel variant used by thread-store implementations to reject caller-supplied request data that violates the API contract (bad enum combinations, malformed filters, out-of-range limits). The specific violation is carried in the message field; the faulty input is the request payload itself, not store state.","triggerScenarios":"Thrown at codex-rs/thread-store/src/error.rs:29 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Read the embedded message to identify which request field was rejected and fix the caller's payload","Validate request parameters against the app-server thread API schema before sending"],"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"}