v2.1.19
Claude CodeSummary
This release introduces new shorthand argument accessors (`$0`, `$1`) for custom commands and enables session forking/rewind in VSCode for all users. Several critical bugs were resolved, including crashes on older processors and issues with session resumption across different directories.
New Features
- Added environment variable `CLAUDE_CODE_ENABLE_TASKS` to temporarily disable the new task system.
- Introduced shorthand accessors like `$0`, `$1`, etc., for accessing individual arguments within custom commands.
- [SDK] Enabled replay of `queued_command` attachment messages as `SDKUserMessageReplay` events when `replayUserMessages` is active.
- [VSCode] Enabled session forking and rewind functionality for all users.
Bug Fixes
- Fixed crashes occurring on processors that lack AVX instruction support.
- Fixed dangling Claude Code processes when the terminal is closed by implementing SIGKILL as a fallback upon catching EIO errors from `process.exit()`.
- Fixed `/rename` and `/tag` commands failing to update the correct session when resuming from a different directory (e.g., git worktrees).
- Fixed session resuming by custom title failing when executed from a different directory.
- Fixed pasted text content being lost when using prompt stash (Ctrl+S) and subsequent restore.
- Fixed the agent list incorrectly displaying "Sonnet (default)" instead of "Inherit (default)" for agents without an explicit model setting.
- Fixed backgrounded hook commands not returning early, which previously caused the session to wait unnecessarily.
- Fixed file write preview incorrectly omitting empty lines.
Improvements
- Changed skills without additional permissions or hooks to no longer require explicit approval.
- Updated indexed argument syntax from `$ARGUMENTS.0` to the bracket syntax `$ARGUMENTS[0]` for consistency.