{"record":{"id":"8c4b46ea442774fb","repo":"openai/codex","slug":"failed-to-initialize-sqlite-local-db-at-detai","errorCode":null,"errorMessage":"failed to initialize sqlite local db at {}: {detail}","messagePattern":"failed to initialize sqlite local db at (.+?): (.+?)","errorType":"exception","errorClass":"LocalStateDbStartupError","httpStatus":null,"severity":"error","filePath":"codex-rs/tui/src/startup_error.rs","lineNumber":5,"sourceCode":"use std::path::Path;\nuse std::path::PathBuf;\n\n#[derive(Debug, thiserror::Error)]\n#[error(\n    \"failed to initialize sqlite local db at {}: {detail}\",\n    database_path.display()\n)]\npub struct LocalStateDbStartupError {\n    database_path: PathBuf,\n    detail: String,\n}\n\nimpl LocalStateDbStartupError {\n    pub fn new(database_path: PathBuf, detail: String) -> Self {\n        Self {\n            database_path,\n            detail,\n        }\n    }\n\n    pub fn database_path(&self) -> &Path {\n        self.database_path.as_path()","sourceCodeStart":1,"sourceCodeEnd":23,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/tui/src/startup_error.rs#L1-L23","documentation":"Error \"failed to initialize sqlite local db at {}: {detail}\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/tui/src/startup_error.rs:5 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"}