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
Windows Agent Build Blocked by Unidentified Policy #43629
bugSomething isn't workingsandboxIssues related to permissions or sandboxingtool-callsIssues related to tool callingwindows-osIssues related to Codex on Windows systems
Unexplained pre-execution rejection of authorized file restoration
Additional occurrence in the VS Code extension 26.5908.31748 on Windows x64. Suspected approval-review issue, not a confirmed root cause.
Observed
On Windows, an explicitly authorized source restoration was rejected twice by the agent shell tool exec_command, before PowerShell process creation. The returned error contained:
The session reports danger-full-access / unrestricted filesystem and approval policy never. No elevation override was requested. The user explicitly authorized the restoration, then reaffirmed full access. No more specific policy reason was returned.
Intended operation
Verify SHA-256 of nine current files and their preserved backups.
Verify the preserved replacement DOCX against an expected SHA-256.
Copy that DOCX over one reviewed file.
Remove two exact, individually named, already archived files.
No recursive deletion, wildcard target, raw git, credential access, network transfer, or lifecycle-record editing was requested. Content lifecycle locks were acquired through the supported manager before each attempt. After rejection, status showed no edits; the locks were released without completion.
Other filesystem operations, including a separately reviewed cleanup using the same shell tool, succeeded in this session. This is not evidence of a general inability to write the workspace.
Expected
An authorized, bounded restoration should execute if allowed. If a separate safety rule prohibits it despite the displayed permission settings, provide an actionable explanation identifying the restriction and supported resolution.
Actual and impact
Generic blocked by policy before process creation, with no actionable reason. The agent cannot distinguish a legitimate restriction from a review false positive and cannot finish the authorized restoration. An operator-run script has been prepared; the agent has not used another execution route to evade the rejection.
Investigation requested
Identify which approval/review layer issued this rejection.
Determine whether this specific command was correctly classified.
Explain why unrestricted access does not resolve it, and improve the error if that behavior is intentional.
Identify a supported recovery that preserves safety review.
This report intentionally omits customer names, clinical content, full local paths and conversation identifiers. Exact command evidence remains local and can be provided privately if needed. The rejection alone does not establish that PowerShell, the content lifecycle manager, or the language tools are defective.
Follow-up: repeated refusal and permission checks
The operator successfully performed the original restoration directly in PowerShell. A later agent request to remove one exact, SHA-256-verified, backed-up obsolete CEL file was again rejected before process creation with blocked by policy. Other authorized file overwrites and supported artifact generation continued to succeed.
Read-only checks found:
The target file is not read-only.
File and parent-directory ACLs grant Authenticated Users Modify access, with no deny entry shown.
The session still declares unrestricted filesystem access / danger-full-access and approval_policy = never.
Neither the workspace nor user Codex config contains approval_policy, approvals_reviewer, or sandbox_mode overrides.
Please identify the actual enforcing layer/rule and a supported resolution. Is this a configuration mismatch, intentional additional enforcement, or a false positive? The generic error is insufficient to tell the operator what to fix.
bugSomething isn't workingsandboxIssues related to permissions or sandboxingtool-callsIssues related to tool callingwindows-osIssues related to Codex on Windows systems
Activity
github-actions commentedon Sep 8, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
rob-reynolds commentedon Sep 15, 2026
Unexplained pre-execution rejection of authorized file restoration
Additional occurrence in the VS Code extension 26.5908.31748 on Windows x64. Suspected approval-review issue, not a confirmed root cause.
Observed
On Windows, an explicitly authorized source restoration was rejected twice by the agent shell tool
exec_command, before PowerShell process creation. The returned error contained:The session reports
danger-full-access/ unrestricted filesystem and approval policynever. No elevation override was requested. The user explicitly authorized the restoration, then reaffirmed full access. No more specific policy reason was returned.Intended operation
No recursive deletion, wildcard target, raw git, credential access, network transfer, or lifecycle-record editing was requested. Content lifecycle locks were acquired through the supported manager before each attempt. After rejection, status showed no edits; the locks were released without completion.
Other filesystem operations, including a separately reviewed cleanup using the same shell tool, succeeded in this session. This is not evidence of a general inability to write the workspace.
Expected
An authorized, bounded restoration should execute if allowed. If a separate safety rule prohibits it despite the displayed permission settings, provide an actionable explanation identifying the restriction and supported resolution.
Actual and impact
Generic
blocked by policybefore process creation, with no actionable reason. The agent cannot distinguish a legitimate restriction from a review false positive and cannot finish the authorized restoration. An operator-run script has been prepared; the agent has not used another execution route to evade the rejection.Investigation requested
This report intentionally omits customer names, clinical content, full local paths and conversation identifiers. Exact command evidence remains local and can be provided privately if needed. The rejection alone does not establish that PowerShell, the content lifecycle manager, or the language tools are defective.
Follow-up: repeated refusal and permission checks
The operator successfully performed the original restoration directly in PowerShell. A later agent request to remove one exact, SHA-256-verified, backed-up obsolete CEL file was again rejected before process creation with
blocked by policy. Other authorized file overwrites and supported artifact generation continued to succeed.Read-only checks found:
danger-full-accessandapproval_policy = never.approval_policy,approvals_reviewer, orsandbox_modeoverrides.The current documentation describes automatic approval reviews for interactive approval policies: https://learn.chatgpt.com/docs/agent-approvals-security . The observed rejection does not identify the internal rejecting component, so we cannot establish that the documented auto-review feature is responsible. No settings have been changed to route around the refusal.
Please identify the actual enforcing layer/rule and a supported resolution. Is this a configuration mismatch, intentional additional enforcement, or a false positive? The generic error is insufficient to tell the operator what to fix.