Skip to content

[Bug] Markdown (.md) files do not show diff content in review panel (only summary card) #18321

Open

Description

@bupt1987

What version of the Codex App are you using (From “About Codex” dialog)?

26.415.21839 (1763)

What subscription do you have?

Pro 200$

What platform is your computer?

Darwin 25.4.0 arm64 arm

What issue are you seeing?

What issue are you seeing?

When reviewing changes in Codex app, Markdown (.md) files do not show the diff content.

Instead of showing line-by-line changes, it only displays a summary card like:

(+2 -1)

No diff details are visible.


What is the expected behavior?

The review panel should display the full diff (line-by-line changes) for Markdown files, same as other file types like .php.


What is actually happening?

  • .md files: only summary card shown, no diff content
  • .php files: diff works correctly and shows full changes

Steps to reproduce

  1. Open a repository in Codex
  2. Modify a .md file
  3. Open Review panel
  4. Observe that only summary (+X -Y) is shown, no diff content

Additional context

  • This issue seems specific to Markdown files
  • Other file types (e.g. .php) display diffs normally
  • git diff shows correct changes, so the issue appears to be in Codex UI/rendering

What steps can reproduce the bug?

Uploaded thread: 019d9a70-2d08-7e02-996c-317ab6a9732c

What is the expected behavior?

No response

Additional information

No response

Activity

  1. added
    app
    on Apr 17, 2026
  2. added
    bug
    code-review
    on Apr 17, 2026
  3. jyx114514 commented on Sep 4, 2026

    @jyx114514

    I can reproduce this issue on Windows 11 as well, and I found a more specific pattern that may help narrow it down.

    The hover diff preview works correctly, while the Review sidebar sometimes does not.

    For the exact same Markdown change:

    Hovering over View changes correctly shows the full line-by-line diff, including added and deleted lines.
    Clicking it and opening the same change in the Review sidebar may result in no detailed diff being displayed.
    Code files usually work correctly.
    For .md files, deletion-only changes generally display correctly.
    Markdown changes containing added lines are much more likely to trigger the problem, although it is not 100% reproducible.

    I attached a screenshot showing the working hover preview. The same change may fail after opening it in the Review sidebar.

    Since the hover preview can render the exact same diff correctly, the underlying diff data appears to be available. This may be specific to the Markdown rendering path used by the Review sidebar.

    I also wonder whether this could be related to Markdown/Rich Preview rendering interfering with the raw diff presentation, although I haven't confirmed that.

    Platform: Windows 11 Microsoft Windows NT 10.0.26200.0 x64
    Codex version: 26.903.11726

    Image Image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appbugcode-review

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions