You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Application failed to start correctly (Windows) #14153
Error will be reported when operating the command.
Anti-virus software has no interception, and it is executed with the permission of super administrator.
I presume you're using the Codex IDE Extension? Which version? I presume you're running on Windows based on the screen shot and error code. Are you using WSL?
Activity
github-actions commentedon Mar 10, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
etraut-openai commentedon Mar 10, 2026
English translation of dialog: "The application failed to start correctly (0xc0000022). Click OK to close the application."
etraut-openai commentedon Mar 10, 2026
I presume you're using the Codex IDE Extension? Which version? I presume you're running on Windows based on the screen shot and error code. Are you using WSL?
Can you provide more specific repro steps?
XiaodengziBoy commentedon Mar 10, 2026
Both the extension codex and codex applications of vscode have this problem.
[-]vscode codex bug[/-][+]Application failed to start correctly (Windows)[/+]aptx4869zoe commentedon Mar 11, 2026
I have the same problem when it use some commad like this: $ Get-ChildItem -Force
magic-249 commentedon Mar 12, 2026
是否开启了这个,为代理模式启用沙盒
magic-249 commentedon Mar 12, 2026
windows11,vscode1.111.0 (system setup),codex 26.304.20706同样的问题
magic-249 commentedon Mar 13, 2026
@XiaodengziBoy 你是否升级了powershell7
XiaodengziBoy commentedon Mar 17, 2026
我发现就是开了沙盒模式或者默认权限会报错,操作不了命令。但是完全访问权限可以正常试用
magic-249 commentedon Mar 17, 2026
我以为是我升级ps7导致的;
我删除codex相关文件重新下载后可以运行,但是开沙盒就会重现问题
meideng-liukaining commentedon Mar 26, 2026
有解决吗?
boooooommmmmm commentedon Mar 27, 2026
尝试关闭沙盒模式? Try to turn off sandbox mode?
codex --sandbox danger-full-access
(也可以在 config.toml中永远关闭
sandbox_mode = "danger-full-access")nzwl2020 commentedon Apr 18, 2026
You can give this solution a try.
#14729 (comment)
youxin666 commentedon May 15, 2026
解决了!把这个问题贴过去给codex成功解决了!
问题根因就是那两个 VC++ 运行库 DLL 缺少 Users:(RX) 权限。
这是codex的回答
FHF404 commentedon May 19, 2026
【已解决】我这边遇到同样的 codex-command-runner.exe 报 0xc0000022 问题,确认不是杀毒软件、管理员权限或 PowerShell 本身的问题,runner 直接运行是正常的,但 Codex 在 Windows 的 elevated 沙箱模式下会用 CodexSandboxOffline 这个本地沙箱用户去启动 runner,这条路径在我机器上会失败,表现为 Windows 弹窗 codex-command-runner.exe Application Error 0xc0000022,Codex 里则是 windows sandbox: timed out after 15000ms connecting runner pipe-in;解决方法是编辑 %USERPROFILE%.codex\config.toml,把 [windows] 下面的 sandbox = "elevated" 改成 sandbox = "unelevated",然后完全重启 Codex / VS Code / Codex App,重启后普通命令就能正常执行了。这个方法不是关闭沙箱,而是把 Windows 沙箱后端从 elevated 换成 unelevated,避开会崩的 elevated command runner 路径。