Apply_Patch is not working at all on windows system

Resolved 💬 4 comments Opened Jan 22, 2026 by umairshahid-1 Closed Mar 3, 2026

What version of Codex is running?

codex-cli 0.88.0

What subscription do you have?

Plus

Which model were you using?

gpt-5.2-codex

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64

What terminal emulator and version are you using (if applicable)?

PowerShell 7

What issue are you seeing?

Issue: apply_patch Failed with Windows Sandbox Error

Error Message

execution error: Io(Custom { kind: Other, error: "windows sandbox: CryptUnprotectData failed: 2148073483" })

What Happened
Attempted to add comment // Hyy G! to persistence/src/main/java/com/topedge/persistence/model/BusinessEntity.kt

Patch attempted:

  5  
  6 -@Entity(tableName = "business_profiles")
  6 +// Hyy G!
  7 +@Entity(tableName = "business_profiles")
  8  data class BusinessEntity(

Result: Failed twice (including retry with escalated permissions)

apply_patch fails due to Windows sandbox CryptUnprotectData error. Cannot escalate privileges to bypass.

What steps can reproduce the bug?

Please enable the Windows Sandbox experimental feature and elevate permissions. Then, try to edit files; it will attempt to use apply_patch but will fail.

Keep in mind that I am working on a company PC, which has both administrator and user accounts. I encounter this issue while logged in as a user.

What is the expected behavior?

It should edit files or read through using apply_patch. It fails and then continues working with commands that take extra time. Additionally, it has worsened the Codex CLI experience as well.

Additional information

<img width="841" height="831" alt="Image" src="https://github.com/user-attachments/assets/c16faab6-a2b4-467c-a96b-b0ea5a927660" />

My Config.toml files:

[features]
web_search_request = true
check_for_update_on_startup = true
unified_exec = true
shell_snapshot = true
powershell_utf8 = true
collab = true
steer = true
experimental_windows_sandbox = true
elevated_windows_sandbox = true

View original on GitHub ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗