mirror of
https://github.com/openai/codex.git
synced 2026-10-25 23:57:40 +00:00
## Why Prompt editing looks up the selected user message in the thread's turns, but new live turns may still exist only in the replay buffer. ## What changed Reconstruct buffered turns from turn and item notifications before locating the prompt to edit. Preserve completion metadata and avoid duplicating turns or items already present in the snapshot. ## Testing Extend the prompt-edit fork test to cover a selected turn supplied through the replay buffer and verify that the source thread remains unchanged. GitOrigin-RevId: e357098085a4def871f3df65b6721a31e07b737f