Repository navigation
Description
Summary
On Windows, the desktop app blocks an explicitly authorized deletion of three named directories inside the current workspace with a generic policy rejection. This failure occurs with Full Access and auto approve enabled, despite explicit user instructions and permission to delete those exact directories.
The agent stops and asks the user to run the deletion manually, so the authorized task is left incomplete.
All project names and directory paths below have been replaced with generic examples.
Version and environment
- Desktop app About screen: ChatGPT — Powered by Codex & OWL
- Version: 26.1016.62342
- Release date shown in About: October 22, 2026
- Observed: October 23, 2026
- OS: Windows
- Shell: PowerShell 7
- Execution tool:
exec_command - User reports the failure with Full Access and auto approve.
- The failing session explicitly exposed:
sandbox_mode: danger-full-accessapproval_policy: never- Filesystem access: unrestricted / permission profile disabled
- Network access: enabled
- No sandbox escalation argument was supplied.
Steps to reproduce
- Open a local workspace, for example
D:\dev\example-project. - Enable Full Access and auto approve.
- Explicitly instruct the agent:
Remove D:\dev\example-project\.temp-transfer Remove D:\dev\example-project\generated-output Remove D:\dev\example-project\run-artifacts - Have the agent execute a native PowerShell command that:
- Resolves each absolute target path.
- Rejects any target whose parent is not exactly the intended workspace.
- Checks that any existing target is a directory.
- Uses
Remove-Item -LiteralPath ... -Recurse -Force -ErrorAction Stopon only those explicit paths. - Verifies that each target is absent afterward.
The attempted script used this structure (sanitized paths, same logic):
$targets = @(
'D:\dev\example-project\.temp-transfer',
'D:\dev\example-project\generated-output',
'D:\dev\example-project\run-artifacts'
)
$workspace = [System.IO.Path]::GetFullPath('D:\dev\example-project')
foreach ($target in $targets) {
$resolved = [System.IO.Path]::GetFullPath($target)
if ([System.IO.Path]::GetDirectoryName($resolved) -ne $workspace) {
throw "Target is outside the intended workspace: $resolved"
}
if (Test-Path -LiteralPath $resolved) {
$item = Get-Item -LiteralPath $resolved -Force
if (-not $item.PSIsContainer) {
throw "Target is not a directory: $resolved"
}
Write-Output "Verified directory: $resolved"
} else {
Write-Output "Already absent: $resolved"
}
}
foreach ($target in $targets) {
if (Test-Path -LiteralPath $target) {
Remove-Item -LiteralPath $target -Recurse -Force -ErrorAction Stop
}
if (Test-Path -LiteralPath $target) {
throw "Removal verification failed: $target"
}
Write-Output "Confirmed absent: $target"
}The submitted tool command put this logic on one line with semicolons.
Expected behavior
The agent completes the explicitly authorized deletion within the workspace and verifies the result under the selected Full Access / auto approval settings.
If an additional enforced restriction applies, the tool should identify the specific restriction and give an actionable explanation of why this explicitly authorized operation is blocked.
Actual behavior
The command was rejected before PowerShell started. The tool returned:
exec_command failed: CreateProcess {
message: "Rejected(\"...pwsh.exe... rejected: blocked by policy\")"
}
The wrapper escaped and truncated the command in its error output. There was no PowerShell verification output, no permission prompt, and no specific explanation of which policy blocked the operation.
The agent then responded:
The deletion command was blocked by the execution policy. I haven't removed any of the three directories.
It provided a manual PowerShell deletion command instead of completing the task.
Impact and diagnostic limits
- Full Access, auto approval, and explicit human authorization did not allow this scoped workspace maintenance task to proceed.
- The operation used a single shell, literal paths, and workspace-boundary checks.
- The visible error establishes a tool-side policy rejection, but does not identify the underlying policy or establish that PowerShell's own execution policy caused it.
- This report includes one captured rejection from the conversation; the user additionally reports the failure under both Full Access and auto approval.
- No private project names, original directory names, user profile paths, or unrelated repository contents are included.
Activity
github-actions commentedon Oct 23, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action