Overview

The claude-code tool received maintenance updates across two versions, with v2.1.21 bringing automatic Python virtual environment activation for VS Code users and various bug fixes for Japanese input, shell completion, and file operations.

Changes by Version

v2.1.22

  • Fixed structured outputs for non-interactive mode when using -p flag

v2.1.21

  • Added support for full-width Japanese number input in option selection prompts
  • Fixed shell completion cache files being truncated on exit
  • Fixed API errors when resuming interrupted sessions during tool execution
  • Fixed auto-compact triggering too early on models with large output token limits
  • Fixed task IDs potentially being reused after deletion
  • Fixed file search not working in VS Code extension on Windows
  • Added automatic Python virtual environment activation in VS Code extension with configurable setting
  • Improved read/search progress indicators to show current status
  • Improved Claude to prefer file operation tools over bash equivalents (Read/Edit/Write vs cat/sed/awk)
  • Fixed VS Code message action buttons having incorrect background colors