# Claude Code v2.1.153 版本更新

- 来源：Claude Code：GitHub Releases（RSS）
- 作者：ashwin-ant
- 发布时间：2026-05-28 08:52
- AIHOT 分数：67
- AIHOT 标记：精选
- AIHOT 链接：https://aihot.virxact.com/items/cmpotom98093islv4xwf4beuu
- 原文链接：https://github.com/anthropics/claude-code/releases/tag/v2.1.153

## 精选理由

Claude Code 的一次日常小修小补，但修复了 OAuth 凭证泄露和内存泄漏这种真影响使用的 bug，且 /model 现在可以记住默认模型了，升级一下不亏。

## AI 摘要

Claude Code 发布 v2.1.153 版本。主要新增 `skipLfs` 选项以跳过 Git LFS 下载；优化了 `claude agents` 的自动补全建议和 PR 列显示格式。本次更新修复了大量问题，包括：MCP 服务器的连接与重连、子代理的配置策略与严格模式行为、后台会话的管理与权限提示（如恢复、输入响应、临时文件处理），以及跨 macOS/Windows/VSCode 平台的稳定性。此外，还修复了 Windows 更新回滚、内存占用、会话恢复等多个具体问题。`/model` 命令现在会将选择设为新会话的默认模型。

## 正文

What's changed

Added skipLfs option to github/git plugin marketplace sources to skip Git LFS downloads during clone and update

Claude Code now shows a one-time notice when your npm global install can't auto-update; /doctor lists the fixes

Status line commands now receive COLUMNS and LINES environment variables so scripts can size output to the terminal width

claude agents: autocomplete in the dispatch input now suggests native slash commands and bundled skills, not just project skills

claude agents: PR column now shows PR #N for a single PR or N PRs for multiple

claude doctor now shows the result of your last update attempt

Combined the separate "needs authentication" startup notifications for MCP servers and connectors into a single message

macOS: background agents now appear as "Claude Code" in Privacy & Security and keep their permission grants across upgrades

Fixed stateful MCP servers without the optional GET SSE stream reconnect-looping on tools/list (regression in v2.1.147)

Fixed a regression where a custom API gateway could receive the user's Anthropic OAuth credential instead of the gateway's own token

Fixed subagent (Agent tool) frontmatter MCP servers ignoring --strict-mcp-config, --bare, remote mode, enterprise managed MCP config, and managed-settings MCP server allow/deny policies

--strict-mcp-config no longer strips inline mcpServers from explicitly-passed agent definitions (--agents / SDK agents), and blocked subagent MCP servers now surface a visible warning

Fixed the Windows PowerShell installer reporting "Installation complete!" when installation actually failed

Fixed claude update installing the latest version instead of the configured release channel's version for npm installations

Fixed excessive memory usage (multiple GB) when resuming a session by transcript file path on machines with many stored sessions

Fixed claude agents and claude --bg running on a stale daemon started before binary-takeover support, even after upgrading

Fixed a hang where the CLI could fail to exit when stdin was closed without EOF in stream-json mode, leaving a stale session marker behind

Fixed malformed file:// links in Claude's responses not being clickable in the terminal

Fixed claude --help rendering unwrapped output on terminals narrower than 92 columns

Fixed MCP tool progress notifications not rendering in the collapsed tool view

Fixed Agent tool with subagent_type: 'claude' running in an undocumented temporary worktree, which could silently discard outputs written to gitignored paths

/bg while Claude is responding now continues the response in the background session instead of dropping it

Fixed /btw keyboard shortcuts becoming unresponsive in background sessions while a task is running

Fixed background sessions writing temp files to $CLAUDE_JOB_DIR triggering a "sensitive file" permission prompt

Fixed recovering a background agent whose working directory was deleted showing a truncated stack trace instead of a clear error message

Fixed EnterWorktree not being available immediately in background sessions (previously required ToolSearch first)

Fixed cmd+k in iTerm2/Terminal.app not repainting attached background sessions

Fixed the IME candidate window appearing at the bottom of the screen instead of next to the input caret in attached background sessions on Windows

Fixed background-color bleed when attaching to a background agent from 256-color-only terminals after the agent had rendered file diffs

Fixed /copy and copy-on-select silently failing to update the system clipboard when attached to a background session inside tmux

Fixed opening claude agents with Remote Control enabled leaving zombie session entries on the Code tab after exiting

Fixed /rename in background sessions not updating the session banner immediately

Fixed Windows update rollback: if a Windows update fails, Claude Code now restores the original executable by copy and tells you how to recover

[VSCode] Fixed Claude Code processes not shutting down cleanly when VS Code closed on Windows, causing false "unclean exit" reports and orphaned MCP servers

/model now saves your selection as the default for new sessions (matching the IDE). Press s in the picker to switch models for the current session only.

If you customized the modelPicker:setAsDefault keybinding, rename it to modelPicker:thisSessionOnly in keybindings.json (the d action was replaced by s)
