Codex VS Code extension crashes in multi-root workspaces with `process is not defined`
xchang1121 · ghdev · 2026-07-24
What happened
The Codex VS Code extension crashes in multi-root workspaces on Windows with ReferenceError: process is not defined. The entire sidebar is replaced by the generic error boundary.
Technical detail
- The failing path uses bundled path logic such as Nc.default.posix.relative(Ni(e), Ni(t))
- The bundled browser-side path implementation eventually calls process.cwd()
- VS Code WebViews do not expose the Node.js process global
Repro
- Create two folders and a .code-workspace file
- Open it in VS Code
- Open the Codex sidebar
- The panel crashes with process is not defined
Notes
- The reporter says clearing state and WebView cache does not fix it.
- The issue is specific to multi-root workspaces; empty and single-folder workspaces still work.
More from coding & agent
- NVIDIA says Nemotron 3 Ultra hit 97.1% on agentic RTL chip-design tasks — NVIDIAAI · 2026-07-27
- Tokyo Agent Forge hackathon shipped production-ready AI agents in one day — DavidBennett__ · 2026-07-27
- Long-running agents will need immutable event logs, this thread argues — sebpaquet · 2026-07-27
- Agentic Data Science in Practice: Agents Write Code but Answer Wrong Questions — hugobowne · 2026-07-27
- A VS Code extension adds Markdown-style highlighting to Alchemy string templates — samgoodwin89 · 2026-07-27
- Claude’s Stripe MCP connector is being called unusable after repeated disconnects — evielync · 2026-07-27