Skip to content

fix: prevent advanced SQLite structure table conflicts - #4454

Merged
seratch merged 1 commit into
mainfrom
fix/advanced-sqlite-structure-table-ownership
Aug 16, 2026
Merged

seratch merged 1 commit into
mainfrom
fix/advanced-sqlite-structure-table-ownership

Conversation

@seratch

@seratch seratch commented Aug 16, 2026

Copy link
Copy Markdown
Member

This pull request supersedes #4441 and fixes AdvancedSQLiteSession databases that reuse fixed structure tables across different custom base-table pairs.

It establishes one durable owner from exact foreign-key signatures, validates ownership in both create_tables modes using SQLite identifier semantics, and serializes first claims so concurrent constructors cannot split ownership.

SDK-created same-pair databases remain supported. Uninitialized, ambiguous, or mismatched ownership is rejected during construction, and different base-table pairs must use separate database files.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 85af9b35e6

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@seratch
seratch force-pushed the fix/advanced-sqlite-structure-table-ownership branch from 85af9b3 to 86a1713 Compare August 16, 2026 02:03
@seratch
seratch merged commit 2588d15 into main Aug 16, 2026
14 checks passed
@seratch
seratch deleted the fix/advanced-sqlite-structure-table-ownership branch August 16, 2026 02:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant