Repository navigation
Description
Environment
- VS Code: 1.141.1
- Commit: 7baac39
- Windows desktop client connected to WSL Ubuntu
- Remote - WSL extension: 0.104.3
- Affected extension: OpenAI Codex (
openai.chatgpt) - Codex versions tested in WSL: 26.1007.21434 and 26.930.31730
Description
The Codex Webview fails to load when I open VS Code from an Ubuntu terminal using code ..
This workflow worked before October 13, 2026. Local updater logs show that VS Code completed an update on that day. I suspect an update regression, although I have not tested the previous VS Code version.
Both Codex versions listed above exhibit the failure.
Steps to reproduce
- Use Windows VS Code with the Remote - WSL extension and a WSL distribution named
Ubuntu. - Install the Codex extension in WSL.
- From an Ubuntu terminal, open a project with:
code . - Open the Codex sidebar.
- The Webview fails to initialize.
Expected behavior
The Codex sidebar loads normally when VS Code is launched using code . from WSL.
Actual behavior
Webview JavaScript and CSS requests return HTTP 401. The Windows renderer log reports:
Webview.loadLocalResource - trying to load resource.
requestUri=vscode-remote://wsl%2Bubuntu/home/zlyt/.vscode-server/extensions/openai.chatgpt-26.1007.21434-linux-x64/webview/assets/index-6d5eb9bd4867.js,
resourceToLoad=undefined
Webview.loadLocalResource - access denied.
requestUri=vscode-remote://wsl%2Bubuntu/home/zlyt/.vscode-server/extensions/openai.chatgpt-26.1007.21434-linux-x64/webview/assets/index-6d5eb9bd4867.js,
resourceToLoad=undefined
The WSL extension log shows that the Codex app-server initializes successfully, followed by:
Webview renderer did not become ready
elapsedMs=30000
extensionVersion=26.1007.21434
reason=renderer_ready_timeout
receivedWebviewMessage=false
role=sidebar
stage=renderer
timeoutMs=30000
Investigation
The WSL launch script constructs the connection authority using:
AUTHORITY="wsl+$WSL_DISTRO_NAME"Here, WSL_DISTRO_NAME is Ubuntu, so the connection authority is wsl+Ubuntu. However, the failing Webview resource requests use wsl+ubuntu.
In the installed VS Code bundle, loadResource() uses a strict comparison between the connection's remoteAuthority and the resource URI's authority before obtaining the remote OS.
When these differ in casing, remoteOS remains undefined. The resource resolver then returns early, before checking the resource roots or reading the file. This produces AccessDenied, which is mapped to HTTP 401.
An isolated check using the installed OS-selection and resource-loading functions reproduced this behavior. The URI and filesystem services in that check were test doubles, not a live Webview.
The current Codex Webview assets exist and are readable, and its extension code sets localResourceRoots and uses asWebviewUri().
Confirmed workaround
Opening a new window with an explicitly lowercase authority restores the Codex UI:
code --new-window --remote wsl+ubuntu .This suggests that inconsistent authority casing is responsible for the resource-loading failure.
Could you investigate whether the remote OS lookup should use a normalized or case-insensitive authority comparison?
Activity
JoelSimmo commentedon Oct 14, 2026
Experiencing the same here with Claude, and also reproducable within md files by selecting the mardown preview option
Zhangliangyuting commentedon Oct 14, 2026
alexr00 commentedon Oct 14, 2026
duplicate of #341396