mirror of
https://github.com/openai/codex.git
synced 2026-08-23 13:09:46 +00:00
## 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