Skip to content

fix(desktop): reset incompatible operational state - #2122

Merged
jackwener merged 1 commit into
mainfrom
codex/reset-incompatible-sqlite
Aug 4, 2026
Merged

jackwener merged 1 commit into
mainfrom
codex/reset-incompatible-sqlite

Conversation

@jackwener

Copy link
Copy Markdown
Member

Summary

  • check the complete operational SQLite schema before Desktop opens any store
  • delete runtime.sqlite and its WAL/SHM sidecars when any schema version differs
  • rebuild operational state on both upgrades and downgrades instead of migrating
  • preserve settings, credentials, model connections, MCP configuration, and other file-backed configuration

Data behavior

An incompatible app version intentionally starts with empty conversations and operational history. This is the requested no-migration policy; compatible databases are left untouched.

Verification

  • schema 8 to 9 reset and rebuild
  • schema 10 to 9 reset and rebuild
  • current schema preservation
  • Desktop typecheck
  • Biome and diff checks

@jackwener
jackwener merged commit c50e182 into main Aug 4, 2026
9 checks passed
@jackwener
jackwener deleted the codex/reset-incompatible-sqlite branch August 4, 2026 09:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant