[Feature Request] Add an option to collapse or hide large file edit diffs in Codex CLI TUI
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 125k
- Forks
- 19.4k
- PR merge metrics
- PR metrics pending
Description
What feature would you like to see?
Please add an option to collapse or hide detailed file edit diffs in the interactive Codex CLI TUI.
When Codex modifies a large file, the terminal can display a very large amount of edit/diff output. For example:
Edited 0829/solve_A1_70-0826V1-0829.py (+10000 -10000)
This can be followed by thousands of lines of diff content.
For large files, this makes the terminal extremely difficult to use because useful conversation, commands, reasoning summaries, and previous output are pushed far up the terminal scrollback.
Desired behavior
I would like an option to show only a compact edit summary, for example:
Edited solve_A1_70-0826V1-0829.py (+10000 -10000)
without automatically displaying the full diff underneath it.
Ideally, Codex CLI could support several diff display modes:
[tui]
diff_display = "summary" # none | summary | full
For example:
none: Do not display file edit diffs in the TUI.summary: Display only the file name and line-change statistics.full: Keep the current behavior.
A keyboard shortcut to expand a collapsed diff on demand would also be useful.
Edited solve_A1_70-0826V1-0829.py (+10000 -10000)
[Press Enter to view diff]
Why this matters
Codex CLI is often used for long-running coding tasks involving large source files.
When an edit produces thousands or tens of thousands of changed lines, displaying the entire diff directly in the conversation can overwhelm the terminal scrollback and make it difficult to find previous messages or important command output.
In many cases, I only need to know:
- Which file was edited.
- Approximately how many lines changed.
- Whether the edit succeeded.
If I need to inspect the actual changes, I can use git diff, an IDE, or explicitly expand the diff.
Example
Current experience:
• Edited 0829/solve_A1_70-0826V1-0829.py (+10000 -10000)
- old line...
- old line...
- old line...
...
+ new line...
+ new line...
+ new line...
...
[thousands of lines]
Preferred experience:
• Edited 0829/solve_A1_70-0826V1-0829.py (+10000 -10000)
with the detailed diff hidden or collapsed by default.
Related
Related: #10779
That issue requested diff verbosity control for codex exec. This request focuses specifically on the interactive Codex CLI TUI, where large inline diffs can overwhelm terminal scrollback.
Thanks for considering this!
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the interactive Codex CLI TUI path that renders file edit diffs and the configuration entry for the proposed [tui] diff_display setting. Review related issue #10779 for existing context. Done means the TUI can support the requested diff visibility modes, with compact summaries by configuration and an explicit way to inspect hidden content if implemented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100