Files
codex/codex-rs
Benjamin Carlsson 53052950cb Load initial Cloud history concurrently when switching threads (#65364)
## 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
2026-12-03 00:27:06 +00:00
..
…
…
…
…