Codex Diff crashes in VS Code WSL workspace when changes span WSL Git repo and symlinked Windows Obsidian Git repo

Open 💬 1 comment Opened Jul 27, 2026 by TrilSiaWalt
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

What version of the IDE extension are you using?

VS Code version: 1.130.0

What subscription do you have?

codex pro

Which IDE are you using?

VS Code

What platform is your computer?

WSL distro: Ubuntu 22.04.5 LTS

What issue are you seeing?

Description:
I use VS Code connected to WSL.

My VS Code workspace is opened inside the WSL filesystem. The code project is also inside WSL and has its own Git repository.

My Obsidian vault is physically stored on the Windows filesystem. Inside the WSL workspace, I access that Obsidian vault through a symbolic link. The Obsidian vault also has its own Git repository.

Approximate anonymized structure:

/wsl/workspace/
code-project/ # Git repo A, physically inside WSL
.git/
src/...
notes-vault -> /mnt/c/.../vault # symlink to Windows filesystem

/mnt/c/.../vault/
.git/ # Git repo B, physically on Windows filesystem
_Inbox/example-note.md
attachments/...

When Codex modifies files in both repositories during the same task, Codex Diff fails to open.

Example change set:

  • A C++ source file in the WSL code project Git repo.
  • A Markdown note in the symlinked Windows Obsidian vault Git repo.

Actual behavior:
Opening Codex Diff shows only:

"Oops, an error has occurred"

Reloading the VS Code window does not fix the issue.

What steps can reproduce the bug?

Reproduction steps:

  1. In WSL, create/open a VS Code workspace.
  2. Put a normal code project inside the WSL workspace and initialize it as Git repo A.
  3. On the Windows filesystem, create an Obsidian-style notes vault and initialize it as Git repo B.
  4. In the WSL workspace, create a symbolic link pointing to the Windows notes vault.
  5. Ask Codex to edit one file in Git repo A and one Markdown file through the symlink into Git repo B.
  6. Open Codex Diff.
  7. Observe that Codex Diff crashes with: "Oops, an error has occurred".

What is the expected behavior?

Expected behavior:
Codex Diff should be able to review changes when:

  • VS Code is connected to WSL.
  • The main workspace is in the WSL filesystem.
  • One changed file is inside a WSL Git repository.
  • Another changed file is inside a symlinked directory pointing to a Windows filesystem path.
  • The symlink target is also a separate Git repository.

If this layout is unsupported, Codex Diff should show a clear diagnostic message instead of crashing.

Additional information

Environment:

  • VS Code connected to WSL
  • Codex extension version: v26.721.41059
  • VS Code version: 1.130.0
  • WSL distro: Ubuntu 22.04.5 LTS
  • Kernel: 6.18.33.2-microsoft-standard-WSL2
  • Windows11版本 25H2 (OS 内部版本 26200.8875)
  • Workspace root is inside WSL
  • Code project Git repo is physically inside WSL
  • Obsidian vault Git repo is physically on the Windows filesystem
  • Obsidian vault is accessed from WSL workspace via symlink
  • File types involved: C++ source files and Markdown .md notes

View original on GitHub ↗

1 Comment

github-actions[bot] contributor · 1 month ago

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #35481
  • #35362
  • #35250

Powered by Codex Action