Add bounded batch lookups for message history - #33902
Merged
copyberry[bot] merged 1 commit intoJul 17, 2026
Merged
Conversation
## What changed - Add a public cursor-based API that reads history entries newest-first from an absolute offset. - Bound batches to 128 rows and 64 KiB while allowing a single oversized row so pagination always makes progress. - Reuse validated byte positions for unchanged, uncapped histories, and fall back to offset scans when files are rewritten or capped. - Preserve offsets for malformed rows and return them without parsed entries. ## Testing Add coverage for pagination, row and byte limits, oversized and malformed rows, file rewrites, capped-history trimming, appends, and log identity changes. GitOrigin-RevId: 57e52a4ac150cd15a5bdc3fef8a351a1f2eb0e3c
copyberry
Bot
force-pushed
the
copyberry/codex-internal-to-codex-oss/57e52a4ac150cd15a5bdc3fef8a351a1f2eb0e3c
branch
from
July 17, 2026 20:53
58ef72d to
161748a
Compare
copyberry
Bot
deleted the
copyberry/codex-internal-to-codex-oss/57e52a4ac150cd15a5bdc3fef8a351a1f2eb0e3c
branch
July 17, 2026 20:55
topemalheiro
temporarily deployed
to
issue-triage
July 17, 2026 21:14 — with
GitHub Actions
Inactive
topemalheiro
temporarily deployed
to
issue-triage
July 17, 2026 21:14 — with
GitHub Actions
Inactive
topemalheiro
temporarily deployed
to
issue-triage
July 17, 2026 21:14 — 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.
Add bounded batch lookups for message history
What changed
Testing
Add coverage for pagination, row and byte limits, oversized and malformed rows, file rewrites, capped-history trimming, appends, and log identity changes.