VS Code (Windows): openai-codex:/… fails to resolve when creating Chat: New OpenAI Codex
Summary
Creating a new Codex chat in VS Code fails to open the resource; VS Code reports Unable to resolve resource openai-codex:/<untitled-id>. The custom editor/provider for the openai-codex scheme never resolves.
Environment
- OS: Windows (WSL installed)
- VS Code Stable: 1.106.3
- VS Code Insiders: 1.107.0-insider
- Extension: openai.chatgpt v0.4.46
- Workspace: Trusted
- Launch flags:
--enable-proposed-api openai.chatgpt - Reproducible with a clean user data dir + extensions dir
Steps to Reproduce (minimal)
1) PowerShell:
``powershell``
$env:TEMP_CODEx = "$env:TEMP\vscode-codex-test-insiders"
Remove-Item -Recurse -Force $env:TEMP_CODEx -ErrorAction SilentlyContinue
& "$env:LOCALAPPDATA\Programs\Microsoft VS Code Insiders\bin\code-insiders.cmd" --user-data-dir "$env:TEMP_CODEx\user" --extensions-dir "$env:TEMP_CODEx\exts" --install-extension openai.chatgpt --enable-proposed-api openai.chatgpt
& "$env:LOCALAPPDATA\Programs\Microsoft VS Code Insiders\bin\code-insiders.cmd" --user-data-dir "$env:TEMP_CODEx\user" --extensions-dir "$env:TEMP_CODEx\exts" --enable-proposed-api openai.chatgpt
2) In the window, mark the workspace as Trusted.
3) Run “Chat: New OpenAI Codex”.
Actual Result
- VS Code shows an error and console/renderer log contains:
Unable to resolve resource openai-codex:/<untitled-id>
- The
openai-codexscheme never resolves to the custom editor/panel.
Expected Result
- The Codex panel/task opens without error.
Notes
- Same behavior on VS Code Stable 1.106.3 with a clean profile.
- Setting
workbench.editorAssociationswithchatgpt.conversationEditorandopenai-codex:/**/*does not change the result. - No other extensions loaded; workspace is trusted; WSL present; proposed API enabled.
Logs
- Renderer and exthost logs captured from the clean Insiders profile:
renderer.logandexthost.log(can share privately if needed).
5 Comments
Adjunto logs del repro limpio (VS Code Insiders 1.107.0-insider, extensión openai.chatgpt v0.4.46, Windows, workspace trusted, lanzado con --enable-proposed-api openai.chatgpt). Gist con renderer.log y exthost.log: https://gist.github.com/Gadansky/f8e84922cd80ff6c76bb50035c9291aa
We haven't seen this failure mode before. I suspect it's specific to your system — perhaps a configuration or corruption issue. Let's see if we can figure it out.
Was this working with previous versions of codex, or is this the first time you've tried to run codex on your system?
Do you have any custom (non-default) configuration settings in your
codex.tomlfile or in yoursettings.jsonfile in VS Code?Do you have any environment variables defined that could affect VS Code's ability to resolve the extension?
We have some additional documentation and troubleshooting tips specific for Windows here.
Thanks for jumping in.
Answers:
1) First time trying Codex on this machine; never had a working version. The error happens on the first run, both Stable 1.106.3 and Insiders 1.107.0-insider.
2) No custom codex.toml (none present). VS Code settings are essentially default; only entries are workbench.colorTheme and the workbench.editorAssociations I added while debugging (chatgpt.conversationEditor for openai-codex:/**/*).
3) No intentional env vars for VS Code/extensions. WSL is installed; otherwise default Windows environment.
Also reproduced with completely clean --user-data-dir/--extensions-dir and --enable-proposed-api openai.chatgpt with a trusted workspace. Logs are attached above.
Happy to try extra logging/diagnostics if helpful.
Update after clean runs on Windows (VS Code 1.106.3):
1) Clean profile, cleared ELECTRON_*:
code --verbose --log=trace --user-data-dir "%USERPROFILE%\codex-clean-user" --extensions-dir "%USERPROFILE%\codex-clean-exts"
Error: Unable to resolve resource openai-codex:/untitled-c5eba9d3-6128-412f-bee9-7b3ebaeaa7d6
2) Same with proposed API and clean profile:
code --enable-proposed-api openai.chatgpt --verbose --log=trace --user-data-dir "%USERPROFILE%\codex-proposed-user" --extensions-dir "%USERPROFILE%\codex-proposed-exts"
Net: Codex backend never starts; the openai-codex resource handler fails immediately even with proposed API and clean state.
codex-clean-logs-20251202T172949.zip
codex-proposed-logs-20251202T173422.zip
I have same problem. Codex works in sidebar, but when I try to create new large chat window it fails, with log