You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[VS Code][Windows] Codex 26.721.30844 crashes in multi-root workspaces with "process is not defined" #35073
appIssues related to the Codex desktop appbugSomething isn't workingextensionIssues related to the VS Code extensionwindows-osIssues related to Codex on Windows systems
What version of the Codex App are you using (From “About Codex” dialog)?
26.721.30844
What subscription do you have?
Plus
What platform is your computer?
Windows: 11 24H2 (10.0.26200)
What issue are you seeing?
Environment
VS Code: 1.130.0
OS: Windows 11 x64, build 26200
Codex extension:
Broken: 26.721.30844
Working: 26.715.61943
Problem
Codex works normally in:
an empty VS Code window
a single-folder workspace
Codex fails as soon as a second folder is added to a workspace.
The Codex panel displays:
An error occurred
Developer Tools shows:
ReferenceError: process is not defined
Caused by: React ErrorBoundary Error: process is not defined
What steps can reproduce the bug?
Install Codex extension version 26.721.30844 in VS Code 1.130.0.
Open VS Code with a single local folder.
Open the Codex panel and confirm that it works normally.
Select File > Add Folder to Workspace....
Add any second local folder.
The Codex panel crashes immediately when the second folder is added.
What is the expected behavior?
Codex should continue working when a second folder is added to the VS Code workspace.
If multi-root workspaces are not supported, Codex should display a recoverable validation message instead of crashing the entire panel.
Additional information
Regression comparison:
Empty VS Code window: works
Single-folder workspace: works
Adding a second workspace folder: crashes immediately
Newly created multi-root workspace: also reproduces
Codex 26.715.61943: works with the same multi-root workspace
Codex 26.721.30844: fails consistently
Codex 26.721 works in Antigravity with multiple folders
The crash occurs at the moment the workspace changes from one root folder to two root folders. Reloading VS Code is not required to trigger it.
Reacted by Francis West, nemrac99 and James Picken
changed the title [-]VS Code 1.130.0 - Codex 26.721.30844 crashes with "process is not defined"[/-][+][VS Code][Windows] Codex 26.721.30844 crashes in multi-root workspaces with "process is not defined"[/+]on Jul 24, 2026
The issue is fully reversible without restarting VS Code.
If a second folder is added to the workspace, the Codex panel immediately switches to the error screen.
If that second folder is immediately removed again from the workspace, the Codex panel immediately recovers and returns to the normal UI.
This suggests the extension host does not crash. Instead, the Codex WebView appears to throw an exception while handling the transition from a single-root workspace to a multi-root workspace, and successfully re-renders once the workspace returns to a single root.
Microsoft VS Code 1.130.0 + Codex 26.721.30844:
fails immediately when a second workspace folder is added
Antigravity + the same Codex 26.721 extension:
works normally with the same multi-root workspace
This suggests the issue may depend on differences in the WebView/runtime
environment provided by the host IDE, rather than on the workspace data itself.
VS Code automatically installed 26.721.30844 at 09:04 local time, replacing 26.715.61943.
After VS Code was restarted, the Codex panel failed to open/render.
The extension host successfully activated openai.chatgpt, and the bundled codex.exe app-server remained running, so this was not an extension-host or app-server startup failure.
Codex.log repeatedly recorded the webview React error boundary (name=AppRoutes) immediately after app routes mounted. The same log also recorded /settings/user returning HTTP 403, though that may be secondary rather than the root cause.
Pre-update logs from 26.715.61943 did not contain the repeated React error-boundary failures in the same workspace.
Workaround used: explicitly install and pin [email protected]. VS Code's installed-extension manifest now selects the older version. No project files or Codex configuration were changed.
This independently confirms the 26.721.30844 regression in a Windows multi-root workspace.
Confirmed on Windows 11 with VS Code and Codex extension 26.721.30844. Codex worked normally until the extension updated/reloaded. Removing the second folder from my multi-root workspace immediately restored functionality. The Codex CLI continued to work throughout.
This reproduces for me in Antigravity too, contrary to the comment above saying 26.721 works fine there with multi-root — in my case it fails consistently with 3 folders in the workspace (each its own git repo). I also confirmed it's unrelated to a specific folder: a single-folder window always works, regardless of which folder.
Environment: Antigravity IDE (Google, VS Code fork), extension openai.chatgpt 26.721.30844, Windows 11 x64 (10.0.26200.0), ChatGPT Plus.
Using DevTools → Network tab on the Codex webview, I traced the actual failing request. It's not /settings/user (that 403 also showed up for me, but the real blocker seems to be downstream of it):
GetSlashCommands (fetch) returns HTTP 500 repeatedly — 9 consecutive failures in my capture — before eventually succeeding ~200+ seconds after the panel starts loading. By the time it succeeds, the webview has already tripped the React error boundary (name=AppRoutes) and is stuck on the error screen for good, even though the underlying request did eventually return 200.
Response body on every failing GetSlashCommands call:
{"code":"unknown","message":"failed to resolve cascade config: neither PlanModel nor RequestedModel specified. You must specify a valid model."}
Request payload includes a workspaceUris array with every workspace root:
My read: this looks like a startup race condition — the default model isn't resolved yet when the first GetSlashCommands call fires, and resolving it apparently takes longer the more workspace roots there are to initialize, which is why it only shows up once a second (or third+) folder is present. The 26.715.61943 pin mentioned above as a workaround matches this theory — it's presumably from before whatever change introduced this call's dependency on a resolved model.
appIssues related to the Codex desktop appbugSomething isn't workingextensionIssues related to the VS Code extensionwindows-osIssues related to Codex on Windows systems
Activity
[-]VS Code 1.130.0 - Codex 26.721.30844 crashes with "process is not defined"[/-][+][VS Code][Windows] Codex 26.721.30844 crashes in multi-root workspaces with "process is not defined"[/+]ecaface commentedon Jul 24, 2026
Additional investigation:
I narrowed the reproduction further.
The crash does not depend on any particular project.
Reproduction:
The Codex panel crashes immediately when the second folder is added.
This reproduces with completely new workspaces as well, so it is not related to:
.code-workspacefilesThe trigger appears to be the transition from a single-root workspace to a multi-root workspace.
ecaface commentedon Jul 24, 2026
Additional finding:
The issue is fully reversible without restarting VS Code.
If a second folder is added to the workspace, the Codex panel immediately switches to the error screen.
If that second folder is immediately removed again from the workspace, the Codex panel immediately recovers and returns to the normal UI.
This suggests the extension host does not crash. Instead, the Codex WebView appears to throw an exception while handling the transition from a single-root workspace to a multi-root workspace, and successfully re-renders once the workspace returns to a single root.
ecaface commentedon Jul 24, 2026
Host comparison:
fails immediately when a second workspace folder is added
works normally with the same multi-root workspace
This suggests the issue may depend on differences in the WebView/runtime
environment provided by the host IDE, rather than on the workspace data itself.
Yuanmuya commentedon Jul 24, 2026
Independent reproduction on Windows:
.code-workspacewith 2 local folders[email protected][email protected]Timeline and evidence:
26.721.30844at 09:04 local time, replacing26.715.61943.openai.chatgpt, and the bundledcodex.exe app-serverremained running, so this was not an extension-host or app-server startup failure.Codex.logrepeatedly recorded the webview React error boundary (name=AppRoutes) immediately afterapp routes mounted. The same log also recorded/settings/userreturning HTTP 403, though that may be secondary rather than the root cause.26.715.61943did not contain the repeated React error-boundary failures in the same workspace.Workaround used: explicitly install and pin
[email protected]. VS Code's installed-extension manifest now selects the older version. No project files or Codex configuration were changed.This independently confirms the
26.721.30844regression in a Windows multi-root workspace.nemrac99 commentedon Jul 24, 2026
Confirmed on Windows 11 with VS Code and Codex extension 26.721.30844. Codex worked normally until the extension updated/reloaded. Removing the second folder from my multi-root workspace immediately restored functionality. The Codex CLI continued to work throughout.
vinieduvi commentedon Jul 27, 2026
This reproduces for me in Antigravity too, contrary to the comment above saying 26.721 works fine there with multi-root — in my case it fails consistently with 3 folders in the workspace (each its own git repo). I also confirmed it's unrelated to a specific folder: a single-folder window always works, regardless of which folder.
Environment: Antigravity IDE (Google, VS Code fork), extension
openai.chatgpt26.721.30844, Windows 11 x64 (10.0.26200.0), ChatGPT Plus.Using DevTools → Network tab on the Codex webview, I traced the actual failing request. It's not
/settings/user(that 403 also showed up for me, but the real blocker seems to be downstream of it):GetSlashCommands(fetch) returns HTTP 500 repeatedly — 9 consecutive failures in my capture — before eventually succeeding ~200+ seconds after the panel starts loading. By the time it succeeds, the webview has already tripped the React error boundary (name=AppRoutes) and is stuck on the error screen for good, even though the underlying request did eventually return 200.Response body on every failing
GetSlashCommandscall:{"code":"unknown","message":"failed to resolve cascade config: neither PlanModel nor RequestedModel specified. You must specify a valid model."}Request payload includes a
workspaceUrisarray with every workspace root:{ "cascadeConfig": { ... }, "workspaceUris": [ "file:///c%3A/Users/<user>/.../repo-a", "file:///c%3A/Users/<user>/.../repo-b", "file:///c%3A/Users/<user>/.../repo-c" ] }My read: this looks like a startup race condition — the default model isn't resolved yet when the first
GetSlashCommandscall fires, and resolving it apparently takes longer the more workspace roots there are to initialize, which is why it only shows up once a second (or third+) folder is present. The26.715.61943pin mentioned above as a workaround matches this theory — it's presumably from before whatever change introduced this call's dependency on a resolved model.