Windows Desktop fails to generate commit message for WSL remote repo due to remote git index copy path

Open 💬 1 comment Opened Jun 16, 2026 by Pixel-Chase

What happened?

In Codex Desktop on Windows, using an SSH/WSL remote project, the right-side Git commit panel fails to generate a commit message. The UI only shows a generic localized error equivalent to "Unable to generate commit message".

The underlying Windows Desktop log shows that the Git diff collection fails before commit message generation starts:

warning [git] git.temp_index.remote_copy_failed exitCode=1 indexPath=/home/<wsl-user>/workspace/<repo>/.git/index signal=null stderr="cp: cannot create regular file 'C:\\Users\\<windows-user>\\AppData\\Local\\Temp\\codex-git-index.../index': No such file or directory\n" tempIndexFsPath=C:\Users\<windows-user>\AppData\Local\Temp\codex-git-index.../index
error [git] failed to collect tracked uncommitted diff errorMessage="failed to copy remote git index: process exited with code 1, signal null"

It looks like the Desktop Git worker asks the remote Linux/WSL side to copy .git/index directly into a Windows temp path such as C:\Users\...\AppData\Local\Temp\.... Since that command is executed in the remote Linux/WSL environment, the Windows path is not valid there, so diff collection fails and the commit message generator has no input.

Environment

  • Codex Desktop on Windows, Microsoft Store/MSIX package
  • Desktop package observed in logs: OpenAI.Codex_26.609.9530.0_x64__2p2nqsd0c76g0
  • Remote project runs in WSL/Linux
  • Remote codex --version: codex-cli 0.140.0
  • Remote app-server process also uses the 0.140.0 standalone binary
  • Repository path is under the WSL/Linux home directory, e.g. /home/<wsl-user>/workspace/<repo>
  • Git in WSL works normally (git status, git diff, and manual git commit work)
  • Windows Desktop can still chat with the remote app-server normally; the failure appears specific to the Desktop Git/commit panel diff collection path

Steps to reproduce

  1. Install Codex Desktop on Windows.
  2. Configure/open a remote WSL/Linux project whose repository is under /home/<wsl-user>/....
  3. Ensure Codex CLI is installed and authenticated on the remote side.
  4. Make working tree changes in the remote repository.
  5. Open the right-side Git commit panel in Codex Desktop.
  6. Click the action to generate a commit message.

Expected behavior

Codex Desktop should collect the remote repository diff using a remote-valid temporary path, then generate a commit message.

Actual behavior

Commit message generation fails with a generic UI error. Windows Desktop logs show git.temp_index.remote_copy_failed and failed to copy remote git index because a Windows temp path is passed into a copy operation running in the remote Linux/WSL environment.

Workaround

Manual commit from the WSL terminal works:

git add <files>
git commit -m "..."

Additional notes

Reinstalling both Windows Codex Desktop and the remote WSL Codex CLI did not resolve this. The issue reproduced after updating the WSL CLI/app-server to 0.140.0, so this does not appear to be caused by an outdated remote CLI binary.

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗