Repository navigation
Description
What version of Codex CLI is running?
codex-cli 0.157.0
What subscription do you have?
ChatGPT Pro Lite — as displayed by /status
Which model were you using?
GPT-6-Astra, reasoning effort high
What platform is your computer?
Windows — exact build not collected
What terminal emulator and version are you using (if applicable)?
PowerShell — terminal emulator/version not collected
Codex doctor report
Not collected.What issue are you seeing?
I am developing my own application in a local demo environment on Windows. I authorized Codex to restore access to my existing administrator account using the project's documented and audited recovery procedure, preserving MFA and existing permissions.
An exec_command call was rejected before PowerShell started:
Rejected: blocked by policy
The rejected call combined three actions:
- Issuing a temporary authorization for supervised MFA recovery.
- Preparing local access instructions.
- Opening Notepad.
The available error does not identify which action triggered the rejection or which policy layer made the decision.
My password has already been reset successfully and is accepted by the application. Enrolling a new authenticator remains pending.
I cannot determine whether this was an intended restriction or a false positive. I am requesting a diagnosis and a supported resolution, not removal of MFA or bypassing Codex protections.
Uploaded thread: 01a0d703-3294-76e0-8621-c548da5b0e9e
What steps can reproduce the bug?
Uploaded thread: 01a0d703-3294-76e0-8621-c548da5b0e9e
What is the expected behavior?
If execution must be denied, provide an actionable explanation identifying the responsible policy layer and the specific reason.
Clarify why this rejection has no corresponding denial available through /approve, and whether a supported approval or remediation procedure exists under the current session policy.
The requested resolution should preserve the sandbox, MFA and application authorization controls.
Additional information
Read-only inspection did not locate applicable .rules files in the inspected user, project and ancestor locations. This does not establish that no other policies apply.
The local execpolicy checker was not run with empty or invented rules. The original rejection does not establish whether recovery authorization, Notepad, the combined command or another factor caused the block.
No new recovery authorization was generated by the rejected call. No policy settings were changed during the diagnostic investigation.
Incident date: 2026-09-25.
Activity
github-actions commentedon Sep 25, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
tidree commentedon Sep 25, 2026
Additional finding from read-only inspection of the original rejected command:
It contained Start-Process to open Notepad with a local file argument. HTTP localhost URLs appeared separately, inside the text of the instructions being written. They were not arguments to Notepad. There was no Invoke-Item.
This matches the command pattern described in #40060. The is_dangerous_powershell_words implementation in tag rust-v0.157.0 checks for URLs and launch-related tokens without requiring them to belong to the same invocation.
This supports a hypothesis, not a confirmed runtime diagnosis. The original error exposed no classifier result or responsible rule.
Could maintainers correlate the uploaded thread, confirm whether #40060 applies, and identify a supported resolution?
No rejected command was rerun and no security settings were changed.
Uploaded thread: 01a0d703-3294-76e0-8621-c548da5b0e9e