claude-code - 💡(How to fix) Fix [DOCS] Permission docs omit PowerShell auto-approval behavior [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#52606Fetched 2026-04-24 06:02:38
View on GitHub
Comments
0
Participants
1
Timeline
4
Reactions
0
Author
Participants
Timeline (top)
labeled ×4
RAW_BUFFERClick to expand / collapse

Documentation Type

Missing documentation (feature not documented)

Documentation Location

https://code.claude.com/docs/en/permission-modes

Section/Topic

acceptEdits mode and PowerShell command approval behavior

Current Documentation

The docs currently say:

acceptEdits mode auto-approves common filesystem Bash commands: mkdir, touch, rm, rmdir, mv, cp, and sed. These commands are also auto-approved when prefixed with safe environment variables such as LANG=C or NO_COLOR=1, or process wrappers such as timeout, nice, or nohup. Like file edits, auto-approval applies only to paths inside your working directory or additionalDirectories. Paths outside that scope, writes to protected paths, and all other Bash commands still prompt.

The permissions reference also documents Bash-specific matching behavior but no PowerShell equivalent:

### Bash

Bash permission rules support wildcard matching with *. Wildcards can appear at any position in the command, including at the beginning, middle, or end:

The PowerShell tool page documents setup and limits, but not permission-mode parity:

The PowerShell tool has the following known limitations during the preview:

  • Auto mode does not work with the PowerShell tool yet

What's Wrong or Missing?

Changelog v2.1.119 says: PowerShell tool commands can now be auto-approved in permission mode, matching Bash behavior.

The current docs still explain permission-mode auto-approval and permission-rule matching almost entirely in Bash terms. They do not tell Windows users who enable the PowerShell tool whether acceptEdits now auto-approves the same kinds of filesystem commands in PowerShell, whether PowerShell follows the same "Yes, don't ask again" / allow-rule behavior, or how this new parity differs from the still-documented limitation that auto mode does not support the PowerShell tool yet.

Suggested Improvement

Update the permission docs to explicitly document PowerShell parity introduced in v2.1.119:

  1. In permission-modes, state that PowerShell tool commands now follow the same permission-mode auto-approval behavior as Bash where applicable.
  2. In permissions, add a PowerShell subsection (or an explicit note that Bash matching behavior also applies to PowerShell(...) rules) covering allow/ask/deny patterns and "Yes, don't ask again" behavior.
  3. In tools-reference, add a short note linking PowerShell users to the permission docs and clarify that this parity applies to permission modes/rules, while auto mode remains unsupported.

Impact

Medium - Makes feature difficult to understand

Additional Context

Affected Pages:

PageContext
https://code.claude.com/docs/en/permission-modesacceptEdits currently describes auto-approved commands only as "Bash commands"
https://code.claude.com/docs/en/permissionsTool-specific permission rules explain Bash matching and "Yes, don't ask again" behavior, but omit PowerShell parity
https://code.claude.com/docs/en/tools-referencePowerShell tool page documents enablement and preview limitations, but not permission-mode auto-approval behavior
https://code.claude.com/docs/en/agent-sdk/permissionsacceptEdits still says other non-filesystem tools are described through Bash-only examples
https://code.claude.com/docs/en/agent-sdk/agent-looppermissionMode table says acceptEdits auto-approves file edits and common filesystem commands, then describes the remaining behavior in Bash-only terms

Total scope: 5 pages affected

Source: Changelog v2.1.119

Changelog entry: PowerShell tool commands can now be auto-approved in permission mode, matching Bash behavior

extent analysis

TL;DR

Update the permission documentation to include PowerShell parity for auto-approval behavior in acceptEdits mode.

Guidance

  • Review the current documentation for acceptEdits mode and identify areas where Bash-specific language can be updated to include PowerShell.
  • Add a PowerShell subsection to the permissions documentation to cover allow/ask/deny patterns and "Yes, don't ask again" behavior.
  • Update the tools-reference page to link to the permission documentation and clarify the scope of PowerShell parity.
  • Verify that the updated documentation accurately reflects the changes introduced in v2.1.119.

Example

No code snippet is necessary for this issue, as it is focused on documentation updates.

Notes

The updates should ensure that the documentation is consistent across all affected pages, including permission-modes, permissions, tools-reference, agent-sdk/permissions, and agent-sdk/agent-loop.

Recommendation

Apply workaround: Update the documentation to reflect the changes introduced in v2.1.119, ensuring that users have accurate information about PowerShell parity in acceptEdits mode.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [DOCS] Permission docs omit PowerShell auto-approval behavior [1 participants]