Skip to content

fix(cli): classify SQLite table and schema locks#226

Open
andrei-hasna wants to merge 1 commit into
mainfrom
hotfix/sqlite-lock-classification
Open

fix(cli): classify SQLite table and schema locks#226
andrei-hasna wants to merge 1 commit into
mainfrom
hotfix/sqlite-lock-classification

Conversation

@andrei-hasna

@andrei-hasna andrei-hasna commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Why

SQLite can report ordinary contention as database table is locked or database schema is locked. Treating those known lock messages as possible corruption can enter the repair path and move database files while another process is merely holding a lock.

What

  • Classify the two exact SQLite table/schema lock phrases as lock contention.
  • Add assertions covering both message forms so they cannot regress into corruption recovery.

Tests

Local verification:

  • just test -p codex-cli (303 tests passed)

@andrei-hasna
andrei-hasna force-pushed the hotfix/sqlite-lock-classification branch from 30114e4 to 26bdf70 Compare July 14, 2026 23:51
@andrei-hasna
andrei-hasna force-pushed the hotfix/sqlite-lock-classification branch from 26bdf70 to ee18894 Compare July 15, 2026 08:13
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