Repository navigation
Description
Summary
On Windows desktop, explicitly authorized removal of identified application diagnostic/cache files was rejected before process creation under Full Access. After the owner changed this same task to Ask for approval, a supported per-action approval request succeeded for that bounded cleanup.
Related: #54746 and #41068. This report adds a successful owner-approved comparison; it does not establish that the underlying cause is identical to either issue.
Environment and evidence limits
- Windows desktop, observed 2026-10-25 (Asia/Hong_Kong).
- Bundled CLI queried during read-only diagnosis:
codex-cli 0.164.0-alpha.11.1. This is not an independently verified desktop app version or proof of the binary involved in every earlier rejection. - The rejected task reported unrestricted filesystem access /
danger-full-access, withapproval_policy=never. - No usable
/approvecommand was present in the desktop command menu.
Observed failure
The user had explicitly approved the identified cleanup. The command checked that the application was not running, validated exact approved paths and rejected reparse points before non-recursive per-file removal.
The tool rejected the invocation before PowerShell/process creation:
exec_command failed: CreateProcess
Rejected(... rejected: blocked by policy)
No Windows access-denied error or child-process output was returned, and those attempts deleted nothing.
Read-only diagnosis found 43 explicit allow entries and no forbidden/prompt entries in the inspected user rules file. A static codex execpolicy check against that file and a representative removal command returned {"matchedRules":[]}. This tests only the supplied rules, not every active or managed enforcement layer. Checked standard local project/system locations did not explain the rejection.
Successful supported approval path
- The owner changed the current task's permission mode to Ask for approval.
- The subsequent task context reported
workspace-writeand restricted filesystem roots. - The agent used the normal
require_escalatedrequest with a specific justification covering only the approved diagnostic files and application-owned pipeline cache, preserving saved games, configuration and shared driver caches. - After approval, PowerShell returned exit code 0:
{
"DeletedFiles": 18,
"Skipped": 0,
"DeletedBytes": 513839013,
"FreeBytesDelta": 513875968,
"AfterFreeBytes": 1782423552
}A separate read-only follow-up confirmed no matching diagnostic files or pipeline cache remained and that saved-game/configuration directories still existed.
The earlier and successful scripts had the same bounded cleanup purpose and safety checks, with a small change to tolerate missing directories; they were not a byte-for-byte controlled experiment. This comparison demonstrates a working approval path for this batch, not the cause of the initial refusal or a universal deletion fix.
Expected behavior / requested investigation
- Identify the deciding policy/rule and actionable reason for pre-process refusal.
- If an operation requires additional review but Full Access sets approvals to Never, explain that conflict in the UI and provide a supported way for the owner to request per-action review.
- Keep destructive-operation safeguards intact; do not require broad allow rules or alternate executors.
- Document the supported Windows desktop workflow and affected/fixed app versions.
No private paths, usernames, credentials, conversation/session identifiers, raw logs or source files are included.
Activity
github-actions commentedon Oct 25, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
robineverswift commentedon Oct 25, 2026
Closing as a duplicate of #54746 after comparing the related reports. The core Full Access rejection and successful Ask for approval recovery were already documented there. Our additional 18-file successful cleanup evidence is preserved in #54746 (comment) .
This closure consolidates the discussion; it does not mean the underlying policy/diagnostic issue has been fixed.