[BUG] PowerShell tool executed destructive command with no permission prompt — no event recorded in transcript
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
az ad group delete was executed via the PowerShell tool with no permission prompt displayed. The Entra group was permanently deleted without the user being asked to approve or deny the action.
The session transcript confirms this is not a case of a prompt being silently auto-approved — there is no permission event recorded at all between the tool_use and tool_result entries. The tool call went straight to execution.
What Should Happen?
A permission prompt should appear. The command does not match any allow rule in settings.json or settings.local.json, and no session-level approval was granted by the user.
Steps to Reproduce
- Have a
settings.local.jsonwith a specific exact-match PowerShell allow rule (e.g. a read-onlyaz ad group member listcommand — notably not a wildcard) - Earlier in the same session, run several parallel PowerShell tool calls (e.g. group creates and role assignments) that the user was prompted for
- Ask Claude to delete the same AD group
- Claude issues
PowerShell(az ad group delete ...)— no prompt appears, the command executes immediately
Evidence
settings.jsonandsettings.local.jsonreviewed — no rule coversPowerShell(az ad group delete *)- User confirms no session-level approval was granted
- Session transcript (
1cec244a-7e70-4c5c-afb4-97247d0f6c5a.jsonl) showstool_use→tool_resultwith no permission event in between - Other PowerShell commands earlier in the same session did prompt correctly
permissionModein transcript wasacceptEditsthroughout (auto-accepts file edits only, not shell commands)
Related Issues
- #68526 — similar Windows permissions gap, but that issue involves a prompt appearing and being auto-approved via buffered keypress; our case has no prompt generated at all
- #65910 — LIFO stack race condition with parallel agents; different mechanism
Impact
Irreversible — the Entra group was permanently deleted without user consent.
Claude Code Version
2.1.177
Platform
Claude Desktop (not VSCode)
Operating System
Windows 11 Enterprise 10.0.26200
Claude Model
claude-sonnet-4-6
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗