求助搞机大佬,由codex引起的

2026-04-11 15:061阅读0评论SEO基础
  • 内容介绍
  • 文章标签
  • 相关推荐
问题描述:

image1680×1012 51.8 KB
image696×1258 139 KB
起初是想用codex读取一下项目工程,它说调用PowerShell 失败,按照ai查到要修复什么东西。到这里不敢乱试了,有无大佬懂这个,感谢回答

网友解答:
--【壹】--:

感谢佬友


--【贰】--:

那系统就没问题 让codex 输出他调用错误的详细日志


--【叁】--: zxyacg:

PowerShell

运行这个


--【肆】--:

我配置了【[shell_environment_policy.set]
SystemRoot = “C:\Windows”
windir = “C:\Windows”

[windows]
sandbox = “unelevated”】

然后重启cli 就好了


--【伍】--:

image749×115 5.78 KB
这个我可以打开


--【陆】--:

image666×933 81.3 KB
我把更新禁用给打开,codex就能调ps操作了,就正常了


--【柒】--:

什么ps,怎么看


--【捌】--:

打开ps看看具体是什么错误 你这不是codex引起的


--【玖】--:

我知道啥问题了,奶奶的,是我这个软件禁用win11更新,就会影响到它,这可咋办啊,冲突了


--【拾】--:

可以看下这个issue

github.com/openai/codex

Codex desktop on Windows cannot start PowerShell host in session (8009001d)

已打开 11:36PM - 07 Mar 26 UTC TaylorAdamCA bug windows-os app

### What version of the Codex App are you using (From “About Codex” dialog)? 26….305.950.0 ### What subscription do you have? Go, Planning to go Pro if I can get it to work ### What platform is your computer? Microsoft Windows NT 10.0.26200.0 x64 ### What issue are you seeing? ## Summary Codex desktop is unable to run any shell command on Windows because its managed PowerShell host fails during initialization. This blocks all repo access and file operations from the assistant, even for trivial commands like `Get-Location`. ## Environment - OS: Windows - App: Codex desktop - Shell configured in session: PowerShell - Workspace: local repo on Windows filesystem ## What I Expected Codex should be able to start the shell host and run normal commands in the workspace, for example: ```powershell Get-Location Get-ChildItem -Force git status --short ``` ## What Actually Happened `Every command fails before execution with the same PowerShell host startup error. **Observed errors:** ``` text Internal Windows PowerShell error. Loading managed Windows PowerShell failed with error 8009001d. ``` Also saw once during earlier attempts: ``` text CreateProcessWithLogonW failed: 1056 ``` ## Impact This makes the coding agent unusable for local development tasks because it cannot: - inspect files - search the repo - edit code - run tests - run git commands ## Result The command does not run. The shell host fails immediately with: ```text Internal Windows PowerShell error. Loading managed Windows PowerShell failed with error 8009001d. ``` ## Troubleshooting Already Tried - Restarted Codex - Restarted the session/thread - Granted full access - Rebooted Windows - Installed Windows updates - Ran sfc /scannow with no issues found - Reinstalled the Codex desktop app ## Additional Notes PowerShell itself appears to work normally outside Codex. Running this manually succeeds: ```powershell powershell -NoProfile -Command "Write-Output ok" ``` That suggests the problem is specific to the Codex desktop shell host / PowerShell integration rather than Windows PowerShell itself. ## Request Please investigate the Windows PowerShell host initialization path in Codex desktop, specifically around the managed host startup and any crypto/profile-related dependency that could trigger error 8009001d. ### What steps can reproduce the bug? ## Steps To Reproduce 1. Open Codex desktop on Windows. 2. Open any local workspace. 3. Start a new chat/session. 4. Ask the agent to run any simple shell command in the workspace, examples: ```powershell Get-Location Get-ChildItem -Force git status --short ``` ### What is the expected behavior? ## What I Expected Codex should be able to start the shell host and run normal commands in the workspace, for example: ```powershell Get-Location Get-ChildItem -Force git status --short ``` ### Additional information _No response_


--【拾壹】--:

凉拌。。。禁用更新跟这玩意正常来说不冲突