mirror of
https://github.com/openai/codex.git
synced 2026-12-04 00:51:02 +00:00
## Why When switching to a Cloud thread in the TUI, the initial item page waited for the turn metadata page even though the two reads can start independently. ## What changed During a prepared Cloud resume, fetch the first turn metadata and item pages concurrently when both are needed. The turn metadata request bypasses the worker handling the item page and is canceled if the prepared resume ends. If the item read fails as the worker closes, surface the item error ahead of the resulting cancellation. ## Testing Add coverage for overlapping the two reads during thread switching, loading turns while the item worker is busy, and preserving the item error when the prepared resume closes. GitOrigin-RevId: 1b4aee89b10f318de2732c30c6d31e255a492c38