mirror of
https://github.com/openai/codex.git
synced 2026-11-16 22:00:36 +00:00
## Why A steer can restart sampling within the same turn. Recreating the diff tracker loses earlier edits, and changing the working directory can change the meaning of relative diff paths. ## What changed Keep the diff tracker for the lifetime of the turn and retain each environment's first display root. Refresh cached diff headers when new environments are added. Emit the final aggregate `TurnDiff` before `TurnComplete` instead of at sampling completion. ## Testing Extend regression coverage for steering during the final flush, with and without additional patches and with a changed working directory. Check final diff ordering across continued sampling and header updates when adding an environment. GitOrigin-RevId: fbd1ebef072d8486a324190c9125fc1446510802