Claude Code v2.1.46 ~ v2.1.50 Update Roundup: A Big Memory Overhaul, Worktree Isolation, and 60+ Bug Fixes
Contents
Five releases in five days, with 60+ bug fixes in v2.1.47 alone. This iteration pace is basically a sprint.
Have you all updated Claude Code yet?
Over the past week, Anthropic rapidly shipped five releases from v2.1.46 to v2.1.50 (v2.1.48 is a hotfix with no separate release notes on GitHub). The scope of the updates is staggering, especially v2.1.47, which handled more than 60 fixes in one go, covering everything from Windows compatibility to memory management to file operations.
Here's a quick rundown of the highlights 👇
v2.1.46: claude.ai MCP Integration
This release has just two updates, but one of them is well worth noting:
- Support for claude.ai MCP connectors: You can use MCP connectors configured on claude.ai inside Claude Code, which effectively connects the web and CLI MCP ecosystems
- Fixed orphaned processes lingering after a macOS terminal disconnects: Previously, Claude Code's process might not shut down properly after you closed the terminal. Fixed now
v2.1.47: The Mega Fix Release (60+ Items)
This is the most hardcore release in this wave. Not because of features, but because of the sheer number of fixes. 60+ bug fixes, and Windows users should feel it the most.
A Big Windows Overhaul
Windows has always been a pain point for Claude Code, and this release tackles a lot of it at once:
- Terminal rendering fixes:
\r\nline endings caused wrong line counts and shifted bold/colored text - Bash output fix: Bash tool output was silently dropped in MSYS2/Cygwin environments
- CWD tracking fix: Temp files piling up without limit
- Worktree session fix: Inconsistent drive letter casing caused session matching to fail
- WSL2 image paste fix: Handling of BMP images
- Hooks fix: Hooks now run with Git Bash to avoid issues with the native Windows shell
- Right Alt fix: No longer leaves behind escape sequences
Memory and Performance
- Releasing API stream buffers and agent context: Long sessions no longer get slower and slower
- Deferred SessionStart hook execution: Startup is about 500ms faster
@file mention performance optimization: Added pre-warming and session caching
File Operation Fixes
- FileWriteTool fix: Preserves blank lines at the end of files (they used to get eaten)
- A single file write error no longer aborts all parallel operations: This fix is important. Previously, one failed file write would cause other parallel writes to abort too
- Edit tool fix: No longer breaks Unicode full-width quotation marks
Other Highlights
- VS Code plan preview improvements: Supports auto-updating and comment management
/resumefix: Sessions over 16KB used to be silently dropped. Not anymore- CJK wide character fix: Timestamp and layout alignment issues (Chinese, Japanese, and Korean users will notice)
- Plan mode fix: No longer loses plan mode state after context compaction
- New
chat:newlinekeybinding: Lets you customize the key for multi-line input - Resume picker expanded: From 10 sessions up to 50
Honestly, the fix list for this release was so long that I was a little shocked while putting it together. A lot of these are issues the community had been reporting for a long time, all dealt with at once.
v2.1.48: Hotfix
This release was published on npm, but there are no separate release notes on GitHub. Presumably it's an emergency fix after v2.1.47 shipped.
v2.1.49: Worktree Isolation and Background Agent Control
The focus of this release is isolated execution and background agent control, which is really practical for developers who use agents heavily.
Isolated Execution with Worktrees
--worktree(-w) launch flag: Launch Claude Code directly in an isolated git worktree- Subagents support
isolation: "worktree": Subagents can run in their own git worktree without affecting the main working directory
This feature is really useful when you need to handle multiple tasks at once: each agent works in its own worktree, and they don't step on each other.
Background Agent Control
- Ctrl+F to stop background agents: Press twice to confirm, so no worries about hitting it by accident
- Fixed Ctrl+C and ESC being ignored while background agents run: Before, nothing you pressed did anything while a background agent was running, which was pretty annoying
Performance Improvements
- Fixed unbounded WASM memory growth: Yoga WASM's linear memory kept ballooning. Fixed now
- Faster startup: Deferred SessionStart hook, cached MCP auth failures, batched MCP tool token counting
- Sonnet 4.5 with 1M context removed: Replaced by the newer Sonnet 4.6
Other Improvements
- Agent definitions support
background: true: Declaratively specify that an agent always runs in the background - Plugins can ship with a
settings.json: Default configuration travels with the plugin - New
ConfigChangehook event: Monitors config file changes, useful for enterprise security audits - Expanded SDK model info: New
supportsEffort,supportedEffortLevels, andsupportsAdaptiveThinkingfields
v2.1.50: The Big Memory Cleanup
The theme of this release is very clear: find every memory leak and fix it.
Memory Fix List
This release fixed at least 7 memory leaks, a remarkably high density:
- Agent Teams completed tasks not being reclaimed: Task objects stuck around in memory after a teammate finished
- Task state not removed from AppState: Completed task state objects weren't being cleared
- Unbounded growth of LSP diagnostic data: Language server diagnostic data was never cleaned up
- Completed task output not released: TaskOutput was holding on to recent line data
- CircularBuffer memory leak: An implementation issue in the circular buffer
- Shell execution memory leak: Resources weren't released after shell commands ran
- Unbounded growth of file history snapshots: Now there's a cap
There are also two proactive memory optimizations:
- Clearing internal caches after compaction: Freeing up memory while compressing the conversation
- Releasing large tool results right after processing: No more waiting for GC
Worktree and Agent Features
- Agent definitions support
isolation: worktree: Declaratively specify that an agent runs in an isolated worktree - New
WorktreeCreate/WorktreeRemovehook events: Customize VCS setup/teardown flows - New
claude agentsCLI command: Lists all configured agents
Other Important Updates
- Opus 4.6 fast mode supports the 1M context window: Fast mode can now use the full million-token context too
- LSP servers support
startupTimeout: Language server startup timeout is configurable - Linux glibc compatibility fix: Fixed native modules failing to load on older systems like RHEL 8 (glibc < 2.30)
- Fix for session data loss on SSH disconnect: Session data is now flushed before hooks run
- Beefed-up
CLAUDE_CODE_SIMPLEmode: Adds the file edit tool and disables MCP tools, attachments, hooks, and CLAUDE.md loading - VSCode supports
/extra-usage: Check extra usage inside VS Code
Summary
| Version | Date | Highlights |
|---|---|---|
| v2.1.46 | 2/18 | claude.ai MCP connectors support |
| v2.1.47 | 2/18 | 60+ fixes: Windows overhaul, file operations, CJK support |
| v2.1.48 | 2/19 | Hotfix |
| v2.1.49 | 2/19 | Worktree isolation, background agent control, WASM memory fix |
| v2.1.50 | 2/20 | 7 memory leak fixes, Opus 4.6 1M context, claude agents |
Conclusion
v2.1.47 is the big cleanup, v2.1.49 adds isolation, and v2.1.50 fixes memory. Together, these three take Claude Code's stability up a whole level.
The theme of this wave is very clear: stability and memory management. The 60+ fixes in v2.1.47 cleared out a big backlog of issues, the worktree isolation in v2.1.49 makes multitasking safer, and v2.1.50 plugs every memory leak they could find.
Honestly, what impressed me most is that v2.1.50 fixed 7 memory leaks. Long-running sessions used to get slower and slower, and it turns out there were this many places leaking. Opus 4.6 fast mode getting the 1M context window is also pretty important; fast mode is no longer a stripped-down version.
I recommend everyone update to the latest version:
claude update
After updating, you can check your version:
claude --version
References
Keywords
Claude Code, v2.1.46, v2.1.47, v2.1.48, v2.1.49, v2.1.50, worktree, memory optimization, Windows, MCP, Opus 4.6, AI Coding, Anthropic, dev tool updates
Latest articles
CoinMarketCap Launches AI Agent Skills: Let Claude Code Check Crypto Prices, Generate Reports, and Do Research Directly
2026-03-04Claude Code v2.1.59 ~ v2.1.63 Update Roundup: HTTP Hooks, a Big Memory Cleanup, and Shared Worktree Settings
2026-03-04Claude Code v2.1.52 ~ v2.1.59 Update Roundup: Auto Memory, a Wider Remote Control Rollout, and Stability Fixes
2026-02-26[Caijing Haojiao Podcast Notes] 2026-02-24 Software Stock Crash! Why Are There More and More AI Victim Stocks?
2026-02-24AMD and Meta Sign a 6GW GPU Megadeal: Breaking Down the $60 Billion AI Chip Agreement
2026-02-24