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
- Data engineering, not agent frameworks, is the real bottleneck for enterprise AI agents — dhruv2038 · 2026-09-11
- GPT-6 Astra beats Factorio with enemies in 44 in-game hours at ~$4,500 API cost — liminal_bardo · 2026-09-11
- 105 hidden bugs, 2 repos: DeepSeek V4.1 Flash fixes 24 at $1.80 vs Opus 5's 27 at $51.33 — ChartsJournalX · 2026-09-11
- Investment Analyst Asks How to Build a Claude-Based Diligence Agent Stack — Careless_Tie2286 · 2026-09-11
- Treating agents like 50 First Dates: a 3-layer context system so every conversation doesn't start from zero — evielync · 2026-09-11
- Running the Firefox MCP on Android via Termux, ngrok, and mcp-proxy — Nervous-Strain7544 · 2026-09-11