Skip to content

Add dedicated storage for paginated thread history - #32234

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/d194310835f1df2a2a29c7827d77ca37eabbd0a3
Jul 10, 2026
Merged

Add dedicated storage for paginated thread history#32234
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/d194310835f1df2a2a29c7827d77ca37eabbd0a3

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 10, 2026

Copy link
Copy Markdown

Add dedicated storage for paginated thread history

Why

Paginated thread history needs its own SQLite database to avoid adding lock
contention to the main state store.

What changed

  • Add the thread_history_1.sqlite path and migration scaffolding.
  • Create tables and pagination indexes for projected turns and items, plus a
    per-thread projection checkpoint.
  • Register the database with runtime diagnostics, Bazel inputs, and database
    telemetry.

## Why

Paginated thread history needs its own SQLite database to avoid adding lock
contention to the main state store.

## What changed

- Add the `thread_history_1.sqlite` path and migration scaffolding.
- Create tables and pagination indexes for projected turns and items, plus a
  per-thread projection checkpoint.
- Register the database with runtime diagnostics, Bazel inputs, and database
  telemetry.

GitOrigin-RevId: d194310835f1df2a2a29c7827d77ca37eabbd0a3
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/d194310835f1df2a2a29c7827d77ca37eabbd0a3 branch from ab0a9f1 to 414217d Compare July 10, 2026 18:27
@copyberry
copyberry Bot merged commit 414217d into main Jul 10, 2026
14 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/d194310835f1df2a2a29c7827d77ca37eabbd0a3 branch July 10, 2026 18:29
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 10, 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.

10 participants