Claude Code:GitHub Releases(RSS)
Claude Code v2.1.121 更新:新增功能、体验优化与内存泄漏修复
阅读原文· github.com精选理由
Claude Code 这版修了一堆让人抓狂的内存泄漏和崩溃问题,加上 alwaysLoad 和 plugin prune 两个实用功能,重度用户值得立刻升级,但对非用户来说只是例行迭代。
AI 摘要
本次更新为 Claude Code 带来多项增强与修复。新增功能包括 MCP 服务器的 alwaysLoad 配置、claude plugin prune 命令以及 /skills 界面搜索框。用户体验方面,优化了全屏模式滚动、对话框键盘滚动和长 URL 点击体验。重点修复了处理多张图片或使用 /usage 命令时可能出现的数 GB 内存泄漏问题,并解决了 Bash 工具在工作目录被删除后失效等稳定性缺陷。此外,还改进了 MCP 服务器的错误重试机制和终端会话标题的本地化显示。
原文 · 保持原样,未翻译
What's changed
- Added
alwaysLoadoption to MCP server config — whentrue, all tools from that server skip tool-search deferral and are always available - Added
claude plugin pruneto remove orphaned auto-installed plugin dependencies;plugin uninstall --prunecascades - Added a type-to-filter search box to
/skillsso you can find a skill in long lists without scrolling - PostToolUse hooks can now replace tool output for all tools via
hookSpecificOutput.updatedToolOutput(previously MCP-only) - Fullscreen mode: typing into the prompt no longer jumps scroll back to the bottom after you've scrolled up to read earlier output
- Dialogs that overflow the terminal are now scrollable with arrow keys, PgUp/PgDn, home/end, and mouse wheel in both fullscreen and non-fullscreen modes
- Clicking any line of a long URL that wraps across rows in fullscreen mode now opens the full URL
- SDK and
claude -p:CLAUDE_CODE_FORK_SUBAGENT=1now works in non-interactive sessions --dangerously-skip-permissionsno longer prompts for writes to.claude/skills/,.claude/agents/, and.claude/commands//terminal-setupnow enables iTerm2's "Applications in terminal may access clipboard" setting so/copyworks, including from tmux- MCP servers that hit a transient error during startup now auto-retry up to 3 times instead of staying disconnected
- The terminal tab session title is now generated in your configured
languagesetting - Claude.ai connectors with the same upstream URL are now deduplicated instead of appearing as duplicates
- Vertex AI: support X.509 certificate-based Workload Identity Federation (mTLS ADC)
- Faster startup after upgrading: removed the Recent Activity panel from the release-notes splash
- LSP diagnostic summaries now expand on click/ctrl+o and show the expand hint
- SDK:
mcp_authenticatenow supportsredirectUrifor custom scheme completion and claude.ai connectors - OpenTelemetry: added
stop_reason,gen_ai.response.finish_reasons, anduser_system_prompt(gated behindOTEL_LOG_USER_PROMPTS) to LLM request spans - [VSCode] Voice dictation now respects the
accessibility.voice.speechLanguagesetting when no Claude Code language is configured - [VSCode]
/contextnow opens a native token usage dialog - Fixed unbounded memory growth (multi-GB RSS) when processing many images in a session
- Fixed
/usageleaking up to ~2GB of memory on machines with large transcript histories - Fixed memory leak when long-running tools fail to emit a clear progress event
- Fixed Bash tool becoming permanently unusable when the directory Claude was started in is deleted or moved mid-session
- Fixed
--resumecrashing on startup in external builds - Fixed
--resumefailing on large sessions when a transcript line was corrupted by an unclean shutdown — the corrupt line is now skipped - Fixed
thinking.type.enabled is not supportederror when using Bedrock application inference profile ARNs - Fixed Microsoft 365 MCP OAuth failing with duplicate or unsupported
promptparameter - Fixed scrollback duplication when pressing Ctrl+L or triggering a redraw in non-fullscreen mode on tmux, GNOME Terminal, Windows Terminal, and Konsole
- Fixed claude.ai MCP connectors silently disappearing when the connector-list fetch hits a transient auth error at startup
- Fixed "Always allow" rules for built-in tools in remote sessions not surviving worker restarts
- Fixed
NO_PROXYnot being respected for all HTTP clients when set viamanaged-settings.jsonunder the native build - Fixed managed settings approval prompt exiting the session even when accepted — now applies settings and continues
- Fixed
/usagereturning "rate limited" after a stale OAuth token — now refreshes automatically - Fixed invalid legacy enum values in
settings.jsoninvalidating the entire settings file - Fixed
/usagedialog content being clipped when no-flicker mode is off - Fixed
/focusshowing "Unknown command" when the fullscreen renderer is off — now explains how to enable it - Fixed embedded grep/find/rg shell wrappers failing when the running binary is deleted mid-session — now falls back to installed tools
- Reduced peak file descriptor usage during
findin the Bash tool on large directory trees