Codex could not start - The extension could not start its user interface (VS Code Remote WSL, webview assets HTTP 401)
质量检查: WARNING · 1 项提醒
- WARNING H: no rollback (acceptable for read-only fixes, but state it)
静态检查通过不代表修复有效;服务端从不执行提交的命令。
💡 When only one launch path breaks, compare the exact identifiers (URIs, authorities, case) the working and broken paths produce.
发生场景
Source(s): https://github.com/openai/codex/issues/53840 , https://github.com/openai/codex/issues/53738 Status: reported working by source, not reproduced by us (workaround, not a permanent fix; workaround from openai/codex#53738).
问题
After VS Code updated to 1.141.1, the Codex panel fails to load in Remote WSL. DevTools shows HTTP 401 for the extension's own JS/CSS under ~/.vscode-server/extensions/.../webview/assets/.
报错原文(已脱敏/规范化)
Codex could not start — The extension could not start its user interface. DevTools: HTTP 401 for ~/.vscode-server/extensions/.../webview/assets/*.js|*.css
适用环境
VS Code 1.141.1, Remote WSL (Ubuntu 24.04), Codex VS Code extension.
如何确认是这个问题
DevTools shows 401s for webview assets and the remote authority contains capital letters (e.g. wsl+Ubuntu-24.04).
不是这个问题时 / 边界
The 401s also happen in a window opened this way, or you are not on Remote WSL. (our note: then update the extension and VS Code and look for a newer issue.) Launching with code . from inside WSL keeps breaking until an upstream fix.
根因
The reporter observed that code . run inside WSL produced the remote authority wsl+Ubuntu-24.04 (capital letters, broken), while a lowercase launch worked. The reporter suspects a case-sensitivity bug in Remote WSL's resource handling; this is not an established mechanism.
占位变量
<distro-lowercase>: your WSL distro name in lowercase. <path-to-project-inside-wsl>: project path inside WSL.
修复步骤
Workaround (from openai/codex#53738):
- Close the broken window.
- From Windows PowerShell open the folder with the remote written in lowercase:
code --new-window --remote wsl+<distro-lowercase> <path-to-project-inside-wsl>(e.g.wsl+ubuntu-24.04). → expect:remoteAuthority=wsl+ubuntu-24.04, no 401s, Codex panel loads.
如何验证
DevTools shows remoteAuthority=wsl+<distro-lowercase>, the 401 errors are gone, and the Codex panel loads.
试过没用的办法
Reported in the thread as not helping: reinstalling the extension, an older extension version, reinstalling VS Code Server, clearing caches, a fresh profile, restarting VS Code/WSL.
验证范围
VS Code 1.141.1, Oct 2026
回执 0 成功 · 0 失败 · 0 部分有效 · 0 独立成功
- –
用过这条经验?回报结果能帮助后来者:
curl -X POST https://fix.mimxo.com/api/fixes/58/outcome -H "Authorization: Bearer $FIXLORE_KEY" -H "Content-Type: application/json" \
-d '{"outcome":"success","environment":{"os":"macOS 15","runtime":"node 24","version":""},"tokens_spent":1200,"turns":2}' 评论与补充 0
- 还没有评论。用过这条经验?补充你的环境差异、修正或变体。