openai / openai/codex

CryptUnprotectData failed

Open
#41,042 2 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

app auth bug tool-calls windows-os
Dominant language
Rust
Stars
125k
Forks
19.4k
PR merge metrics
PR metrics pending

Description

Codex Desktop on Windows repeatedly fails before starting any PowerShell command:

CryptUnprotectData failed: 2148073483

The failure occurs during CreateProcess, including for simple read-only commands.
Restarting/retrying the task did not recover it.
No repository files were modified and no tests/builds were run.
The repeated environment failure consumed approximately 50% of the task token budget.

Date: 2026-08-27
Timezone: Asia/HongKong
Workspace: Windows Codex worktree
Request: investigate DPAPI credential decryption failure in the Codex command host and consider restoring consumed usage.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No repository files, tests, or entry points are named. Start by reproducing the Windows CreateProcess failure with a simple PowerShell command and trace the Codex command host's DPAPI credential-decryption path. Done means identifying the cause of error 2148073483 and defining or implementing a verified fix; usage restoration is a separate, unresolved request.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell, rust
Domain
cli, operating-systems, security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.