mirror of
https://github.com/openai/codex.git
synced 2026-10-19 17:28:46 +00:00
## What changed Preserve the underlying error in `LocalStateDbStartupError` and use its error chain to decide whether CLI startup failures qualify for automatic database backup and recovery. Replace corruption checks against error-message text with SQLite result-code classification, including SQLx extended result codes and directly wrapped `SqliteError` values. ## Testing Update the embedded startup corruption test to verify that the startup error retains a detectable SQLite corruption cause and the failed database path. GitOrigin-RevId: 6e8ecd0ee67f3c239183ddea3fc75c4e4cd5744a