Claude Code v2.1.47
Claude Code v2.1.47 was released on .
Summary
- Fixed FileWriteTool line counting to preserve intentional trailing blank lines instead of stripping them with trimEnd(). - Fixed Windows terminal rendering bugs caused by os.EOL (\r\n) in display...
Release Context
- This was the 38th Claude Code release of 2026 tracked by Havoptic.
- It shipped 1 day after Claude Code v2.1.45 (February 17, 2026).
Shipped around the same time
Within 3 days of this release, other AI coding tools also shipped:
- GitHub Copilot CLI v0.0.414 (February 21, 2026)
- Devin Desktop v1.9552.25 (February 21, 2026)
- GitHub Copilot CLI v0.0.413 (February 20, 2026)
- GitHub Copilot CLI v0.0.412 (February 19, 2026)
- Gemini CLI v0.29.5 (February 19, 2026)
Compare Claude Code: vs OpenAI Codex CLI · vs Cursor · vs Gemini CLI · vs Kiro CLI · vs GitHub Copilot CLI · vs Devin Desktop · vs Antigravity CLI
Release Notes
- Fixed FileWriteTool line counting to preserve intentional trailing blank lines instead of stripping them with trimEnd().
- Fixed Windows terminal rendering bugs caused by os.EOL (\r\n) in display code — line counts now show correct values instead of always showing 1 on Windows.
- Improved VS Code plan preview: auto-updates as Claude iterates, enables commenting only when the plan is ready for review, and keeps the preview open when rejecting so Claude can revise.
- Fixed a bug where bold and colored text in markdown output could shift to the wrong characters on Windows due to \r\n line endings.
- Fixed compaction failing when conversation contains many PDF documents by stripping document blocks alongside images before sending to the compaction API (anthropics/claude-code26188)
- Improved memory usage in long-running sessions by releasing API stream buffers, agent context, and skill state after use
- Improved startup performance by deferring SessionStart hook execution, reducing time-to-interactive by ~500ms.
- Fixed an issue where bash tool output was silently discarded on Windows when using MSYS2 or Cygwin shells.
- Improved performance of @ file mentions
- file suggestions now appear faster by pre-warming the index on startup and using session-based caching with background refresh.
- Improved memory usage by trimming agent task message history after tasks complete
- Improved memory usage during long agent sessions by eliminating O(n²) message accumulation in progress updates
- Fixed the bash permission classifier to validate that returned match descriptions correspond to actual input rules, preventing hallucinated descriptions from incorrectly granting permissions
- Fixed user-defined agents only loading one file on NFS/FUSE filesystems that report
Other Recent Claude Code Releases
- v2.1.216 (July 20, 2026)
- v2.1.215 (July 19, 2026)
- v2.1.214 (July 18, 2026)
- v2.1.212 (July 16, 2026)
- v2.1.211 (July 15, 2026)
All Claude Code releases · All AI coding tool releases on Havoptic