Skip to content

Materialize paginated thread history in SQLite - #32923

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/34533185ece7f1f5690004c7f12b0f1f34dc2640
Jul 14, 2026
Merged

Materialize paginated thread history in SQLite#32923
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/34533185ece7f1f5690004c7f12b0f1f34dc2640

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 14, 2026

Copy link
Copy Markdown

Materialize paginated thread history in SQLite

What changed

  • Project durable paginated rollout records into rebuildable SQLite tables for turns, items, and projection progress while keeping JSONL as the source of truth.
  • Add cursor-based local reads for turn summaries and thread or per-turn items, including archived-thread and history-mode validation.
  • Serialize writes, shutdown, and deletion per thread so projection updates cannot race cleanup, and remove projected rows when a thread is deleted.
  • Preserve stable item ordering while updating repeated snapshots and expose structured turn error details.

Testing

  • Cover projection, snapshot updates, summary recovery, pagination, failure handling, shutdown flushing, legacy-mode rejection, and deletion races.

## What changed

- Project durable paginated rollout records into rebuildable SQLite tables for turns, items, and projection progress while keeping JSONL as the source of truth.
- Add cursor-based local reads for turn summaries and thread or per-turn items, including archived-thread and history-mode validation.
- Serialize writes, shutdown, and deletion per thread so projection updates cannot race cleanup, and remove projected rows when a thread is deleted.
- Preserve stable item ordering while updating repeated snapshots and expose structured turn error details.

## Testing

- Cover projection, snapshot updates, summary recovery, pagination, failure handling, shutdown flushing, legacy-mode rejection, and deletion races.

GitOrigin-RevId: 34533185ece7f1f5690004c7f12b0f1f34dc2640
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/34533185ece7f1f5690004c7f12b0f1f34dc2640 branch from 755b48e to 0ef9fa4 Compare July 14, 2026 02:01
@copyberry
copyberry Bot merged commit 0ef9fa4 into main Jul 14, 2026
14 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/34533185ece7f1f5690004c7f12b0f1f34dc2640 branch July 14, 2026 02:02
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 14, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants