'Open config.toml in WSL environment' broken (incorrect path)
Open 💬 4 comments Opened Nov 18, 2025 by ThoughtPhotography
What version of the VS Code extension are you using?
0.5.43
What subscription do you have?
Plus
Which IDE are you using?
VS Code Insiders
What platform is your computer?
Win10-64
What issue are you seeing?
In the WSL testing discussion I reported the menu option to open the _config.toml_ was broken (nothing happens).
https://github.com/openai/codex/discussions/5471#discussioncomment-14915652
After more investigation I found I could open the file fine from Windows Explorer.
Located here:Network\wsl$\Ubuntu\home\[username]\.codex
aka\\wsl.localhost\Ubuntu\home\[username]\.codex
The extension likely fails to open it as the path is misconfigured, but it must know the correct path or WSL mode wouldn't work at all.
What steps can reproduce the bug?
_Settings->Codex Settings->Open config.toml in WSL environment_
What is the expected behavior?
Same as non-WSL mode.
If the extension can't find the file it should notify the user instead of failing silently.
Additional information
_No response_
4 Comments
Found a temporary workaround:
When you click "Open config.toml in WSL environment", it shows an error in devtools:
[openai.chatgpt]UNC host 'wsl.localhost' access is not allowedDisabling
security.restrictUNCAccessin settings makes it work.I tried adding
wsl.localhosttosecurity.allowedUNCHosts, but that doesn’t work.The config.toml file was a bit #hard for me to find (WSL on Windows), but I found it here:
\\wsl.localhost\Ubuntu\mnt\wslg\distro\root\.codexJust type it in the file explorer path.
I made a tracking issue for the root cause of these classes of bugs https://github.com/openai/codex/issues/10347
A workaround that worked for me was to create a symlink from inside WSL so the Windows path points to the config file in the WSL home directory like so:
You can verify it from WSL by reading the file through the Windows-mounted path. The contents should come from the target file in the WSL home directory: