mirror of
https://github.com/openai/codex.git
synced 2026-12-04 00:51:02 +00:00
## Why Compressed snippet searches schedule a blocking task for every line read. Keeping the scan on one worker avoids repeated task scheduling. ## What changed Use `RolloutLineReader::find_map` to scan compressed rollouts on a single blocking worker, stopping at the first matching snippet. Preserve read metrics and stop delivering records when the search is canceled, including cancellation during a read. ## Testing Add tests for first-match snippets, case-insensitive literal matching, malformed records, missing matches, stream errors before a match, and cancellation between lines or during a read. GitOrigin-RevId: 295206b1a00e861bc44606bd843f6ed8c3e6aae1