2.1.132

Claude Code 2.1.132 - リリースノート

2026年5月6日
Claude Code

日本語サマリー

以下は、Claude Code 2.1.132 のリリースノートの要約です。

  • 重要な修正:

    • メモリリーク解消: stdio MCPサーバーが標準出力にプロトコル外のデータを書き込んだ際に、メモリ使用量(RSS)が10GB以上に肥大化する問題を修正しました。
  • 新機能と追加:

    • Bashツールのサブプロセス環境に CLAUDE_SESSION_ID 環境変数を追加しました(hooksに渡される session_id と一致します)。
    • フルスクリーンの代替スクリーンレンダラーを無効化し、ターミナルのネイティブなスクロールバックを維持する CLAUDE_CODE_DISABLE_ALTERNATE_SCREEN=1 環境変数を追加しました。
    • 画像貼り付け(Ctrl+V)読み取り中に「Pasting…」とフッターに表示する機能を追加しました。
  • セッション・再開に関するバグ修正:

    • 絵文字が途切れた際のエラー(no low surrogate in string)で --resume が失敗する問題を修正しました。
    • -p --continue または --resume による再開時に --permission-mode フラグが無視されたり、プランモードが再適用されない問題を修正しました。
    • 外部からの SIGINT 割り込み(IDEの停止ボタンや kill -INT)時に、ターミナルモードを復元し --resume のヒントを表示して正常に終了するよう修正しました。
  • ターミナル・UI表示のバグ修正:

    • スリープ復帰時や Ctrl+Z / fg 後にフルスクリーンが空白になる問題を修正しました。
    • /- から始まるテキストを貼り付けると入力が破棄されたりエラーになる問題を修正しました。
    • /usage, /effort, /status, /terminal-setup などのスラッシュコマンドやダイアログの表示不具合を複数修正しました。
    • 各種IDE(Cursor, VS Code, JetBrains)固有のマウススクロールや入力の問題を修正しました。
  • MCPサーバー関連の修正:

    • tools/list に失敗した際のツール数表示とリトライ処理を改善しました。
    • ENABLE_PROMPT_CACHING_1H 設定時の Bedrock / Vertex での 400 エラーを修正しました。

原文(Release Notes)

What's changed

  • Added CLAUDE_CODE_SESSION_ID environment variable to the Bash tool subprocess environment, matching the session_id passed to hooks
  • Added CLAUDE_CODE_DISABLE_ALTERNATE_SCREEN=1 env var to opt out of the fullscreen alternate-screen renderer and keep the conversation in the terminal's native scrollback
  • Added a "Pasting…" footer hint while a Ctrl+V image paste is being read from the clipboard
  • Fixed external SIGINT (e.g. IDE stop button, kill -INT) not running graceful shutdown — terminal modes are now restored and the --resume hint is printed instead of an abrupt exit
  • Fixed an uncaught exception when the terminal is closed or SSH disconnects mid-session under the native build
  • Fixed --resume failing with no low surrogate in string when a tool error truncation split an emoji; pre-corrupted sessions are sanitized on load
  • Fixed --permission-mode flag being ignored when resuming a plan-mode session with -p --continue/--resume, and plan mode not being re-applied after ExitPlanMode within the same session
  • Fixed fullscreen mode showing a blank screen after laptop sleep/wake or Ctrl+Z/fg until the next keystroke or stream output
  • Fixed cursor landing mid-grapheme on Ctrl+E/A/K/U/arrow keys when an Indic conjunct or ZWJ emoji wraps across lines
  • Fixed vim operators corrupting text containing decomposed (NFD) accented characters
  • Fixed pasting text starting with / silently swallowing the input or triggering an unknown-command reply
  • Fixed pasting dumping stray escape sequences into the prompt when focus events or mouse-tracking reports interleave with the bracketed paste
  • Fixed mouse wheel scrolling being too fast in Cursor and VS Code 1.92–1.104 due to an upstream xterm.js bug
  • Fixed scroll-wheel handling in JetBrains IDE 2025.2 terminals (spurious arrow keys, wrong-direction events, runaway acceleration)
  • Fixed /usage Ctrl+S hanging when copying the stats screenshot to the clipboard on Linux/X11
  • Fixed /terminal-setup showing a contradictory error in Windows Terminal — Shift+Enter is natively supported there
  • Fixed /effort picker not reflecting the CLAUDE_CODE_EFFORT_LEVEL env var override
  • Fixed /status showing the wrong default model for some users
  • Fixed slash command autocomplete popup being capped at ~3–5 visible commands instead of scaling with terminal height
  • Fixed statusline context_window token counts reflecting cumulative session totals instead of current context usage
  • Fixed Alt+T (thinking toggle) not working on macOS terminals without "Option as Meta" enabled (iTerm2, Terminal.app defaults)
  • Fixed dead keyboard input on Windows after re-opening a background session from claude agents
  • Fixed unbounded memory growth (10GB+ RSS) when a stdio MCP server writes non-protocol data to stdout
  • Fixed MCP servers that connect but fail tools/list silently showing 0 tools — they now retry once and show "connected · tools fetch failed" in /mcp
  • Fixed unauthorized claude.ai MCP connectors showing as "failed" instead of "needs auth", and headless -p mode retrying non-transient 4xx connection failures
  • Improved visual consistency in slash command dialogs and /login, /upgrade, /extra-usage dialog spacing
  • Updated the /tui fullscreen startup banner to describe additional renderer benefits (lower memory usage, mouse support, auto-copy on select)
  • Fixed Bedrock and Vertex 400 errors when ENABLE_PROMPT_CACHING_1H is set