Symptom
After a Windows Desktop update, every local command fails before it starts. Browser tools may fail too. Rebooting does not help.
Evidence what you'll see
- Error:
helper_unknown_error: setup refresh had errors - Reported on Desktop 26.1002.52244 (package 26.1002.7124.0) with bundled CLI 0.162.0-alpha.2
- A user reported the same failure with the npm CLI 0.162.1 on 2026-10-15, while the Desktop app on the same machine worked
Why it happens
Users traced it to the runtime validator opening files Windows has mapped as running images, which causes a sharing violation (os error 32). A related upstream change, PR #51822, targets this, but the issue is still open and the npm CLI is still reported failing.
Affected versions
Windows. The report is app 26.1002.51308, build 13417, with the elevated setting, after a helper whose command-runner was 0.160.1. A later comment names Desktop 26.1002.52244 (build 13536). On 2026-10-15, with Desktop package OpenAI.Codex_26.1007.9446.0_x64__2p2nqsd0c76g0 running, npm @openai/codex 0.162.1 still failed on Windows 11 Pro 10.0.26200.9457. The linked issue does not name a Node version.
Fix steps
0 of 3 done
Your check marks stay in this browser only.
How to check it worked
- A simple command such as
Get-Locationreturns exit code 0 without escalation. - For the CLI, rerun the same check with the CLI version noted.
If it still fails
- On npm CLI
0.162.1the 2026-10-15 report still showshelper_unknown_error: setup refresh had errorswhile the Desktop app is open. That report's workaround is to quit the app processes and moveruntimes\cua_node\<hash>out ofruntimes\cua_node. Settingwindows.sandboxtounelevateddid not help in that report (cannot enforce split writable root sets). The linked issue does not name an npm release that includes pull request 51822.
Sources and credit
Summarized in our own words from these public reports. Credit goes to their authors.
Provided as is, without warranty. Try changes in a non-production environment and back up first. Security-related steps: verify against the official docs. Terms · Request removal or attribution change
Hit an error we don't cover? Submit it