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
- Anthropic researcher: 99% of engineers now run swarms of 300+ self-improving agents — AlishaOutridge · 2026-09-11
- Gergely Orosz: Shipping 10x PRs With AI Agents, Sites Fill With Small Regressions — ducha_aiki · 2026-09-11
- Same Echo Maze prompt, three frontier models: all passed visually but shipped the same hidden bug — eyishazyer · 2026-09-11
- Astra storyboards plus Minimax H3 per-shot generation boost video success rates — Hailuo_AI · 2026-09-11
- Codex tip: use Sol with Astra and Luna sub-agents to save usage — pvncher · 2026-09-11
- agents-best-practices: a provider-neutral Agent Skill for designing and auditing agentic harnesses — tom_doerr · 2026-09-11