Overview

This release includes extensive bug fixes and performance improvements for Claude Code, focusing on Windows compatibility and memory optimization across file operations, agent management, and terminal rendering.

Changes by Version

v2.1.47

  • Fixed preserve intentional trailing blank lines in file writes instead of stripping them
  • Fixed Windows terminal rendering bugs - line counts now show correct values instead of always showing 1
  • Improved VS Code plan preview auto-updates as Claude iterates and enables commenting when ready for review
  • Fixed bold and colored text positioning in markdown output on Windows
  • Fixed compaction failing with many PDF documents by stripping document blocks before API calls
  • Improved memory usage in long sessions by releasing API stream buffers and agent context after use
  • Improved startup performance by 500ms through deferred SessionStart hook execution
  • Fixed bash tool output being silently discarded on Windows with MSYS2 or Cygwin shells
  • Improved file mention performance with faster suggestions through pre-warming and session caching
  • Fixed bash permission classifier hallucinations by validating match descriptions against actual input rules
  • Fixed user-defined agents only loading one file on NFS/FUSE filesystems with zero inodes
  • Fixed plugin agent skills failing to load when referenced by bare name instead of fully-qualified name
  • Added search patterns in quotes for clarity in collapsed tool results
  • Fixed Windows temp file cleanup - CWD tracking files no longer accumulate indefinitely
  • Changed agent control to ctrl+f to kill background agents instead of double-pressing ESC
  • Fixed API 400 errors in concurrent agent sessions caused by interleaved streaming content blocks
  • Simplified teammate navigation to Shift+Down only with wrapping instead of both up and down
  • Fixed independent file operations completing even when sibling operations fail
  • Added last_assistant_message field to Stop and SubagentStop hook inputs
  • Fixed custom session titles persisting after resuming conversations set via /rename
  • Fixed collapsed hint text overflow on narrow terminals by truncating from start
  • Fixed bash backslash-newline continuation producing spurious empty arguments
  • Fixed built-in slash commands being hidden from autocomplete when many user skills are installed
  • Fixed MCP servers not appearing in Management Dialog after deferred loading
  • Fixed session name persisting in status bar after /clear command
  • Fixed crash when skill metadata contains bare numbers in SKILL.md frontmatter