mirror of
https://github.com/openai/codex.git
synced 2026-10-18 17:18:52 +00:00
## Why A corrupt agent message-board database can block thread deletion even when the feature is disabled. ## What changed When corruption prevents opening the database for board deletion, back it up and recreate it before recording deletion tombstones. Recovery resets all boards, retaining their previous storage in the backup. Other database open failures continue to return an error without deleting the thread or replacing storage. ## Testing Add an app-server regression test with the feature disabled that verifies ordinary open failures preserve storage and the thread, while corruption recovery preserves the backup, deletes the requested thread, retains another thread, and records the board tombstone in the recreated database. GitOrigin-RevId: 85f7d6303ae5c359782018cad4a78461d86c43db