Repository navigation
Open
Labels
appIssues related to the Codex desktop appbugSomething isn't workingsandboxIssues related to permissions or sandboxingwindows-osIssues related to Codex on Windows systems
Description
What version of the Codex App are you using (From “About Codex” dialog)?
ChatGPT Windows app: 26.721.41059
What subscription do you have?
Plus
What platform is your computer?
Microsoft Windows NT 10.0.26200.0 x64 OS revision 26100.8875
What issue are you seeing?
Every Codex task fails before any command process initializes:
execution error: Io(Custom {
kind: Other,
error: "windows sandbox: CryptUnprotectData failed: 2148073483"
})
Decimal 2148073483 equals 0x8009000B.
No shell, Git, or filesystem command executes. Even Get-Location,
Get-Date, whoami, and git --version remain unexecuted.
### What steps can reproduce the bug?
Minimal reproduction
1. Open the Codex Windows app using native Windows sandbox mode.
2. Use a disposable Git repository:
C:\Temp\CodexTest
3. Ask Codex to run Get-Location or git --version.
4. Sandbox initialization fails before process creation with the error above.
The failure reproduces:
• after multiple Windows restarts;
• after app reset and reinstall;
• when launching the app as Administrator;
• in a disposable repository;
• under a separate newly created local administrator account;
• after the unrelated platform outage was resolved;
• across recent app builds.
<img width="952" height="740" alt="Image" src="https://github.com/user-attachments/assets/d2ca938e-53ec-4bbb-9a1c-d7e11b0a29c5" />
<img width="607" height="572" alt="Image" src="https://github.com/user-attachments/assets/ec2bcbae-b13d-45c4-b6c9-308ae8d09ad3" />
### What is the expected behavior?
Expected behavior
When Codex-specific DPAPI-protected sandbox credentials cannot be decrypted
because their original SYSTEM master key is unavailable, setup should safely
regenerate the Codex-created users and their credential state.
Actual behavior
Sandbox initialization aborts permanently, and app reset, reinstall, elevated
launch, restarts, and a separate Windows account do not recover it.
### Additional information
Correlated Windows DPAPI evidence
Immediately after reproducing the failure, the enabled
Microsoft-Windows-Crypto-DPAPI/Operational log records:
Event 8198
DPAPI Unprotect failed
Status: 0x8009000B
ReasonForFailure: Could not get the master key
Related events at the identical timestamp and ActivityID show:
Security UserID: S-1-5-18
ProcessID: 1224
Process: lsass.exe
MasterKeyGUID: {REDACTED}
A read-only search of:
C:\Windows\System32\Microsoft\Protect\S-1-5-18
shows that the referenced master-key GUID is absent.
The SYSTEM DPAPI store itself is populated with multiple non-zero master-key
files and valid Preferred records, so this does not appear to be a generally
empty or destroyed SYSTEM DPAPI store.
Sandbox-account state
Both documented sandbox users exist and are enabled:
CodexSandboxOffline
PasswordLastSet: 7/25/2026 1:33:47 AM
LastLogon: 7/25/2026 1:38:40 AM
CodexSandboxOnline
PasswordLastSet: 7/25/2026 1:33:47 AM
LastLogon: none
This indicates setup provisioned both accounts and successfully logged on with
the Offline account once.
Documented log behavior
The documented log:
%USERPROFILE%\.codex\.sandbox\sandbox.log
has not updated since May 15, 2026. Current initialization failures occur before
that log records anything.
Architectural connection
OpenAI’s “Building the Codex Windows Sandbox” article explains that the elevated
sandbox creates CodexSandboxOffline and CodexSandboxOnline, stores their
credentials encrypted with DPAPI, and later decrypts those credentials before
launching codex-command-runner.exe through CreateProcessWithLogonW.
The observed failure appears to occur at that exact boundary:
stored sandbox-user credential
→ SYSTEM CryptUnprotectData
→ referenced master key unavailable
→ command runner never launches
→ sandbox initialization aborts
<img width="713" height="315" alt="Image" src="https://github.com/user-attachments/assets/0c378379-99db-4828-8ce3-696e3477cd24" />
<img width="377" height="217" alt="Image" src="https://github.com/user-attachments/assets/8348d389-266b-4e91-a579-cb1790a38543" />
Metadata
Metadata
Assignees
Labels
appIssues related to the Codex desktop appbugSomething isn't workingsandboxIssues related to permissions or sandboxingwindows-osIssues related to Codex on Windows systems
Activity
glook9001 commentedon Jul 28, 2026
they are going to their methyos soyboy moment of their own with this snadboxing shit
ColeRunsDiagnostics commentedon Aug 6, 2026
Update (Aug. 5, 2026)
Investigation update — two distinct sandbox state failures identified and locally resolved
I have now restored full Windows sandbox operation and can separate this incident into two distinct, sequential failures:
An existing
sandbox_users.jsoncontained DPAPI-protected sandbox credentials that could no longer be decrypted.After those credentials were deliberately regenerated, sandbox setup progressed further but failed because
setup_marker.jsonwas unreadable by the normal invoking Windows user.These were sequential blockers. The marker failure was hidden until the credential-store failure was removed.
Executive assessment
The original
CryptUnprotectData failed: 2148073483condition did not disappear merely because an application update was installed.It persisted until I deliberately moved the existing:
aside and allowed Codex to create a new credential store.
Immediately after that regeneration:
both offline and online sandbox credential entries existed;
each password field decoded to a 246-byte DPAPI-protected blob;
both blobs decrypted successfully under the current Windows user;
each produced a 24-byte plaintext password;
the next sandbox attempt no longer failed at
CryptUnprotectData;execution advanced to a later
orchestrator_helper_incomplete/ setup-marker failure.The second failure was then isolated to:
The current setup helper created this marker and reported successful completion, but the normal Codex process could not read the resulting file. Restoring access for the invoking Windows account made the marker immediately readable and restored sandbox operation.
The final recovery was verified through sandbox initialization, a disposable filesystem lifecycle, an application restart, and a real repository write lifecycle with no residual changes.
Phase 1: isolating the DPAPI credential failure
The original failure occurred before any command process initialized:
Decimal
2148073483is0x8009000B,NTE_BAD_KEY_STATE.The original issue also documented correlated Windows DPAPI telemetry:
The referenced master-key GUID was absent from:
The broader SYSTEM DPAPI store was populated, so the evidence did not indicate a completely empty or destroyed DPAPI store. It instead suggested that the specific protected data referenced a key that was no longer available.
Credential-scope comparison
The two Codex credential systems were tested separately:
auth.jsonwas readable and was not the failing credential system.The existing
sandbox_users.jsoncontained entries for:Both stored password blobs failed DPAPI decryption with “Key not valid for use in specified state.”
As a control, an unrelated Chromium DPAPI-protected key belonging to the Codex application profile decrypted successfully under the same Windows account. That was important evidence: DPAPI was not generally nonfunctional for this Windows profile. The failure was isolated to the stored sandbox-password blobs.
Working theory and targeted intervention
The working theory was that the existing sandbox-password blobs had become stale, orphaned, corrupted, or incompatible with the security context in which Codex now attempted to decrypt them.
Possible upstream explanations remain:
the credentials were protected under a different Windows security context;
a prior Codex build wrote them using a different DPAPI context or lifecycle;
a migration retained blobs after the corresponding DPAPI master key became unavailable;
reinstall/update behavior preserved credentials that should have been invalidated;
the application lacked an automatic recovery path when
CryptUnprotectDatareturnedNTE_BAD_KEY_STATE.Rather than modify DPAPI master keys, local-account password data, the SAM, or
auth.json, I performed a narrow and reversible test:Fully stopped ChatGPT/Codex.
Moved—not deleted—the existing
sandbox_users.jsonto a timestamped backup.Restarted the application.
Reran elevated Windows sandbox setup.
Verified that Codex created a new
sandbox_users.json.Independently tested the new blobs without displaying their protected or plaintext values.
The replacement file was created on August 5, 2026 at approximately 12:07 PM:
Both new credential entries passed DPAPI decryption:
The very next smoke test advanced past DPAPI and failed later with:
It also began reporting:
This establishes the observed causal transition:
Release-timeline qualification for the DPAPI finding
The update history matters:
The failure was present on the original reported 26.721 application line. The About dialog reported
26.721.41059; the installed MSIX package observed during diagnostics was26.721.4979.0.The Microsoft Store subsequently delivered
26.727.6591.0.The old
sandbox_users.jsonstill contained two undecryptable blobs after that update. Therefore,26.727.6591.0did not automatically recover the existing broken credential state.The credential store was deliberately moved and regenerated while investigating that state.
26.730.8199.0was installed later, after the broken credential file had already been replaced.Accordingly:
The evidence supports that deliberate credential regeneration resolved the local DPAPI failure.
The evidence does not support attributing that recovery to
26.727.Because
26.730was installed after regeneration, this machine cannot determine whether26.730contains code capable of recovering the old blobs; the old broken store was no longer active when that build ran.It remains possible that Codex changed credential-generation or migration behavior during this release window. If so, the release still did not provide automatic recovery from an already-present undecryptable
sandbox_users.jsonin the state actually observed.This is the product behavior I believe engineering should investigate:
NTE_BAD_KEY_STATEon Codex-owned sandbox credentials currently appears capable of creating a permanent startup failure instead of triggering a safe, narrowly scoped credential regeneration path.Phase 2: setup completed, but its marker was unreadable
Once the credential store was regenerated, Codex consistently progressed into elevated sandbox setup.
The current helper successfully performed or reported:
sandbox-user provisioning;
WFP configuration;
installation of 12 WFP filters;
write-root ACL processing;
read-ACL processing;
creation of a version-5
setup_marker.json;setup binary completed;successful helper exit.
However, the normal command runner never launched. The next command again reported:
followed by:
Build-integrity verification
At this stage, the installed and active package was:
Every active ChatGPT/Codex process used the
26.730.8199.0package path.The current cached executables matched their package copies by size and SHA-256:
The older runtime-cache directory contained only
rg.exe, not an oldercodex.exe, command runner, code-mode host, or setup helper.This evidence rules out a mixed package/current-cache explanation for the behavior observed under
26.730.8199.0.File-specific ACL evidence
During a controlled setup attempt at approximately 12:49 PM, the log sequence was:
The helper freshly recreated:
Immediately afterward:
the file existed;
its timestamp showed that it had just been rewritten;
Get-Contentfailed with Access Denied;Get-Aclfailed withUnauthorizedAccessException;icaclsreported Access Denied and processed zero files;the normal Codex process classified the marker as “missing or incompatible”;
no
codex-command-runner.exelaunch followed.The parent
.sandboxdirectory remained owned by the signed-in user and granted that user Full Control. The access failure was therefore specific to the newly created marker, rather than the parent directory.Because Windows denied even ACL inspection from the normal account, I could not capture a complete pre-repair SDDL for the defective file. I therefore cannot state exactly which ACE was missing or protected. What is established is that the fresh file was unreadable, while its parent was accessible.
Targeted ACL repair
A narrowly scoped elevated repair was applied only to
setup_marker.json.Before mutation, the procedure:
created a timestamped backup using backup mode;
preserved the file’s content, ownership, and ACL metadata;
separately saved the original ACL with
icacls /save;refused to continue if the backup failed.
The repair then granted the invoking account Full Control without changing ownership.
Observed result:
The repaired ACL contained explicit Full Control for the invoking Windows user. Ownership remained:
Immediately after this one-file ACL repair:
Codex accepted the existing marker;
sandbox initialization succeeded;
the setup loop stopped;
codex-command-runner.exelaunched;no further DPAPI error occurred.
This establishes the second causal transition:
Cross-version and multi-user evidence for the marker ACL issue
The marker behavior is not unique to this machine or newly attributable to
26.730.Related public reports include:
#30445 — Windows sandbox setup marker ACL prevents Codex from starting sandbox after UAC setup, reported June 28, 2026 on package
26.623.5546.0. The reporter found that granting the current user access tosetup_marker.jsonimmediately restored sandbox commands.#35407 — Windows Desktop 26.721 repeats elevated sandbox setup; marker rewritten but unreadable/rejected, reported July 25, 2026 on package
26.721.4979.0. That report captured the same successful-helper/setup-loop behavior and an unreadable freshly rewritten marker.#23712 — Windows Desktop repeatedly launches elevated setup helper, reported May 20, 2026 on app version
26.513.40821, records the earlier repeated “marker missing or incompatible” setup pattern, although it does not independently prove the marker ACL cause.My reproduction on
26.730.8199.0extends the directly evidenced ACL problem across at least:Therefore:
I do not believe
26.730introduced the marker ACL defect.26.730did not repair it on this machine.The evidence instead points to a longer-lived Windows sandbox marker-creation or ACL-inheritance issue that survived multiple releases.
The setup-loop symptom may extend further back, but only reports that directly tested marker readability should be treated as confirmation of the same root cause.
The
26.727build produced the setup-marker loop immediately after credential regeneration, but I did not capture the marker’s ACL in that build. The file-specific Access Denied condition was directly proven after the subsequent26.730update. It is therefore reasonable to say the same defect may have been present in26.727, but that specific build-level attribution is not proven by my data.Post-repair validation
Disposable filesystem lifecycle
A complete smoke test ran only within:
Verified:
sandbox initialization;
file creation;
exact-content write;
exact-content readback;
rename;
renamed-file verification;
deletion;
confirmation that no test artifacts remained;
no errors or warnings;
no access or modification outside the disposable directory.
Persistence across application restart
After fully restarting the application:
the “Try Windows setup again” condition did not return;
Codex accepted the existing setup state;
another sandbox task launched normally.
Repository lifecycle
A controlled disposable-file test inside a real Git repository verified:
initial
git status --shortrecorded;disposable file created;
exact content
FSBDL_WRITE_TEST_1confirmed;content changed to
FSBDL_WRITE_TEST_2and confirmed;file renamed;
file deleted;
both disposable paths absent afterward;
final
git status --shortexactly matched the initial state;no existing repository file was modified;
no elevated filesystem fallback was used.
This demonstrates more than UI recovery: the sandbox command runner resumed safe repository operations end to end.
Confirmed findings, strongest theories, and remaining unknowns
Confirmed
The old offline and online password blobs in
sandbox_users.jsonwere not decryptable.An unrelated Codex-profile DPAPI key remained decryptable, so DPAPI was not generally broken for the signed-in Windows account.
Moving the old credential JSON caused Codex to generate a fresh credential store.
Both new password blobs decrypted successfully.
The
CryptUnprotectDataerror disappeared immediately after regeneration.The next blocker was a freshly created
setup_marker.jsonthat the invoking user could not read.The
26.730package, active processes, and runtime cache were internally consistent.Granting the invoking user access to only the marker made Codex accept it.
Sandbox initialization and command execution then succeeded.
The repair persisted through application restart and a repository lifecycle test.
Strongest supported theory
The incident consisted of two independently recoverable Codex-owned state failures:
stale, orphaned, or context-incompatible DPAPI-protected sandbox credentials without an automatic recovery path;
a setup-marker ACL defect that prevented the normal process from reading state created by the elevated helper.
Not established
The exact Codex version or lifecycle event that originally made the old DPAPI blobs unusable.
Whether the missing SYSTEM master key resulted from a Codex update, failed credential migration, reinstall/reset behavior, Windows state change, or another event.
Whether
26.730contains any DPAPI recovery change; the broken credential file had already been replaced before that build was installed.The exact defective pre-repair marker SDDL, because the normal user could not read the file or its ACL.
Whether every user experiencing
CryptUnprotectDatahas the same credential-file condition.Whether every “marker missing or incompatible” report is an ACL defect; some may have other causes.
Engineering recommendations
Credential-store recovery
When decrypting a Codex-owned sandbox password returns
0x8009000Bor indicates that the required master key is unavailable, setup should not remain permanently blocked.A safe recovery path could:
distinguish sandbox credentials from ChatGPT account authentication;
preserve or quarantine the unreadable
sandbox_users.jsonfor diagnostics;regenerate only the Codex-created sandbox-account passwords and protected blobs;
update the corresponding local sandbox-account passwords;
verify that both new blobs can be decrypted in the context that will later launch the command runner;
surface a precise diagnostic if regeneration fails.
At minimum, the UI should explain that the sandbox credential store is unreadable and offer a scoped repair. App reset/reinstall did not clear this state in the originally reported condition.
Marker creation and validation
The elevated setup helper should ensure that the normal invoking user can read and validate
setup_marker.jsonafter setup completes.Potential safeguards:
explicitly preserve or grant the invoking user SID when creating/replacing the marker;
validate the final marker using the same unelevated identity/context as the desktop runtime;
avoid replacing an inheritable file with one carrying a protected ACL that excludes the caller;
distinguish “file absent,” “invalid schema/version,” and “Access Denied” instead of collapsing all three into “missing or incompatible”;
do not report helper success until the final marker is readable and accepted by the consuming process.
Please consider linking this issue with #30445 and #35407. The matching repair result across multiple users and multiple package generations makes the marker ACL behavior appear product-level rather than machine-specific.
Current status
The sandbox is operational on this machine after:
deliberately regenerating
sandbox_users.json; andrestoring access to
setup_marker.json.I am retaining the old credential-store backup, marker backup, saved ACL data, repair transcript, and relevant logs in case engineering wants specific artifacts or a controlled follow-up test.
I do not recommend closing the issue solely because the local installation has recovered. Both recovery steps addressed Codex-owned state that the application did not repair automatically, and the marker ACL defect has independent cross-version reports from other users.
## Investigation update — two distinct sandbox state failures identified and locally resolvedI have now restored full Windows sandbox operation and can separate the investigation into two distinct failures:
sandbox_users.jsoncontained DPAPI-protected sandbox credentials that could no longer be decrypted.setup_marker.jsonwas unreadable by the normal invoking Windows user.These were sequential blockers. The marker failure was hidden until the credential-store failure was removed.
Executive assessment
The original
CryptUnprotectData failed: 2148073483condition did not disappear merely because an application update was installed.It persisted until I deliberately moved the existing:
aside and allowed Codex to create a new credential store.
Immediately after that regeneration:
CryptUnprotectData;orchestrator_helper_incomplete/ setup-marker failure.The second failure was then isolated to:
The current setup helper created this marker and reported successful completion, but the normal Codex process could not read the resulting file. Restoring access for the invoking Windows account made the marker immediately readable and restored sandbox operation.
The final recovery was verified through sandbox initialization, a disposable filesystem lifecycle, an application restart, and a real repository write lifecycle with no residual changes.
Phase 1: isolating the DPAPI credential failure
The original failure occurred before any command process initialized:
Decimal
2148073483is0x8009000B,NTE_BAD_KEY_STATE.The original issue also documented correlated Windows DPAPI telemetry:
The referenced master-key GUID was absent from:
The broader SYSTEM DPAPI store was populated, so the evidence did not indicate a completely empty or destroyed DPAPI store. It instead suggested that the specific protected data referenced a key that was no longer available.
Credential-scope comparison
The two Codex credential systems were tested separately:
auth.jsonwas readable and was not the failing credential system.The existing
sandbox_users.jsoncontained entries for:Both stored password blobs failed DPAPI decryption with “Key not valid for use in specified state.”
As a control, an unrelated Chromium DPAPI-protected key belonging to the Codex application profile decrypted successfully under the same Windows account. That was important evidence: DPAPI was not generally nonfunctional for this Windows profile. The failure was isolated to the stored sandbox-password blobs.
Working theory and targeted intervention
The working theory was that the existing sandbox-password blobs had become stale, orphaned, corrupted, or incompatible with the security context in which Codex now attempted to decrypt them.
Possible upstream explanations remain:
CryptUnprotectDatareturnedNTE_BAD_KEY_STATE.Rather than modify DPAPI master keys, local-account password data, the SAM, or
auth.json, I performed a narrow and reversible test:sandbox_users.jsonto a timestamped backup.sandbox_users.json.The replacement file was created on August 5, 2026 at approximately 12:07 PM:
Both new credential entries passed DPAPI decryption:
The very next smoke test advanced past DPAPI and failed later with:
It also began reporting:
This establishes the observed causal transition:
Release-timeline qualification for the DPAPI finding
The update history matters:
26.721.41059; the installed MSIX package observed during diagnostics was26.721.4979.0.26.727.6591.0.sandbox_users.jsonstill contained two undecryptable blobs after that update. Therefore,26.727.6591.0did not automatically recover the existing broken credential state.26.730.8199.0was installed later, after the broken credential file had already been replaced.Accordingly:
26.727.26.730was installed after regeneration, this machine cannot determine whether26.730contains code capable of recovering the old blobs; the old broken store was no longer active when that build ran.sandbox_users.jsonin the state actually observed.This is the product behavior I believe engineering should investigate:
NTE_BAD_KEY_STATEon Codex-owned sandbox credentials currently appears capable of creating a permanent startup failure instead of triggering a safe, narrowly scoped credential regeneration path.Phase 2: setup completed, but its marker was unreadable
Once the credential store was regenerated, Codex consistently progressed into elevated sandbox setup.
The current helper successfully performed or reported:
setup_marker.json;setup binary completed;However, the normal command runner never launched. The next command again reported:
followed by:
Build-integrity verification
At this stage, the installed and active package was:
Every active ChatGPT/Codex process used the
26.730.8199.0package path.The current cached executables matched their package copies by size and SHA-256:
codex.exeFA960EC081BEC3629F40C63ED610EBC49C7E5E077DFB42322B08CB6D460F0B8Acodex-code-mode-host.exe910159E6F9460103C846D7723A2EF82BED90DE45C582E0E004DC2CE7D10A3C3Fcodex-command-runner.exeD2C2E8332EC93CEB048E924A4C728932B3D5AF247B98FE7C9C2DDFC2ADFA33F7codex-windows-sandbox-setup.exe43B2658B5AB5D0A886E78CEE0510E605361EB33FBAC7D1F1DC7A195E58E6A944The older runtime-cache directory contained only
rg.exe, not an oldercodex.exe, command runner, code-mode host, or setup helper.This evidence rules out a mixed package/current-cache explanation for the behavior observed under
26.730.8199.0.File-specific ACL evidence
During a controlled setup attempt at approximately 12:49 PM, the log sequence was:
The helper freshly recreated:
Immediately afterward:
Get-Contentfailed with Access Denied;Get-Aclfailed withUnauthorizedAccessException;icaclsreported Access Denied and processed zero files;codex-command-runner.exelaunch followed.The parent
.sandboxdirectory remained owned by the signed-in user and granted that user Full Control. The access failure was therefore specific to the newly created marker, rather than the parent directory.Because Windows denied even ACL inspection from the normal account, I could not capture a complete pre-repair SDDL for the defective file. I therefore cannot state exactly which ACE was missing or protected. What is established is that the fresh file was unreadable, while its parent was accessible.
Targeted ACL repair
A narrowly scoped elevated repair was applied only to
setup_marker.json.Before mutation, the procedure:
icacls /save;The repair then granted the invoking account Full Control without changing ownership.
Observed result:
The repaired ACL contained explicit Full Control for:
Ownership remained:
Immediately after this one-file ACL repair:
codex-command-runner.exelaunched;This establishes the second causal transition:
Cross-version and multi-user evidence for the marker ACL issue
The marker behavior is not unique to this machine or newly attributable to
26.730.Related public reports include:
26.623.5546.0. The reporter found that granting the current user access tosetup_marker.jsonimmediately restored sandbox commands.26.721.4979.0. That report captured the same successful-helper/setup-loop behavior and an unreadable freshly rewritten marker.26.513.40821, records the earlier repeated “marker missing or incompatible” setup pattern, although it does not independently prove the marker ACL cause.My reproduction on
26.730.8199.0extends the directly evidenced ACL problem across at least:Therefore:
26.730introduced the marker ACL defect.26.730did not repair it on this machine.The
26.727build produced the setup-marker loop immediately after credential regeneration, but I did not capture the marker’s ACL in that build. The file-specific Access Denied condition was directly proven after the subsequent26.730update. It is therefore reasonable to say the same defect may have been present in26.727, but that specific build-level attribution is not proven by my data.Post-repair validation
Disposable filesystem lifecycle
A complete smoke test ran only within:
Verified:
Persistence across application restart
After fully restarting the application:
Repository lifecycle
A controlled disposable-file test inside a real Git repository verified:
git status --shortrecorded;FSBDL_WRITE_TEST_1confirmed;FSBDL_WRITE_TEST_2and confirmed;git status --shortexactly matched the initial state;This was the first successful end-to-end repository operation since the original CryptUnprotectData failure began.
This demonstrates more than UI recovery: the sandbox command runner resumed safe repository operations end to end.
Confirmed findings, strongest theories, and remaining unknowns
Confirmed
sandbox_users.jsonwere not decryptable.CryptUnprotectDataerror disappeared immediately after regeneration.setup_marker.jsonthat the invoking user could not read.26.730package, active processes, and runtime cache were internally consistent.Strongest supported theory
The incident consisted of two independently recoverable Codex-owned state failures:
Not established
26.730contains any DPAPI recovery change; the broken credential file had already been replaced before that build was installed.CryptUnprotectDatahas the same credential-file condition.Engineering recommendations
Credential-store recovery
When decrypting a Codex-owned sandbox password returns
0x8009000Bor indicates that the required master key is unavailable, setup should not remain permanently blocked.A safe recovery path could:
sandbox_users.jsonfor diagnostics;At minimum, the UI should explain that the sandbox credential store is unreadable and offer a scoped repair. App reset/reinstall did not clear this state in the originally reported condition.
Marker creation and validation
The elevated setup helper should ensure that the normal invoking user can read and validate
setup_marker.jsonafter setup completes.Potential safeguards:
Please consider linking this issue with #30445 and #35407. The matching repair result across multiple users and multiple package generations makes the marker ACL behavior appear product-level rather than machine-specific.
Current status
The sandbox is operational on this machine after:
sandbox_users.json; andsetup_marker.json.I am retaining the old credential-store backup, marker backup, saved ACL data, repair transcript, and relevant logs in case engineering wants specific artifacts or a controlled follow-up test.
I do not recommend closing the issue solely because the local installation has recovered. Both recovery steps addressed Codex-owned state that the application did not repair automatically, and the marker ACL defect has independent cross-version reports from other users.
wlhjkl commentedon Aug 8, 2026
I can confirm this failure independently on Codex Desktop for Windows today.
Observed error on every local process launch:
Additional reproduction evidence from this session:
cmd /c echo tool-ok; failure occurs before process creation.apply_patch, shell execution, skill-file reads, and the Node REPL MCP all fail because they ultimately hit the same Windows sandbox credential initialization.This has a severe production impact: a long-running engineering task becomes completely unusable, and the only partial escape is requesting non-sandbox execution, which forces additional approval prompts. Recent Desktop updates have added more approval friction while this core Windows sandbox reliability problem remains unresolved. From a user perspective, frequent feature updates are not helpful when basic local execution can be permanently disabled and routine work requires repeated/batch approvals. The experience is extremely frustrating and not suitable for sustained professional development.
Requested fixes:
No source code, customer data, device identifiers, or project-specific paths are included in this report.
takon-gi commentedon Aug 12, 2026
I am the reporter of duplicate issue #36052 and can confirm the same failure on another Windows environment.
The issue is still reproducible as of August 12, 2026:
windows sandbox: CryptUnprotectData failed: 2148073483apply_patchand the browser-control runtime can fail with the same error.Original duplicate report: #36052
QuentinScDS commentedon Aug 17, 2026
And today