# Claude Code v2.1.183 发布

- 来源：Claude Code：GitHub Releases（RSS）
- 作者：ashwin-ant
- 发布时间：2026-06-19 09:20
- AIHOT 分数：45
- AIHOT 链接：https://aihot.virxact.com/items/cmqka2sum04gyslhijxpitddq
- 原文链接：https://github.com/anthropics/claude-code/releases/tag/v2.1.183

## AI 摘要

Claude Code v2.1.183 增强了自动模式安全性：未经请求时阻止 `git reset --hard`、`git commit --amend`（非本轮提交）、`terraform destroy` 等破坏性命令。新增 `attribution.sessionUrl` 设置，可省略 claude.ai 会话链接；`/config --help` 列出所有速记键；`/config` 切换行为改为 Enter/Space 变更、Esc 保存退出。修复了 thinking 块导致 400 错误、子智能体 WebSearch 空结果、vim 模式光标滞留、Windows Terminal TUI 错乱、多插件技能重复、MCP 认证存根暴露、tmux 面板启动失败、后台任务被杀、定时任务/Webhook 误判为键盘输入、focus mode 额外计时行等问题。

## 正文

What's changed

Improved auto mode safety: destructive git commands (git reset --hard, git checkout -- ., git clean -fd, git stash drop) are now blocked when you didn't ask to discard local work, git commit --amend is blocked when the commit wasn't made by the agent this session, and terraform destroy/pulumi destroy/cdk destroy are blocked unless you asked for the specific stack

Added a warning when the requested model is deprecated or automatically updated to a newer model, shown on stderr in print mode (-p) and now also covering models set in agent frontmatter

Added attribution.sessionUrl setting to omit the claude.ai session link from commits and PRs in web and Remote Control sessions

Added /config --help to list all available shorthand keys for /config key=value

Changed /config toggle behavior: Enter and Space both change the selected setting, and Esc now saves and closes instead of reverting

Removed the startup "setup issues" line under the logo — run /doctor to see configuration issues or use --debug

Fixed thinking.disabled.display: Extra inputs are not permitted 400 errors on subagent spawns and session-title generation for affected configurations

Fixed WebSearch returning empty results in subagents

Fixed the terminal cursor being stranded above the prompt after navigating history in vim mode with the native cursor enabled

Fixed fullscreen TUI corruption (statusline mid-screen, duplicated spinner rows, merged text) in Windows Terminal under heavy nested-subagent load

Fixed turns silently completing with no visible output when the model returned only a thinking block; Claude now re-prompts once

Fixed user-level skills appearing multiple times in slash-command autocomplete when multiple plugins are enabled

Fixed MCP servers requiring authentication exposing auth-stub tools to the model in headless/SDK mode

Fixed tmux teammate panes failing to launch when the shell has slow rc-file initialization, and keystrokes typed during agent spawn leaking into the new tmux pane instead of the leader prompt

Fixed background tasks started by a teammate being killed when the teammate finishes a turn

Fixed scheduled task and webhook trigger deliveries being treated as keyboard input; they now classify as task notifications and can no longer approve a pending action or set the session title in auto mode

Fixed focus mode showing "Ran N PostToolUse hooks" timing lines under each response
