Display file inline diffs
Open 💬 3 comments Opened May 26, 2026 by Viviana-Luna
💡 Likely answer: A maintainer (github-actions[bot], contributor)
responded on this thread — see the highlighted reply below.
What variant of Codex are you using?
App
What feature would you like to see?
问题描述
Codex CLI 在对话中会直接展示文件的内联 diff(带 +/- 行),能清楚看到具体增删了什么内容。但 Codex Desktop 不会——它只告诉你"编辑了某个文件",只有一个文件名,看不到任何具体改动。而且没有任何开关或设置项可以改变这个行为。
这导致桌面端在代码审查场景下几乎不可用——每次都得手动 git diff 或者点开文件逐行对比,完全丧失了集成工作流的优势。
对比示例
CLI 的输出(清晰展示增删内容):
• Edited src/utils/data_processor.ts (+2 -2)
45 const result = baseConfig.defaults ?? {},
46 - mergeWith(
46 + deepMerge(mergeWith(
47 Object.keys(overrides).reduce((acc, k) => {
48 acc[k] = normalize(overrides[k]);
49 return acc;
50 - }, {}),
50 + }, {}), getFallback()),
51 process(result);
Desktop 的输出(只有一个文件名):
• Edited src/utils/data_processor.ts
为什么这很重要
- 信任感——看不到具体改了什么,就不敢放心确认。内联 diff 是理解模型实际做了什么的关键。
- 效率——没有内联 diff,每次都得手动打开文件跑
git diff来审查改动,严重打断工作流。 - 功能对等——CLI 用户天然就有这个能力,桌面端用户却没有。桌面端至少应该做到和 CLI 同等的体验。
期望
在桌面端对话视图中增加内联文件 diff 展示,和 CLI 已有的能力对齐。最好能提供一个开关,让用户在"摘要模式"(当前行为)和"diff 模式"(内联展示 ± 变更)之间切换,照顾偏好简洁输出的用户。
Additional information
_No response_
3 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
File inline diffs are not displayed in Desktop conversations, but they are in the CLI
What variant of Codex are you using?
App
What feature would you like to see?
Problem description
Codex CLI displays inline file diffs directly in the conversation, including
+/-lines, making it easy to see exactly what was added or removed. Codex Desktop does not. It only tells you that a file was edited and shows the filename, without displaying any of the actual changes. There is also no toggle or setting to change this behavior.This makes the Desktop app nearly unusable for code review scenarios. Every time, I have to manually run
git diffor open the file and compare it line by line, which completely defeats the purpose of an integrated workflow.Comparison example
CLI output, which clearly shows the additions and deletions:
Desktop output, which shows only the filename:
Why this matters
git diffevery time I review changes, which significantly disrupts the workflow.Expected behavior
Add inline file diff display to the Desktop conversation view, bringing it in line with the existing CLI capability. Ideally, provide a toggle that lets users switch between a "summary mode" (the current behavior) and a "diff mode" (showing inline
+/-changes), so users who prefer concise output can retain that experience.Additional information
No response
Not sure if this is the same, but in the NEW ChatGPT app (not the Classic), I gave a feedback:
In Settings, Appearance, before Diff Markers, please add an option to choose Diff Style because I don't like side-by-side diff and I highly prefer inline diff. I hope this can be changed here in the Appearance Settings (and the preview at the top of the Appearance page updates accordingly too).