Overview
This release focuses heavily on memory leak fixes and performance improvements for long-running sessions. It also adds agent worktree isolation capabilities and expands the 1M context window to Opus 4.6 fast mode.
Changes by Version
v2.1.50
- Added worktree isolation for agents - agents can now run in isolated git environments
- Added 1M context window support for Opus 4.6 fast mode
- Added
claude agentsCLI command to list all configured agents - Added startup timeout configuration for LSP servers
- Added WorktreeCreate and WorktreeRemove hooks for custom VCS setup during agent isolation
- Added
CLAUDE_CODE_DISABLE_1M_CONTEXTenvironment variable to disable 1M context support - Added
/extra-usagecommand support in VS Code sessions - Fixed memory leaks in agent teams - completed teammate tasks are now properly garbage collected
- Fixed memory leaks in long sessions - multiple fixes for LSP diagnostics, task outputs, file history, and shell commands
- Fixed session invisibility bug when working directory involved symlinks
- Fixed session data loss on SSH disconnect by improving graceful shutdown
- Fixed native module loading on older Linux systems (glibc < 2.30)
- Fixed
CLAUDE_CODE_SIMPLEmode to fully strip down all features for minimal experience - Fixed MCP tool discovery when tool search is enabled with launch arguments
- Fixed
/mcp reconnectfreezing when given non-existent server names - Fixed prompt suggestion cache regression that reduced hit rates
- Improved startup performance in headless mode by deferring UI imports
- Improved memory usage during long sessions by clearing caches and large tool results