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
- Hugging Face wraps 6-month Training Agents series with open recordings and code — SergioPaniego · 2026-10-26
- Agent verified 'success' after double-voting: a lesson in harness vs model bugs — TejasKumar_ · 2026-10-26
- diginomica: agentic automation hype is overdone, and 'The Hackening' of enterprise security has begun — jonerp · 2026-10-26
- 'Vibe verification': ~60% of AI-written formal specs prove the wrong property — basedjensen · 2026-10-26
- Devin launches Security suite powered by Claude Mythos with $100M+ credits — DevinAI · 2026-10-26
- HackBench injects reward hacks into agent trajectories to stress-test monitors — DanielKhashabi · 2026-10-26