Skip to content

Review tab gets stuck on "Loading diff" on Windows because Codex App passes /F:/... as a literal path to git diff #17624

Closed

Description

@OKKU-Okuda

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

26.409.20454

What subscription do you have?

pro

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64

What issue are you seeing?

In the Codex desktop app on Windows, the Review tab gets stuck on Loading diff for a normal text file and never renders the diff.

I reproduced this with a newly created dummy.txt containing a single line of plain text. The file appears in the changed files list and is clickable, but the diff pane stays on Loading diff forever.

This does not appear to be a Git or file-content problem. Git returns the expected diff immediately when run directly.

From the Codex desktop logs, the app appears to call Git with a literal path like /F:/HogeProject/Test/dummy.txt. That is important because this is not just a shell rendering issue. The logs show it in the argument list passed to Git.

That literal path appears to be invalid for git.exe on Windows and causes Git to fail with exit code 128, which appears to leave the Review pane stuck.

Image

What steps can reproduce the bug?

  1. Open Codex App on Windows
  2. Open a Git workspace
  3. Create a new text file such as dummy.txt
  4. Add one line of text
  5. Stage the file
  6. Open the Review tab
  7. Click the file in the changed files list
  8. Observe that the pane stays on Loading diff

I also tried:

  • unstaging and restaging the file
  • changing the integrated terminal shell to Git Bash
  • restarting / reopening the app
  • None of these fixed the issue.

What is the expected behavior?

The Review tab should render the text diff normally.

Additional information

Project root: F:/HogeProject/Test
Git root: F:/HogeProject/Test

The file was a plain UTF-8 text file, not binary.

Example contents:
これは Review 表示確認用のダミーテキストです

Git sees the file as normal text.
Command: git check-attr --all -- dummy.txt
Output:

diff --git a/dummy.txt b/dummy.txt
new file mode 100644
index 0000000..xxxxxxxx
--- /dev/null
+++ b/dummy.txt
@@ -0,0 +1 @@
+これは Review 表示確認用のダミーテキストです

I also reproduced the suspected root cause directly outside the app.
This fails when Git is called directly from PowerShell:

Command: git diff --cached -- /F:/HogeProject/Test/dummy.txt
Error: fatal: Invalid path '/F:': No such file or directory

These succeed:

git diff --cached -- F:/HogeProject/Test/dummy.txt
git diff --cached -- dummy.txt

I also verified that using Git Bash does not fix the Codex App Review issue, which suggests the problem is in Codex App's internal Git invocation rather than the integrated terminal setting.

From the Codex desktop log, Review appears to repeatedly run a command equivalent to git diff --cached -- /F:/HogeProject/Test/dummy.txtand gets exitCode=128.

So this looks like a Windows path normalization bug in Codex App's diff/review flow. The key point is that /F:/... appears to be passed as a literal Git argument, and reproducing that exact argument outside the app fails, while the same command succeeds with F:/....

Activity

  1. added
    app
    on Apr 13, 2026
  2. added
    bug
    windows-os
    code-review
    on Apr 13, 2026
  3. FBakkensen commented on Apr 13, 2026

    @FBakkensen

    I have the same issue on Windows, and I checked the local Codex desktop logs on this machine before commenting.

    The logs show the Review flow repeatedly invoking Git with a literal Windows path prefixed as /C:/..., for example:

    git diff --no-ext-diff --no-textconv --color=never --src-prefix=a/ --dst-prefix=b/ -- /C:/Users/FlemmingBK/repo/bc-agentic-dev-tools-marketplace/plugins/al-build/.codex-plugin/plugin.json

    Those calls are failing with exitCode=128 in the app logs.

    I also ran the equivalent command directly with git.exe in the same repo, and it fails the same way:

    fatal: Invalid path '/C:': No such file or directory

    So this looks consistent with the root cause described here: the app appears to be passing /C:/... as a literal Git path on Windows, which leaves the Review diff stuck loading.

    Possible extra signal from the same log set: I also saw other Windows path-handling warnings in the app around workspace/worktree resolution, including ENOENT entries for /mnt/c/... and \\?\\C:\... paths.

  4. fabmnt commented on Apr 13, 2026

    @fabmnt

    I'm having the same issue, this is an important one, it's happening since last codex update

  5. junyongkim1478-maker commented on Apr 14, 2026

    @junyongkim1478-maker

    Having the same problem here in Korea

  6. jamespedid commented on Apr 14, 2026

    @jamespedid

    Same issue here

  7. frankbonnet commented on Apr 14, 2026

    @frankbonnet

    Same problem since updating yesterday

  8. Sea-ly commented on Apr 14, 2026

    @Sea-ly

    Same problem

  9. jacklpqq commented on Apr 14, 2026

    @jacklpqq

    Same problem

  10. Timorfiy commented on Apr 14, 2026

    @Timorfiy

    Same problem (russia)

  11. dr-dra commented on Apr 14, 2026

    @dr-dra

    Commit your changes : Stuck, saying Loading diff.. / No changes to commit.

  12. blue219 commented on Apr 15, 2026

    @blue219

    Same, hope it gets fixed soon

  13. Mirrorzpy commented on Apr 15, 2026

    @Mirrorzpy

    same problem,and at this time, the CPU usage will spike

  14. NesDevr commented on Apr 15, 2026

    @NesDevr

    same problem

  15. etraut-openai commented on Apr 15, 2026

    @etraut-openai
    Contributor

    Thanks for the bug reports. We're working on a fix, and it should be ready for the next release.

  16. eschulma commented on Apr 15, 2026

    @eschulma

    @etraut-openai just FYI this seems to be happening for WSL users as well.

  17. OKKU-Okuda commented on Apr 17, 2026

    @OKKU-Okuda
    Author

    @etraut-openai
    Confirmed that the loading diff issue is fixed in version 26.415.20818. Thanks for fixing this !

  18. phischdev commented on Aug 5, 2026

    @phischdev

    It is not fixed on MacOS. Might be a different issue, but I could never get Codex to actually display diffs for changed .md files

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-reviewwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions