Skip to content

Windows desktop: exec_command fails before process creation with helper_unknown_error: setup refresh had errors #49851

Open

Description

@vlastimilvajnorak

Summary

In a Codex desktop chat on Windows, every attempted local command fails before process creation. This blocks reading workspace instructions, inspecting Git state, making changes, and running tests. Retrying in a subsequent user turn produces the same failure.

Environment

  • Codex desktop on Windows
  • Shell: PowerShell
  • Local repository workspace
  • Sandbox mode: workspace-write; managed restricted filesystem profile
  • Codex version/build: unavailable in this session

Reproduction

  1. Open a local repository chat in Codex desktop.
  2. Ask the agent to inspect or modify the repository.
  3. Invoke exec_command with Get-Location and login: false.
  4. Retry with an explicit Windows PowerShell executable path.
  5. Retry in a subsequent conversation turn.

Actual result

All of these attempts fail before the command runs:

exec_command failed: CreateProcess { message: "Rejected(\"Failed to create unified exec process: helper_unknown_error: setup refresh had errors\")" }

The same failure occurred for both a minimal read-only command and a repository inspection command. MCP tool calls still execute, so the observed failure is specific to local command execution rather than all tools.

Expected result

Read-only PowerShell commands should execute in the configured workspace, or the application should return actionable diagnostics identifying which setup refresh step failed and how to recover.

Impact

The agent cannot carry out an authorized code-review fix, inspect ownership/worktrees, or run validation.

Additional observation

Separately, GitHub connector PR-read calls for the private target repository returned HTTP 404, while public repository search and the connected-user profile call succeeded. The cause of those 404s is unverified, and there is no evidence that they share a root cause with the local execution failure.

No restart recovery has been tested. No credentials, private source code, or private repository identifiers are included in this report.

Activity

  1. added
    bug
    app
    windows-os
    sandbox
    tool-calls
    on Oct 1, 2026
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

    appbugsandboxtool-callswindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions