Bug Fixes
- Refused batch script CLI spawning on Windows: Blocked spawning
.bat/.cmdCLI scripts (including npm'sclaude.cmdshim) on Windows to prevent command injection via cmd.exe metacharacter re-parsing (BatBadBut / CVE-2024-27980 class). Windows users relying on the npm shim should switch to the native installer, an explicitclaude.exepath, or a platform wheel that bundles the CLI (#1127) - Windows cmd.exe metacharacter rejection:
resumeandsession_idvalues containing cmd.exe metacharacters (& | < > ^ % ! ") or newlines now raiseValueErroron Windows, preventing injection even if a cmd.exe hop is reintroduced. POSIX behavior is unchanged (#1127) - Dash-prefixed
extra_argsvalue binding:extra_argsnow uses--flag=valueform when the value starts with-, preventing a dash-leading value from being misinterpreted as a separate CLI flag (#1127)
Internal/Other Changes
- Updated bundled Claude CLI to version 2.1.216
PyPI: https://pypi.org/project/claude-agent-sdk/0.2.124/
pip install claude-agent-sdk==0.2.124