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
What terminal emulator and version are you using (if applicable)?
Windows Terminal v1.23.20211.0
What issue are you seeing?
Running the command produces no output. The submitted record is just an example; all other commands I run on my computer exit with code -1 and produce no output.
Execute Get-ChildItem -Force once. Do not retry if it fails.
• Executing Get-ChildItem -Force once as requested. I will return the result of this single attempt without retrying.
• Ran Get-ChildItem -Force
└ (no output)
• Get-ChildItem -Force was executed 1 time. The attempt failed (exit code 1) and, as requested, was not retried.
Therefore, I granted the CodexOffline account read and execute permissions for the C:/Users/wangz directory via File Explorer, but the same error persists.
Since codex-command-runner.exe is loaded at runtime, I am unsure how to debug it. Furthermore, even after modifying None in the following code to a log file path, no logs are generated, likely due to permission issues preventing file writes:
@AnonTokio It's probably the issue reported here: #10090, some permission issue when PowerShell is installed via the Microsoft Store. Try uninstalling PowerShell and reinstall it via the MSI installer, that fixed it for me.
@chausner Thanks! After uninstalling PowerShell and reinstalling by scoop, the problem is resolved. This may be related to the permissions of the AppData folder.
Activity
github-actions commentedon Mar 18, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
takina0802 commentedon Mar 18, 2026
This issue is similar to #13917, and both remain unsolved.
takina0802 commentedon Mar 19, 2026
Through debugging, I discovered that the issue lies in the following code:
codex/codex-rs/windows-sandbox-rs/src/elevated_impl.rs
Lines 391 to 392 in db5781a
After
write_frame, the call toread_spawn_readyreturns a result indicating that the command execution failed:This error occurs when
codex-command-runner.exeexecutes the following code:codex/codex-rs/windows-sandbox-rs/src/process.rs
Lines 126 to 138 in db5781a
It appears to be a permissions issue. I also noticed that the account used in the following code is
CodexOffline:codex/codex-rs/windows-sandbox-rs/src/elevated_impl.rs
Lines 309 to 327 in db5781a
Therefore, I granted the
CodexOfflineaccount read and execute permissions for theC:/Users/wangzdirectory via File Explorer, but the same error persists.Since
codex-command-runner.exeis loaded at runtime, I am unsure how to debug it. Furthermore, even after modifyingNonein the following code to a log file path, no logs are generated, likely due to permission issues preventing file writes:codex/codex-rs/windows-sandbox-rs/src/process.rs
Lines 226 to 236 in db5781a
I do not understand why new accounts like CodexOffline and CodexOnline need to be created instead of simply using the local Windows user account.
chausner commentedon Mar 20, 2026
@AnonTokio It's probably the issue reported here: #10090, some permission issue when PowerShell is installed via the Microsoft Store. Try uninstalling PowerShell and reinstall it via the MSI installer, that fixed it for me.
takina0802 commentedon Mar 21, 2026
@chausner Thanks! After uninstalling PowerShell and reinstalling by scoop, the problem is resolved. This may be related to the permissions of the
AppDatafolder.