Skip to content

Suppress repeated turn diffs in codex exec human output - #53444

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/db0a2aa8b77b800ca661e7d1314ed1e571743e74
Oct 12, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/db0a2aa8b77b800ca661e7d1314ed1e571743e74

Conversation

@copyberry

@copyberry copyberry Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

Suppress repeated turn diffs in codex exec human output

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.

## 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
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/db0a2aa8b77b800ca661e7d1314ed1e571743e74 branch from 07d1e93 to c308e12 Compare October 12, 2026 18:21
@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-10-12T18:21:22.539915Z 07d1e93 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@copyberry
copyberry Bot merged commit c308e12 into main Oct 12, 2026
1 check passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/db0a2aa8b77b800ca661e7d1314ed1e571743e74 branch October 12, 2026 18:21
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 12, 2026
@Yelsmeky
Yelsmeky deployed to issue-triage October 12, 2026 18:28 — with Image GitHub Actions Active
@Yelsmeky
Yelsmeky deployed to issue-triage October 12, 2026 18:28 — with Image GitHub Actions Active
@Yelsmeky
Yelsmeky deployed to issue-triage October 12, 2026 18:28 — with Image GitHub Actions Active
@newbittles
newbittles deployed to issue-triage October 12, 2026 18:29 — with Image GitHub Actions Active
@newbittles
newbittles deployed to issue-triage October 12, 2026 18:29 — with Image GitHub Actions Active
@newbittles
newbittles deployed to issue-triage October 12, 2026 18:29 — with Image GitHub Actions Active
@kreitter
kreitter deployed to issue-triage October 12, 2026 18:36 — with Image GitHub Actions Active
@kreitter
kreitter deployed to issue-triage October 12, 2026 18:36 — with Image GitHub Actions Active
@kreitter
kreitter deployed to issue-triage October 12, 2026 18:36 — with Image GitHub Actions Active
@kreitter
kreitter deployed to issue-triage October 12, 2026 18:37 — with Image GitHub Actions Active
@Kipung
Kipung deployed to issue-triage October 12, 2026 18:42 — with Image GitHub Actions Active
@Kipung
Kipung deployed to issue-triage October 12, 2026 18:42 — with Image GitHub Actions Active
@Kipung
Kipung deployed to issue-triage October 12, 2026 18:42 — with Image GitHub Actions Active
@0xjohnnydev
0xjohnnydev deployed to issue-triage October 12, 2026 18:46 — with Image GitHub Actions Active
@0xjohnnydev
0xjohnnydev deployed to issue-triage October 12, 2026 18:46 — with Image GitHub Actions Active
@0xjohnnydev
0xjohnnydev deployed to issue-triage October 12, 2026 18:46 — with Image GitHub Actions Active

This branch was successfully deployed

1 active deployment
issue-triage — c308e127 Deployed Oct 12, 2026 by 0xjohnnydev via Identify potential duplicates (all issues) #54818
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants