Support incremental replay of updated thread items#35013
Merged
copyberry[bot] merged 1 commit intoJul 23, 2026
Merged
Conversation
## 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
Bot
force-pushed
the
copyberry/codex-internal-to-codex-oss/d57de849abec27f788e9c384dbff073a0aca1053
branch
from
July 23, 2026 21:18
185d4bf to
b834702
Compare
copyberry
Bot
deleted the
copyberry/codex-internal-to-codex-oss/d57de849abec27f788e9c384dbff073a0aca1053
branch
July 23, 2026 21:20
hendrykcosta75
temporarily deployed
to
issue-triage
July 23, 2026 21:22 — with
GitHub Actions
Inactive
hendrykcosta75
temporarily deployed
to
issue-triage
July 23, 2026 21:22 — with
GitHub Actions
Inactive
hendrykcosta75
temporarily deployed
to
issue-triage
July 23, 2026 21:22 — with
GitHub Actions
Inactive
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
Testing