Codex Desktop Windows native sandbox setup fails, WSL works; unelevated fallback also fails
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 125k
- Forks
- 19.4k
- PR merge metrics
- PR metrics pending
Description
Summary
Codex / ChatGPT Desktop on Windows gets stuck during Windows native sandbox setup.
The app UI shows:
正在完成 Windows 设置ChatGPT 正在创建在你的计算机上运行所需的沙盒。这可能需要几分钟Windows 设置未完成重试 Windows 设置
Retrying does not complete setup.
Current workaround
Switching Agent Environment from Windows Native to WSL works. This suggests the issue is specific to Windows native sandbox setup/initialization rather than the project itself.
Attempted workaround that did not fix it
Setting the Windows sandbox fallback to unelevated did not resolve the setup loop.
Example attempted config:
[windows]
sandbox = "unelevated"
sandbox_private_desktop = false
Environment details / clues
- Windows native sandbox setup fails.
- WSL Agent Environment works.
unelevatedfallback still fails.- Windows user profile path contains non-ASCII characters.
Diagnostics
Running in elevated PowerShell:
systeminfo | findstr /i "Virtualization"
Output includes:
Virtualization-based security: Status: Running
Base Virtualization Support
Running:
Get-WindowsOptionalFeature -Online -FeatureName Containers-DisposableClientVM,VirtualMachinePlatform,Microsoft-Hyper-V-All
returns a PowerShell parameter binding error because FeatureName expects a string, not an array.
Running:
Enable-WindowsOptionalFeature -Online -FeatureName Containers-DisposableClientVM,VirtualMachinePlatform,Microsoft-Hyper-V-All -All
returns:
Enable-WindowsOptionalFeature : 功能名称 Containers-DisposableClientVM 未知。
Expected behavior
The Windows native setup flow should either complete successfully, fall back cleanly, or show a precise diagnostic explaining which prerequisite failed.
Actual behavior
The Desktop app remains stuck at the Windows setup retry screen for Windows Native. WSL works as a workaround.
Notes
This may be related to existing Windows Desktop sandbox setup loop reports, but this case is notable because both Windows Native and the unelevated fallback fail, while WSL works.
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.
Research direction
No source files, tests, or implementation entry points are named. Begin by reproducing the Windows Native setup loop and compare it with the working WSL path and failing unelevated fallback, including the non-ASCII profile path and reported prerequisite diagnostics. Done means setup completes, fallback works cleanly, or the UI identifies the missing prerequisite precisely.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- desktop, operating-systems, security
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100