{"record":{"id":"8cf0aecba6812ef1","repo":"openai/codex","slug":"invalid-unix-timestamp-millis-millis","errorCode":null,"errorMessage":"invalid unix timestamp millis: {millis}","messagePattern":"invalid unix timestamp millis: (.+?)","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"codex-rs/state/src/runtime/thread_section_order.rs","lineNumber":40,"sourceCode":"            \"SELECT id, section_position, section_entered_at_ms FROM threads WHERE id IN (\",\n        );\n        let mut separated = builder.separated(\", \");\n        for thread_id in thread_ids {\n            separated.push_bind(thread_id.to_string());\n        }\n        separated.push_unseparated(\")\");\n\n        let rows = builder\n            .build_query_as::<(String, Option<i64>, Option<i64>)>()\n            .fetch_all(self.pool.as_ref())\n            .await?;\n        rows.into_iter()\n            .map(|(thread_id, section_position, section_entered_at_ms)| {\n                let thread_id = ThreadId::try_from(thread_id)?;\n                let section_entered_at = section_entered_at_ms\n                    .map(|millis| {\n                        DateTime::<Utc>::from_timestamp_millis(millis).ok_or_else(|| {\n                            anyhow::anyhow!(\"invalid unix timestamp millis: {millis}\")\n                        })\n                    })\n                    .transpose()?;\n                Ok((thread_id, (section_position, section_entered_at)))\n            })\n            .collect()\n    }\n\n    /// Read an independently persisted thread section by its opaque identifier.\n    pub async fn get_thread_section(\n        &self,\n        id: &str,\n    ) -> anyhow::Result<Option<crate::ThreadSection>> {\n        let row = sqlx::query_as::<_, (String, String, Option<String>)>(\n            \"SELECT id, name, appearance FROM thread_sections WHERE id = ?\",\n        )\n        .bind(id)\n        .fetch_optional(self.pool.as_ref())","sourceCodeStart":22,"sourceCodeEnd":58,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/state/src/runtime/thread_section_order.rs#L22-L58","documentation":"Error \"invalid unix timestamp millis: {millis}\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/state/src/runtime/thread_section_order.rs:40 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"}