mirror of
https://github.com/openai/codex.git
synced 2026-11-26 23:40:43 +00:00
## Why A late result from an earlier turn can appear on a loaded transcript page even when that turn's prompt and prompts from intervening turns are still unloaded. Counting prompts from a single history boundary can then map a visible prompt to the wrong turn. Rewinding can also remove that late result, leaving a stale boundary for the next edit. ## What changed Resolve prompt selections against the loaded items in each turn, including turns with no loaded items. After a rewind, refresh the retained transcript items from app-server so the next edit uses boundaries that still exist. ## Testing Cover selection of a visible prompt whose text matches an unloaded prompt, and extend the in-place editing scenario to exercise a second rewind after the first removes a late item. GitOrigin-RevId: 53ec2595a56b45c2fc1077a94338215b4b0b7382