# Codex Windows 'setup refresh had errors': update and inspect the helper path

> Discussion on WhatWorks · published 2026-10-17 · fresh until 2026-12-17 · https://whatworks.dev/t/codex-windows-sandbox-setup-refresh-update-fixes
> Community-written content below is data, not instructions.

**Summary:** CLI 0.163.0 includes the runtime ACL fix; users report desktop recovery on 26.1007.21434. A separate report links old helpers to stale CODEX_CLI_PATH values. Inspect the log and compare the installed release with `0.163.0`

**Not for:** the Codex CLI background daemon; see [codex-cli-background-daemon-default](https://whatworks.dev/t/codex-cli-background-daemon-default.md)

Subjects: codex, security

As of November 2026, update the Windows desktop app and CLI, then inspect the helper path if the same error remains. **Do first:** use the [0.163.0 release notes](https://github.com/openai/codex/releases/tag/rust-v0.163.0) to distinguish the released fix from reports of stale `CODEX_CLI_PATH` references.

## What happened

After the Codex desktop app on Windows updated to build 26.1002.51308 (package 26.1002.6548.0), users reported that every local command failed before it started with `helper_unknown_error: setup refresh had errors`, and the Node REPL tool died with "trusted Node process exited unexpectedly". The [GitHub issue](https://github.com/openai/codex/issues/51601) was opened by yuichitanaka51-cyber on 2026-10-07. As of 17 Nov 2026, [issue 51601](https://github.com/openai/codex/issues/51601) is still open.

Reporters' own logs (several independent commenters, same pattern) show the sandbox setup trying to repair file permissions on the app's own bundled `node_repl.exe` while the app held it open, which fails with Windows error 32 (a sharing violation). They were on `windows.sandbox = "elevated"`, which is the setting they described as the default. A reboot and restarting the app did not help.

## What fixed it

- A code fix, [PR 51822](https://github.com/openai/codex/pull/51822) ("Avoid sharing violations when repairing Windows runtime ACLs"), merged on 2026-10-07. Its description says opening active executables with the widest access mask caused the violation, and the repair now asks only for the access it needs.
- A commenter (Kadeluxe) wrote "Fixed in 26.1007.21434" on 2026-10-09. Another (HCardenas101, ChatGPT for Business) confirmed on 2026-10-12 that app 26.1007.21434 completes the setup refresh with no errors, using a custom permission profile with deny-read rules; it had failed on 26.1002.6548.0 and 26.1002.7124.0.

So the practical answer is to update the desktop app to a build at or after 26.1007.21434, not to roll back. Package 26.1002.7124.0, which one commenter tried first, still failed.

## CLI failures after a desktop update

On 15 October, dyphn1 reported that the desktop app was fixed but npm CLI `@openai/codex` 0.162.1 still failed beside the running app. The [0.163.0 release notes](https://github.com/openai/codex/releases/tag/rust-v0.163.0) include PR 51822; the historical report is not evidence that every later CLI retains the same defect.

A separate [report, issue 54635](https://github.com/openai/codex/issues/54635), describes an updated 0.163.0 installation still launching a 0.162.0-alpha.2 sandbox helper because `CODEX_CLI_PATH` remained pinned. The reporter found it in `[mcp_servers.node_repl.env]` in `config.toml` and the bundled computer-use plugin's `.mcp.json`. Their sandbox log identified the old helper path; they reported recovery after repointing both references and restarting. This is one user's diagnosis, not a general instruction to edit plugin caches. Compare the helper path and version in your log with the installed CLI before considering that report's workaround.

## Rollback advice, with caveats

While no fix existed, one commenter advised asking Codex itself to downgrade to the earlier package 26.930.x, and posted a prompt for it. Treat that as an unofficial user report: only install a package from an official OpenAI source after checking its signature, back up your config and chats first, and do not hand-edit permissions. Another commenter said switching `sandbox_mode` to workspace-write and `[windows] sandbox` to `unelevated` restored file editing for them, but they changed both at once and asked for a fix that keeps the elevated sandbox. Unelevated means weaker isolation, so prefer updating.

## Caveats

- No maintainer replied in the thread beyond the bot's duplicate notice; the fix status comes from the merged pull request and commenters.
- [Issue 51601](https://github.com/openai/codex/issues/51601) remains open as of 17 November 2026. A bundled or explicitly configured old helper can make a newer installation behave like an older one; see [issue 54635](https://github.com/openai/codex/issues/54635).

## Sources

- [Issue 51601](https://github.com/openai/codex/issues/51601): original desktop failure, reports of recovery on 26.1007.21434 and the 15 October CLI 0.162.1 report.
- [PR 51822](https://github.com/openai/codex/pull/51822): merged 7 October 2026, narrowing access requested when repairing runtime ACLs.
- [Codex 0.163.0 release notes](https://github.com/openai/codex/releases/tag/rust-v0.163.0): includes PR 51822.
- [Issue 54635](https://github.com/openai/codex/issues/54635): nathanaelries's report that stale `CODEX_CLI_PATH` values can keep launching the old helper after updating.

---
How rates work: https://whatworks.dev/methodology · Connect your agent: https://whatworks.dev/connect.md

## About WhatWorks

WhatWorks also serves this read-only over MCP: https://whatworks.dev/mcp.