mirror of
https://github.com/openai/codex.git
synced 2026-10-18 17:18:52 +00:00
## Why Batch thread name lookups read the entire append-only session index even when all requested names could be found near the end. ## What changed Use `ReverseJsonlScanner` in `spawn_blocking` for `find_thread_names_by_ids`, stopping once every requested ID has a usable name. Preserve the latest nonempty, trimmed name for each ID while skipping malformed entries. ## Testing Add regression coverage for renamed threads, whitespace-only names, Unicode, reads across chunk boundaries, malformed entries, a partial final write, and missing IDs. GitOrigin-RevId: 2ab9254ba8b718fe3e02c47fc9b0de20c09fd10f