Claude Code v2.1.47
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 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