Skip to content

Windows desktop tasks fail before shell execution: “setup refresh had errors” #52121

Open

Description

@paulsdroidx-cell

What version of Codex CLI is running?

Codex CLI version is 0.160.0

What subscription do you have?

PRO

Which model were you using?

GPT-6.1-SOL

What platform is your computer?

Environment: - CLI: 0.160.0 - Windows: 25H2, build 26200.9457; registry label says “Windows 10 Home” - Desktop app version: not yet collected - Latest observed failure: October 8, 2026, 13:33 UTC

What terminal emulator and version are you using (if applicable)?

No response

Codex doctor report

What issue are you seeing?

exec-server rejected request (-32603): helper_unknown_error: setup refresh had errors.

Separate clue: a CLI version check warned “Could not find home directory.” CODEX_HOME was unset; USERPROFILE and PowerShell $HOME pointed to an existing folder, but Windows UserProfile lookup returned empty. Its connection to the desktop failure is unknown.
Uploaded feedback reference: 01a104ae-465c-7fe3-8329-ddf0d52a13a9. This feedback came from the working CLI context, not the failing desktop task.

What steps can reproduce the bug?

Uploaded thread: 01a104ae-465c-7fe3-8329-ddf0d52a13a9

start a dot-managed task on the connected Windows computer and request Get-Location. It fails before the command executes. Expected: the command runs normally.

The original standalone CLI runs commands successfully. Chrome-extension browser reads work. Restarting the desktop app and selecting full access did not resolve it. The home-directory warning is a separate clue, not a confirmed cause.

What is the expected behavior?

No response

Additional information

No response

Activity

  1. added
    bug
    on Oct 8, 2026
  2. added
    app
    windows-os
    sandbox
    on Oct 8, 2026
  3. SProst commented on Oct 8, 2026

    @SProst

    I'm seeing the same error with a desktop-managed task on Windows:

    Failed to create unified exec process: exec-server rejected request (-32603): helper_unknown_error: setup refresh had errors

    • Repeated execution attempts fail before any command runs, including after restarting the desktop app.
    • The computer still shows as connected, attached, and authorized. The app's terminal stays at “waiting for environment”; it has not successfully run a command.
    • As a separate control, Get-Location succeeds in standalone Windows Terminal Preview with PowerShell 7.7.0-preview.5.
    • No project commands succeeded and no project files were modified by the task.

    The desktop app version, Windows build, bundled engine version, and detailed helper logs have not been verified. This matches the reported symptom, but I haven't established that it has the same root cause.

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

    appbugsandboxwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions