Skip to content

Support incremental replay of updated thread items#35013

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

Support incremental replay of updated thread items#35013
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/d57de849abec27f788e9c384dbff073a0aca1053

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 23, 2026

Copy link
Copy Markdown

Support incremental replay of updated thread items

Why

Persisted item snapshots can be updated after their initial projection while retaining their creation order. Callers need a way to read those updates incrementally without replaying every item.

What changed

  • Track the rollout ordinal of each item's latest snapshot separately from its creation ordinal.
  • Let thread-store callers filter items after an exclusive update watermark and sort pages by either creation or update ordinal.
  • Keep existing app-server reads creation-ordered, reject incremental reads across forked lineages, and preserve compatibility with older writers.

Testing

  • Cover update-watermark filtering, pagination, sort directions, per-turn reads, cursor validation, forked lineages, migration compatibility, and refreshed item snapshots.

## Why

Persisted item snapshots can be updated after their initial projection while retaining their creation order. Callers need a way to read those updates incrementally without replaying every item.

## What changed

- Track the rollout ordinal of each item's latest snapshot separately from its creation ordinal.
- Let thread-store callers filter items after an exclusive update watermark and sort pages by either creation or update ordinal.
- Keep existing app-server reads creation-ordered, reject incremental reads across forked lineages, and preserve compatibility with older writers.

## Testing

- Cover update-watermark filtering, pagination, sort directions, per-turn reads, cursor validation, forked lineages, migration compatibility, and refreshed item snapshots.

GitOrigin-RevId: d57de849abec27f788e9c384dbff073a0aca1053
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/d57de849abec27f788e9c384dbff073a0aca1053 branch from 185d4bf to b834702 Compare July 23, 2026 21:18
@copyberry
copyberry Bot merged commit b834702 into main Jul 23, 2026
19 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/d57de849abec27f788e9c384dbff073a0aca1053 branch July 23, 2026 21:20
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 23, 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.

2 participants