Windows 10: Codex Desktop never reruns Windows Setup after Sandbox user is missing (helper_sid_resolve_failed, Win32 error 1332)

Resolved 💬 1 comment Opened Jul 23, 2026 by zhongmumu258 Closed Jul 23, 2026
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

What version of the Codex App are you using (From “About Codex” dialog)?

ChatGPT Desktop: 26.715.72028

What subscription do you have?

free

What platform is your computer?

Windows 10 pro 22h2 x64

What issue are you seeing?

Bug Report

Title

Windows 10: Codex Desktop never reruns Windows Setup after Sandbox user is missing (helper_sid_resolve_failed, Win32 error 1332)

Environment
OS: Windows 10 x64
ChatGPT Desktop: 26.715.72028
Installation: Official installer downloaded from openai.com
Codex Desktop (local)
Problem

Codex can no longer start a local terminal.

Instead of recreating the required Windows Sandbox user, it immediately fails with:

helper_sid_resolve_failed

LookupAccountNameW failed for CodexSandboxOffline: 1332

Windows confirms that the local account does not exist.

However, ChatGPT Desktop never reruns Windows Setup to recreate it.

Reproduction Steps
Install ChatGPT Desktop (26.715.72028).
Codex initially creates:
CodexSandboxOffline
CodexSandboxOnline
Remove those users (or they become unavailable).
Restart ChatGPT Desktop.
Open Codex.
Expected Behavior

If the required Sandbox users are missing, ChatGPT Desktop should automatically rerun Windows Setup and recreate:

CodexSandboxOffline
CodexSandboxOnline

before launching Codex.

Actual Behavior

Windows Setup is never triggered.

Instead, Codex immediately attempts:

LookupAccountNameW("CodexSandboxOffline")

which fails with Win32 error 1332 because the account no longer exists.

Codex then reports:

helper_sid_resolve_failed

No recovery attempt is made.

Verified Troubleshooting

The following were all attempted without success:

Deleted:
%LOCALAPPDATA%\OpenAI
Reinstalled ChatGPT Desktop using the latest installer from openai.com
Restarted Windows
Deleted local sandbox users:
CodexSandboxOffline
CodexSandboxOnline
Verified:
net user CodexSandboxOffline

returns:

The user name could not be found.

Yet ChatGPT Desktop still skips Windows Setup.

setup_error.json
{
"code": "helper_sid_resolve_failed",
"message": "resolve SID for offline user CodexSandboxOffline failed: LookupAccountNameW failed for CodexSandboxOffline: 1332"
}
Additional Notes

During troubleshooting I also observed:

Reinstalling ChatGPT Desktop preserves local Codex state.
Windows Setup is not rerun even though the required Sandbox users no longer exist.
setup_marker.json is still present under:
C:\Users\<user>\.codex\.sandbox\

which may cause the installer to incorrectly assume Windows Setup has already completed.

It appears that Desktop trusts its local setup state without verifying that the required Windows accounts still exist.

A simple validation such as checking whether:

LookupAccountNameW("CodexSandboxOffline")

succeeds before skipping Windows Setup might prevent this state.

Impact

Codex local terminal cannot be started.

Every command fails because the required sandbox account is missing, and there is currently no supported way for the user to force Windows Setup to run again.

One more thing (possibly related)

In the same installation, Codex image generation also consistently returns:

403 Forbidden

while image generation works normally in the regular ChatGPT chat interface under the same account.

I'm not sure whether this is related to the sandbox initialization issue, but both began occurring after the local Codex environment became inconsistent.

What steps can reproduce the bug?

no coment

What is the expected behavior?

_No response_

Additional information

_No response_

View original on GitHub ↗

1 Comment

github-actions[bot] contributor · 1 month ago

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #34313

Powered by Codex Action