Codex Desktop (Windows): app crashes to error screen with "process is not defined" when a multi-root project is selected
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Domain
- desktop, operating-systems
Research direction
Start with the Codex Desktop logs under %LOCALAPPDATA%\Packages\OpenAI.Codex_2p2nqsd0c76g0\LocalCache\Local\Codex\Logs\2026\07\24\ and inspect the selected-project entry in ~/.codex/.codex-global-state.json. Reproduce with a project whose rootPaths length is greater than one, then trace the renderer error. Done means multi-root projects no longer show the process-is-not-defined error and the app remains usable after restart.
Written by the indexing model from the issue text.
Description
Summary
Creating a project with two root folders (multi-repo project) on Codex Desktop for Windows causes the renderer to crash with Error: process is not defined. Once such a project is selected, the app shows the full-screen error ("An error occurred / Update ChatGPT / Try again") 13–22 seconds after every launch, making the app permanently unusable until the project entry is manually removed from ~/.codex/.codex-global-state.json.
Environment
- App: Codex Desktop (MSIX package
OpenAI.Codex, version 26.721.3404.0) - OS: Windows 11 Home 10.0.26200
- Reproduced twice on 2026-07-24 with two different multi-root projects (same two repos)
Steps to reproduce
- On Codex Desktop, create a new project and select two local repositories as roots (e.g.
C:\...\repoAandC:\...\repoB). - The renderer crashes; the full-screen error boundary appears.
- Restart the app → it crashes again ~13–22 s after launch, every time, because
selected-projectin~/.codex/.codex-global-state.jsonstill points to the multi-root project.
Single-root projects (28 of them across my two state files) never trigger this. The only variable is rootPaths.length > 1.
Log evidence
From %LOCALAPPDATA%\Packages\OpenAI.Codex_2p2nqsd0c76g0\LocalCache\Local\Codex\Logs\2026\07\24\codex-desktop-*.log:
- Dominant language
- Rust
- Stars
- 125k
- Forks
- 19.5k
- Avg merge
- 1m
- Merged PRs (30d)
- 1k
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from openai/codex
-
enhancement remote
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
bug CLI windows-os
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
macOS sandbox blocks hw.optional.arm64 sysctl, causing Flutter to misdetect Apple Silicon as x64 Openbug CLI sandbox
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
bug CLI TUI
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
-
CLI config enhancement skills
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
kwakseongjae/auto-hwp#319 ·
-
area:cli bug filter-quality good first issue priority:medium
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
bevyengine/bevy#25861 ·
-
comp-datalake
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
ClickHouse/ClickHouse#121222 ·
-
A-linter
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
oxc-project/oxc#26863 ·