Skip to content

Windows app starts without renderer or app-server and shows no window #41752

Closed as duplicate

Description

@Xiaoxi-GSY

What version of the Codex App are you using (From “About Codex” dialog)?

26.825.6671.0

What subscription do you have?

ChatGPT Plus

What platform is your computer?

Windows 11, 64-bit (x64), OS build 26200, Region: Singapore

What issue are you seeing?

Version: 26.825.6671.0
Windows activation succeeds with TWinUI event 1621 status 0.
ChatGPT.exe starts main, crashpad, GPU, and utility processes.
No renderer process is created.
codex.exe app-server is not launched.
All processes remain responsive with MainWindowHandle=0.
Codex doctor reports install, auth, WebSocket, and reachability healthy.

What steps can reproduce the bug?

  1. Install or update the ChatGPT/Codex Windows app from the Microsoft Store.
  2. Restart Windows.
  3. Launch ChatGPT from the Start menu.
  4. Wait for at least 30 seconds.
  5. No application window appears.
  6. Open Task Manager and observe that several ChatGPT.exe processes are running.
  7. The main process, crashpad, GPU, and utility processes start, but no renderer process or codex.exe app-server process is created.
  8. Closing all ChatGPT.exe processes and launching the app again produces the same result.
  9. Repairing, resetting, uninstalling, and reinstalling the app does not resolve the issue.

What is the expected behavior?

No response

Additional information

No response

Activity

  1. added
    app
    on Aug 31, 2026
  2. added
    bug
    windows-os
    app-server
    on Aug 31, 2026
  3. Xiaoxi-GSY commented on Aug 31, 2026

    @Xiaoxi-GSY
    Author

    Workaround that successfully launched the app

    I tested the ShowWindow recovery from the original report. The hidden Chrome_WidgetWin_0 window was found successfully, but the synchronous ShowWindow(hwnd, SW_SHOW) call remained blocked for more than 10 minutes and the UI did not appear.

    I then terminated all existing ChatGPT.exe processes and launched the packaged app with the Sparkle updater disabled for the current PowerShell session:

    Get-Process ChatGPT -ErrorAction SilentlyContinue |
        Stop-Process -Force
    
    Start-Sleep -Seconds 3
    
    $env:CODEX_SPARKLE_ENABLED = "false"
    
    $pkg = Get-AppxPackage -Name OpenAI.Codex
    $exe = Join-Path $pkg.InstallLocation "app\ChatGPT.exe"
    
    Invoke-CommandInDesktopPackage `
        -PackageFamilyName $pkg.PackageFamilyName `
        -AppId "App" `
        -Command $exe

    The Codex desktop UI opened successfully with this method.

    Environment:

    OpenAI.Codex 26.825.6671.0
    Microsoft Store MSIX
    Windows 11 x64, build 26200
    

    CODEX_SPARKLE_ENABLED=false was set only in the current PowerShell process; it was not written as a persistent user or system environment variable.

    This result suggests that, at least in this reproduction, the hidden-window/UI-thread stall is connected to the updater startup path. Forcing the existing hidden HWND to become visible was insufficient, while launching the AppX application with the Sparkle updater disabled allowed startup to complete.

  4. BornGo commented on Sep 2, 2026

    @BornGo

    same bug!When can we see solved?

  5. Xiaoxi-GSY commented on Sep 3, 2026

    @Xiaoxi-GSY
    Author

    @BornGo They don't care about the Windows app.

  6. Ssuperketchup commented on Sep 3, 2026

    @Ssuperketchup

    same bug!When will the official repair be completed?

  7. Xiaoxi-GSY commented on Sep 10, 2026

    @Xiaoxi-GSY
    Author

    Confirmed workaround for the persistent headless startup issue

    I have now reproduced this issue multiple times, including after an automatic update to:

    OpenAI.Codex 26.831.1445.0
    Windows 11 x64, build 26200
    Microsoft Store / MSIX
    

    Observed process state

    When the problem occurs, the app starts the following processes:

    ChatGPT.exe main
    ChatGPT.exe crashpad-handler
    ChatGPT.exe gpu-process
    ChatGPT.exe utility (NetworkService)
    ChatGPT.exe utility (StorageService)
    

    However, the following processes are missing:

    ChatGPT.exe --type=renderer
    codex.exe app-server
    

    No visible window appears.

    The following workarounds did not resolve the issue on this build:

    • Reinstalling or resetting the Store application
    • Setting CODEX_SPARKLE_ENABLED=false
    • Setting CODEX_CLI_PATH to a working standalone Codex CLI
    • Updating the standalone CLI to codex-cli 0.152.0
    • Starting with a clean Electron --user-data-dir
    • Starting with --disable-gpu
    • Calling Win32 ShowWindow on the hidden Chrome_WidgetWin_0

    Root cause evidence

    The application repeatedly creates an incomplete directory under:

    %LOCALAPPDATA%\OpenAI\Codex\runtimes\cua_node\.staging-<runtime-hash>-<random>
    

    but fails to create or complete the corresponding finalized runtime directory:

    %LOCALAPPDATA%\OpenAI\Codex\runtimes\cua_node\<runtime-hash>
    

    This machine previously produced the following error when copying protected files from the Microsoft Store package:

    The specified file could not be encrypted.
    HRESULT: 0x80071770
    

    The packaged runtime files have the Encrypted / Application Protected attribute. A normal Copy-Item/CopyFile operation attempts to preserve that attribute at the destination and fails.

    This prevents the bundled cua_node runtime from being materialized, blocking startup before the renderer and Codex app-server are created.

    Confirmed recovery procedure

    The workaround is to copy the bundled cua_node runtime using ordinary file streams. This copies the file contents without attempting to preserve the source package’s Application Protected/EFS attribute.

    The script automatically extracts the runtime hash from the newest .staging-* directory and creates the corresponding finalized runtime directory.

    Run the following in an elevated PowerShell window:

    Get-Process ChatGPT -ErrorAction SilentlyContinue | Stop-Process -Force
    Get-Process codex -ErrorAction SilentlyContinue | Stop-Process -Force
    Start-Sleep -Seconds 3
    
    $pkg = Get-AppxPackage -Name OpenAI.Codex
    $sourceRoot = Join-Path $pkg.InstallLocation "app\resources\cua_node"
    $runtimeRoot = "$env:LOCALAPPDATA\OpenAI\Codex\runtimes\cua_node"
    
    $latestStaging = Get-ChildItem $runtimeRoot `
        -Directory -Force -ErrorAction Stop |
        Where-Object { $_.Name -match "^\.staging-([0-9a-f]+)-" } |
        Sort-Object LastWriteTime -Descending |
        Select-Object -First 1
    
    if (-not $latestStaging) {
        Write-Host "No .staging runtime directory was found." -ForegroundColor Red
        return
    }
    
    $null = $latestStaging.Name -match "^\.staging-([0-9a-f]+)-"
    $runtimeHash = $Matches[1]
    $destinationRoot = Join-Path $runtimeRoot $runtimeHash
    
    Write-Host "Package version: $($pkg.Version)" -ForegroundColor Cyan
    Write-Host "Source: $sourceRoot" -ForegroundColor Cyan
    Write-Host "Incomplete staging directory: $($latestStaging.Name)" -ForegroundColor Yellow
    Write-Host "Final runtime directory: $destinationRoot" -ForegroundColor Cyan
    
    New-Item -ItemType Directory -Path $destinationRoot -Force | Out-Null
    
    $files = @(Get-ChildItem $sourceRoot -Recurse -File)
    $copied = 0
    
    foreach ($sourceFile in $files) {
        $relativePath = $sourceFile.FullName.Substring(
            $sourceRoot.Length
        ).TrimStart("\")
    
        $destinationFile = Join-Path $destinationRoot $relativePath
        $destinationDirectory = Split-Path $destinationFile -Parent
    
        New-Item `
            -ItemType Directory `
            -Path $destinationDirectory `
            -Force |
            Out-Null
    
        $inputStream = $null
        $outputStream = $null
    
        try {
            $inputStream = [IO.File]::OpenRead($sourceFile.FullName)
            $outputStream = [IO.File]::Create($destinationFile)
            $inputStream.CopyTo($outputStream)
    
            $copied++
    
            if (($copied % 250) -eq 0) {
                Write-Host "Copied $copied / $($files.Count)"
            }
        }
        finally {
            if ($outputStream) {
                $outputStream.Dispose()
            }
    
            if ($inputStream) {
                $inputStream.Dispose()
            }
        }
    }
    
    Write-Host "Copy completed: $copied / $($files.Count)" -ForegroundColor Green
    
    $nodeOK = Test-Path "$destinationRoot\bin\node.exe"
    $nodeReplOK = Test-Path "$destinationRoot\bin\node_repl.exe"
    
    Write-Host "node.exe present: $nodeOK"
    Write-Host "node_repl.exe present: $nodeReplOK"

    After the copy completed and both checks returned True, launching the app from the Start menu immediately succeeded. The renderer and codex.exe app-server processes were created normally.

    Persistence problem

    The application worked after the first repair. However, after restarting Windows, a new .staging-<hash>-<random> directory appeared and the application became headless again.

    Running the same stream-copy repair against the newest staging hash restored the application again.

    Therefore, this is not only a one-time first-launch delay. On this machine, the application repeatedly attempts runtime materialization and repeatedly hits the Application Protected/EFS destination-copy failure.

    The application should use a Windows copy mechanism equivalent to:

    COPY_FILE_ALLOW_DECRYPTED_DESTINATION
    

    or automatically fall back to a buffered stream copy when it receives:

    ERROR_ENCRYPTION_FAILED
    6000
    0x80071770
    libuv errno -4094 / UNKNOWN
    

    It should also avoid blocking creation of the application window while the runtime is being prepared and should clean up abandoned .staging-* directories.

  8. goodman-oai commented on Nov 16, 2026

    @goodman-oai
    Contributor

    Closing as a duplicate of #41540. Both Windows reports found the protected cua_node runtime incomplete after staging failed with 0x80071770. No renderer or app-server started. Copying the complete runtime into place restored startup. Reporter’s retest · Same-build confirmation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appapp-serverbugwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions