[VS Code][Windows] Codex 26.721.30844 crashes in multi-root workspaces with "process is not defined"

Open 💬 6 comments Opened Jul 24, 2026 by ecaface

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?

  1. Install Codex extension version 26.721.30844 in VS Code 1.130.0.
  2. Open VS Code with a single local folder.
  3. Open the Codex panel and confirm that it works normally.
  4. Select File > Add Folder to Workspace....
  5. 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.

View original on GitHub ↗

6 Comments

ecaface · 1 month ago

Additional investigation:

I narrowed the reproduction further.

The crash does not depend on any particular project.

Reproduction:

  1. Open any single local folder.
  2. Verify Codex works.
  3. Select File → Add Folder to Workspace...
  4. Choose any second local folder.

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:

  • existing .code-workspace files
  • workspace storage
  • project contents
  • AGENTS.md
  • specific repositories

The trigger appears to be the transition from a single-root workspace to a multi-root workspace.

ecaface · 1 month ago

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 · 1 month ago

Host comparison:

  • 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.

Yuanmuya · 1 month ago

Independent reproduction on Windows:

  • Windows 11 Pro x64, build 28000
  • VS Code 1.130.0
  • Multi-root .code-workspace with 2 local folders
  • Broken extension: openai.chatgpt@26.721.30844
  • Previously working extension: openai.chatgpt@26.715.61943

Timeline and evidence:

  1. VS Code automatically installed 26.721.30844 at 09:04 local time, replacing 26.715.61943.
  2. After VS Code was restarted, the Codex panel failed to open/render.
  3. 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.
  4. 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.
  5. 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 openai.chatgpt@26.715.61943. 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.

nemrac99 · 1 month ago

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 · 1 month ago

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:

{
  "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 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.