Claude-Code v2.1.47 Release: Key Fixes and Improvements

The latest Claude-Code release, version 2.1.47, includes several crucial updates and fixes primarily focused on file handling, performance, and compatibility issues, especially on Windows platforms.
Key Updates and Fixes
- File Handling: The
FileWriteToolnow correctly retains intentional trailing blank lines, addressing an issue where they were previously stripped bytrimEnd(). - Windows Terminal Rendering: Bug fixes ensure correct line counts in terminal displays, which were previously affected by
os.EOL(\r\n) inconsistencies, causing misleading line count displays. - Markdown Output: This update resolves the reflow issue where bold and colored markdown text displayed incorrectly on Windows due to line-ending anomalies.
- Memory and Performance Enhancements: Changes have been made to optimize memory usage by releasing API stream buffers, agent context, and skill state post-use, and improving startup performance by deferring
SessionStarthook execution, reducing time-to-interactive by roughly 500ms. - Bash Tool Output: Previous silent discards of bash tool outputs on Windows using MSYS2 or Cygwin shells have been fixed, ensuring outputs are captured and processed as expected.
- Agent Sessions: Improved memory management during long-running sessions by eliminating
O(n²)message accumulation and enabling dynamic indexing and caching of file mentions, which results in performance improvements. - File Mutation Resilience: Single file write/edit errors will no longer abort all other parallel file operations. Independent file mutations are now reliably completed even if one file write/edit operation fails.
- Enhanced Command Capabilities: Configurable multi-line input via the
chat:newlinekeybinding action has been introduced for handling extended commands effectively.
This update is highly relevant for developers working within Windows environments who require reliable terminal and file handling performance. Memory management improvements are advantageous for those leveraging long-running tasks or managing extensive file resources.
📖 Read the full source: GitHub Claude-Code
👀 See Also

Stanford Report Shows AI Experts and Public Have Diverging Views on AI Impact
Stanford's annual AI industry report reveals significant gaps between AI experts' optimism and public anxiety, with experts focusing on AGI risks while the public worries about jobs, medical care, and utility costs.

Forbes: The AI Layoff Bill Is Coming Due — CTOs Will Pay Twice
Forbes argues that the cost of AI-driven layoffs will hit companies twice: first in severance and morale, then in rehiring when the expected efficiency gains don't materialize.

OpenAI and Rivals Publish Agent Plugins: One Package Format for AI Agents
OpenAI, Amazon, Microsoft, Cursor, and Vercel shipped Agent Plugins 1.0, an open standard for packaging agent extensions. Build once, run across ChatGPT, Codex, Copilot, Cursor, and more.

When asking Claude about regex leads to a late-night dive into compiler design
A Reddit user asked Claude to explain a regex and ended up in a 45-minute conversation about parsers, compiler design, and language theory, questioning their career.