mirror of
https://github.com/openai/codex.git
synced 2026-11-20 22:40:37 +00:00
## Why Thread summaries need the first session metadata and preview events. Reading each line asynchronously and parsing unrelated records adds work to every rollout scanned. ## What changed Use the buffered rollout reader to scan each plain or compressed rollout in one blocking task. After reading the first session metadata, skip JSON parsing for lines without an `event_msg` marker or a Unicode escape that could encode the event tag. ## Testing Extend coverage for delayed user messages with escaped or numeric event tags, preview reads that stop before invalid UTF-8 in plain and compressed rollouts, and provider filtering for archived threads sorted by update time. GitOrigin-RevId: 06c996ad3bcc290102f3ecab992e40364cb4dee9