All areas Feed Weekly digests

powershell

The tracked changes tagged powershell, newest release first. Every sentence is an item's summary.

18 items from 10 releases, 5 breaking Sources: Claude Code Last change:

Goes with

Changes

Claude Code v2.1.327

  1. fix

    Fixed auto mode ignoring some wildcard PowerShell allow rules that name a script with .\.

  2. performance

    Improved startup time on Windows with no Git Bash and no pwsh on PATH by checking PowerShell's standard install locations; System32 powershell.exe now takes precedence over an earlier PATH entry.

  3. performance

    Windows: Improved PowerShell tool speed by up to about half a second per command.

  4. other

    Changed the PowerShell tool to ask before one more command, even under a rule naming it; if nothing answers it is refused unless a whole-tool rule, auto mode or bypass mode allows it.

Claude Code v2.1.326

  1. breaking Breaking

    The PowerShell tool asks before more commands, and refuses some commands and malformed commands; unattended runs refuse commands without an allow rule, auto mode or bypass permissions.

  2. breaking Breaking

    PowerShell commands that define a function named like a built-in command are refused, so the function must be renamed.

  3. breaking Breaking

    Some malformed PowerShell commands are denied.

  4. fix

    Very long Bash or PowerShell commands and long new files in permission prompts no longer freeze the session for seconds.

Claude Code v2.1.319

  1. breaking Breaking

    Changed a session's exact Bash or PowerShell ask rule to be refused, not asked about, when a broader deny rule covers the command.

Claude Code v2.1.316

  1. fix

    Fixed PowerShell hooks not blocking on exit code 2 when the command begins with a type cast, param, using, or an attribute.

Claude Code v2.1.304

  1. fix

    Fixed Bash and PowerShell deleting a large command's output file when it could not be copied to the session's tool-results folder, unless the disk is full.

Claude Code v2.1.302

  1. fix

    Fixed the PowerShell tool not finding commands in a plugin's bin/ folder, and reporting an error when a search that finds nothing (rg, grep, findstr, git grep) is piped into Select-Object or another formatting cmdlet.

Claude Code v2.1.296

  1. fix

    Fixed PowerShell commands not seeing variables that hooks write to CLAUDE_ENV_FILE when the file holds only plain assignments.

  2. fix

    Windows: Fixed PowerShell commands longer than about 1 KB always asking for permission; allow rules and read-only detection now apply up to 32 KB.

Claude Code v2.1.285

  1. breaking Breaking

    Background Bash and PowerShell commands now stop after a time limit (their timeout with run_in_background, default 30 min, max 2 h), and Claude is notified when one is stopped.

  2. fix

    Fixed the PowerShell tool's permission check skipping deny and ask rules, and caching that failure, when its command parser failed to start.

Claude Code v2.1.283

  1. fix

    Fixed the Windows PowerShell tool allowing cmd /c rd, rmdir, del or erase to delete drive roots, the home folder and other folders Remove-Item refuses.

Claude Code v2.1.282

  1. fix

    Fixed Bash and PowerShell hiding a full disk quota behind "Exit code 1" and leaving large output files in temp.