Skip to content

[Windows] helper_unknown_error: setup refresh had errors after updating to Codex CLI 0.161.0 #52171

Open

Description

@athlon-cuomo

Problema

Dopo l’aggiornamento della Codex CLI alla versione 0.161.0, proposto tra le 14:59 e le 15:02 dell’8 ottobre 2026, Codex su Windows ha iniziato a fallire nell’esecuzione dei comandi locali.

Errore:

Failed to create unified exec process:
helper_unknown_error: setup refresh had errors

Il problema si verifica prima dell’avvio di PowerShell o CMD e può impedire anche comandi semplici come:

Get-Location
Get-Content
pwd
git status --short

Ambiente

  • Windows
  • Codex CLI 0.161.0
  • Progetto: C:\Users\cuomo\Desktop\ATHLON
  • Modalità sandbox: workspace-write

Log

Il log sandbox mostra:

runtime read/execute validation failed

Percorso coinvolto:

C:\Users\cuomo\AppData\Local\OpenAI\Codex\runtimes\cua_node\1b30f7d4d73226ca\bin\node_repl.exe

Errore Windows:

Impossibile accedere al file. Il file è utilizzato da un altro processo.
(os error 32)

Erano presenti contemporaneamente diversi processi:

  • codex.exe
  • codex-code-mode-host
  • codex-command-runner
  • codex-computer-use-swift
  • node.exe
  • node_repl.exe

Comportamento

Il problema è intermittente. Alcuni comandi Git possono funzionare, mentre PowerShell o la lettura dei file falliscono. PowerShell esterno funziona correttamente nello stesso progetto, quindi il problema sembra limitato al sandbox/runtime di Codex.

Sono stati provati:

  • chiusura e riapertura di Codex;
  • riavvio di Windows;
  • chiusura forzata dei processi Codex e Node;
  • riavvio del servizio sandbox;
  • rimozione del runtime CUA;
  • verifica delle cartelle temporanee;
  • esecuzione dei comandi da PowerShell esterno.

Workaround

Il problema scompare avviando Codex con:

codex --sandbox danger-full-access

Con questa modalità Get-Location e la lettura dei file funzionano correttamente.

Tuttavia, danger-full-access è solo un workaround e non una soluzione definitiva, perché disabilita le protezioni del sandbox.

Problemi aggiuntivi

Codex mostra inoltre:

WARNING: failed to clean up stale arg0 temp dirs: Accesso negato

e occasionalmente:

Hook failed
hook exited with code 1

Risultato atteso

Il sandbox dovrebbe consentire l’esecuzione dei comandi in modalità workspace-write senza errori ACL, senza conflitti con node_repl.exe e senza richiedere danger-full-access.

Il problema sembra collegato alla validazione ACL del runtime CUA mentre node_repl.exe è ancora utilizzato da un altro processo.

Activity

  1. added
    bug
    CLI
    windows-os
    sandbox
    tool-calls
    on Oct 8, 2026
  2. changed the title [-][Windows] helper_unknown_error: setup refresh had errors dopo aggiornamento Codex CLI 0.161.0[/-] [+][Windows] helper_unknown_error: setup refresh had errors after updating to Codex CLI 0.161.0[/+] on Oct 8, 2026
  3. github-actions commented on Oct 8, 2026

    @github-actions
    Contributor

    English translation:

    Problem

    After updating Codex CLI to version 0.161.0, which was offered between 14:59 and 15:02 on October 8, 2026, Codex on Windows began failing to execute local commands.

    Error:

    Failed to create unified exec process:
    helper_unknown_error: setup refresh had errors

    The problem occurs before PowerShell or CMD starts and can prevent even simple commands such as:

    Get-Location
    Get-Content
    pwd
    git status --short

    Environment

    • Windows
    • Codex CLI 0.161.0
    • Project: C:\Users\cuomo\Desktop\ATHLON
    • Sandbox mode: workspace-write

    Logs

    The sandbox log shows:

    runtime read/execute validation failed

    Affected path:

    C:\Users\cuomo\AppData\Local\OpenAI\Codex\runtimes\cua_node\1b30f7d4d73226ca\bin\node_repl.exe

    Windows error:

    Cannot access the file. The file is being used by another process.
    (os error 32)

    Several processes were running simultaneously:

    • codex.exe
    • codex-code-mode-host
    • codex-command-runner
    • codex-computer-use-swift
    • node.exe
    • node_repl.exe

    Behavior

    The problem is intermittent. Some Git commands may work, while PowerShell or file reads fail. External PowerShell works correctly in the same project, so the problem appears to be limited to the Codex sandbox/runtime.

    The following were tried:

    • closing and reopening Codex;
    • restarting Windows;
    • forcibly terminating Codex and Node processes;
    • restarting the sandbox service;
    • removing the CUA runtime;
    • checking temporary folders;
    • running commands from external PowerShell.

    Workaround

    The problem disappears when starting Codex with:

    codex --sandbox danger-full-access

    In this mode, Get-Location and file reads work correctly.

    However, danger-full-access is only a workaround and not a permanent solution, because it disables sandbox protections.

    Additional problems

    Codex also displays:

    WARNING: failed to clean up stale arg0 temp dirs: Access denied

    and occasionally:

    Hook failed
    hook exited with code 1

    Expected result

    The sandbox should allow commands to run in workspace-write mode without ACL errors, without conflicts with node_repl.exe, and without requiring danger-full-access.

    The problem appears to be related to ACL validation of the CUA runtime while node_repl.exe is still being used by another process.

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

    CLIbugsandboxtool-callswindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions