openai / openai/codex

Codex Desktop Windows native sandbox setup fails, WSL works; unelevated fallback also fails

Open
#40,102 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

app bug sandbox windows-os
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.
  • unelevated fallback 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.