Extract reverse JSONL scanning from session indexing - #32246
Merged
copyberry[bot] merged 1 commit intoJul 10, 2026
Merged
Conversation
## What changed - Add a generic `ReverseJsonlScanner` that reads seekable JSONL data from the end in bounded chunks, skips blank records, and reports malformed records without stopping the scan. - Use the scanner for reverse session-index lookups while preserving the existing behavior of ignoring invalid entries. ## Testing - Add coverage for unterminated final records, malformed JSON, blank lines, chunk boundaries, and records spanning multiple chunks. - Verify session-index lookup can skip an invalid record and still find valid entries on either side of it. GitOrigin-RevId: 66255f48492f74726d4ac4831cdc82f748de17d6
copyberry
Bot
force-pushed
the
copyberry/codex-internal-to-codex-oss/66255f48492f74726d4ac4831cdc82f748de17d6
branch
from
July 10, 2026 19:19
c3c581a to
a328f30
Compare
copyberry
Bot
deleted the
copyberry/codex-internal-to-codex-oss/66255f48492f74726d4ac4831cdc82f748de17d6
branch
July 10, 2026 19:20
teanoaurora-lab
temporarily deployed
to
issue-triage
July 10, 2026 19:32 — with
GitHub Actions
Inactive
teanoaurora-lab
temporarily deployed
to
issue-triage
July 10, 2026 19:32 — with
GitHub Actions
Inactive
teanoaurora-lab
temporarily deployed
to
issue-triage
July 10, 2026 19:32 — with
GitHub Actions
Inactive
Oguz-Yueksel
temporarily deployed
to
issue-triage
July 10, 2026 19:37 — with
GitHub Actions
Inactive
Oguz-Yueksel
temporarily deployed
to
issue-triage
July 10, 2026 19:37 — with
GitHub Actions
Inactive
Oguz-Yueksel
temporarily deployed
to
issue-triage
July 10, 2026 19:37 — with
GitHub Actions
Inactive
skorotkiewicz
temporarily deployed
to
issue-triage
July 10, 2026 19:50 — with
GitHub Actions
Inactive
skorotkiewicz
temporarily deployed
to
issue-triage
July 10, 2026 19:50 — with
GitHub Actions
Inactive
skorotkiewicz
temporarily deployed
to
issue-triage
July 10, 2026 19:50 — with
GitHub Actions
Inactive
skorotkiewicz
temporarily deployed
to
issue-triage
July 10, 2026 19:52 — 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.
Extract reverse JSONL scanning from session indexing
What changed
ReverseJsonlScannerthat reads seekable JSONL data from theend in bounded chunks, skips blank records, and reports malformed records
without stopping the scan.
existing behavior of ignoring invalid entries.
Testing
chunk boundaries, and records spanning multiple chunks.
entries on either side of it.