🤖 Claude Code v2.1.19 发布啦!
✦ 更新内容
• 添加了环境变量 CLAUDE_CODE_ENABLE_TASKS ,设置为 false 可暂时保留旧系统
• 为自定义命令中访问单个参数添加了简写形式 $0, $1 等
• 修复了在不支持 AVX 指令的处理器上的崩溃问题
• 通过捕获 process.exit() 的 EIO 错误并使用 SIGKILL 作为后备方案,修复了终端关闭时 Claude Code 进程无法终止的问题
• 修复了从不同目录(如 git 工作树)恢复会话时,/rename 和 /tag 未更新正确会话的问题
• 修复了从不同目录运行时,通过自定义标题恢复会话无法正常工作的问题
• 修复了使用提示词存储( Ctrl+S )和恢复时,粘贴的文本内容丢失的问题
• 修复了代理列表显示 "Sonnet (default)" 而不是 "Inherit (default)" 的问题(针对没有显式模型设置的代理)
• 修复了后台运行的钩子命令不会提前返回的问题,这可能导致会话等待一个被有意置于后台运行的进程
• 修复了文件写入预览时省略空行的问题
• 更改为允许没有额外权限或钩子的技能无需批准即可使用
• 将索引参数语法从 $ARGUMENTS.0 更改为 $ARGUMENTS[0](括号语法)
• SDK:当启用 replayUserMessages 时,添加了将排队命令附件消息作为 SDKUserMessageReplay 事件重播的功能
• VSCode:为所有用户启用了会话分叉和回退功能
🔗
https://github.com/anthropics/claude-code/releases/tag/v2.1.19📅 Published: 2026-01-24 05:56:32
✦ What's changed
• Added env var CLAUDE_CODE_ENABLE_TASKS, set to false to keep the old system temporarily
• Added shorthand $0, $1, etc. for accessing individual arguments in custom commands
• Fixed crashes on processors without AVX instruction support
• Fixed dangling Claude Code processes when terminal is closed by catching EIO errors from process.exit() and using SIGKILL as fallback
• Fixed /rename and /tag not updating the correct session when resuming from a different directory (e.g., git worktrees)
• Fixed resuming sessions by custom title not working when run from a different directory
• Fixed pasted text content being lost when using prompt stash (Ctrl+S) and restore
• Fixed agent list displaying "Sonnet (default)" instead of "Inherit (default)" for agents without an explicit model setting
• Fixed backgrounded hook commands not returning early, potentially causing the session to wait on a process that was intentionally backgrounded
• Fixed file write preview omitting empty lines
• Changed skills without additional permissions or hooks to be allowed without requiring approval
• Changed indexed argument syntax from $ARGUMENTS.0 to $ARGUMENTS[0] (bracket syntax)
• SDK Added replay of queued_command attachment messages as SDKUserMessageReplay events when replayUserMessages is enabled
• VSCode Enabled session forking and rewind functionality for all users