mirror of
https://github.com/openai/codex.git
synced 2026-10-20 00:18:49 +00:00
## Why Repeated turn diff notifications can print the same file changes multiple times, including after an unrelated command. ## What changed Track the last diff and print nonempty updates only when they differ from the previous notification. Remember empty updates so a restored diff prints again, and reset the tracked diff when a new turn starts. ## Testing Add a stderr snapshot test covering repeated, changed, empty, restored, and new-turn diffs. Add an integration test that applies one edit, runs an unrelated command, and verifies that the diff appears exactly once. GitOrigin-RevId: db0a2aa8b77b800ca661e7d1314ed1e571743e74