---
title: "Claude Code v2.1.217 发布：多项修复与改进"
source: "Claude Code：GitHub Releases（RSS）"
source_tier: "t1_5"
url: "https://github.com/anthropics/claude-code/releases/tag/v2.1.217"
permalink: "https://feed.astralor.com/items/itm_0f75bd72ced75a1471bdd6e6"
published: "2026-07-21T21:35:10.000Z"
score: 76
channel: "ai"
tags: ["Anthropic","Claude Code","MCP","Windows","子代理","自动更新"]
---

# Claude Code v2.1.217 发布：多项修复与改进

## AI 点评

> 这次更新虽然以修复为主，但其中几个修复（如 Windows 自动更新、MCP 内存泄漏）对日常使用体验提升明显。建议所有用户升级，特别是 Windows 用户。如果你用 Claude Code 做长时间编码会话，子代理并发上限也能避免意外资源耗尽，值得关注。

## 速览

Claude Code v2.1.217 主要修复了内存泄漏、Windows 自动更新失败、背景会话隔离漏洞、MCP 工具输出截断后内存残留等问题，并新增 emoji 简码自动完成、子代理并发上限设置（默认20），改进了远程控制会话权限提示和日志警告。同时优化了 CLAUDE.md/SKILL.md 路径解析中的大括号扩展性能，防止启动崩溃。该版本提升了稳定性与用户体验。

## 关键点

- 新增 emoji 简码自动完成（:heart: → ❤️），可通过设置关闭
- 修复 MCP 工具输出截断后的内存泄漏问题
- 修复 Windows 自动更新失败导致 claude.exe 丢失的问题
- 增加并发子代理数量上限（默认20），防止无限扩展

## 全文

What's changed Added emoji shortcode autocomplete in the prompt input: type :heart: to insert ❤️, or :hea for suggestions — disable with the emojiCompletionEnabled setting Added warnings when transcript writes are failing (e.g. disk full) or when session saving is off due to an inherited environment variable, instead of losing transcripts silently Fixed a memory leak where truncated MCP tool outputs kept the full untruncated result in memory for the rest of the session Fixed Windows auto-update failures that could leave claude.exe missing; failed updates now restore the preserved executable automatically Fixed background session isolation not canonicalizing symlinked working directories, which could let sessions escape their workspace folder Fixed auto-compact never triggering for Claude Opus 4.8 on Bedrock and /compact failing once over the limit Fixed corporate mTLS, TLS-verify, OAuth scope, and proxy settings being ignored in Claude Desktop sessions Fixed screen reader mode's startup announcement being cut off by the first prompt render, and the thinking status row re-rendering every few seconds to update elapsed time and token counts Fixed managed settings that set OTEL_EXPORTER_OTLP_ENDPOINT not governing all signals — lower-scope signal-specific overrides no longer redirect telemetry away from the managed endpoint Fixed --resume/--continue and /resume failing with a TypeError when a transcript has a malformed attachment entry Fixed Remote Control sessions not showing a pending permission prompt or dialog to viewers that connected after it appeared Fixed background shells sometimes becoming impossible to stop after a session is sent to the background (/background or ←) or when the session exits on a heavily loaded machine, most visible on Windows Fixed a CLAUDE.md or SKILL.md paths frontmatter value with many brace groups OOM-killing or stalling the CLI at startup — brace expansion is now budget-bounded Fixed the transcript preview sitting flush against the input area when attaching to a starting background session; it now leaves the same one-line gap as the live layout, so the transcript no longer shifts when the session takes over Improved footer PR badge links to be clickable hyperlinks even when terminal support can't be detected (e.g. over ssh/tmux); set FORCE_HYPERLINK=0 to opt out Changed the login-expiry warning to appear 3 days before expiry instead of 5 Capped the frontend-design plugin suggestion tip at 3 lifetime impressions instead of repeating indefinitely Added a cap on concurrently-running subagents (default 20, override with CLAUDE_CODE_MAX_CONCURRENT_SUBAGENTS) so one message can't fan out unbounded background agents Changed subagents to no longer spawn nested subagents by default; set CLAUDE_CODE_MAX_SUBAGENT_SPAWN_DEPTH to allow deeper nesting Fixed --max-budget-usd not stopping background subagents: once the cap is reached, new spawns are denied and running background agents are halted

---

引用前请核对原文;本文由星际流动整理:https://feed.astralor.com/items/itm_0f75bd72ced75a1471bdd6e6
