Claude Code 2.1.132: Terminal Fixes, MCP Improvements, Emoji Handling

Claude Code 2.1.132 ships major terminal stability fixes for graceful shutdown, SSH disconnects, and sleep/wake cycles. Fixes emoji corruption in vim mode, MCP server retry logic, and rendering issues across Cursor, VS Code, and JetBrains IDEs.

Claude Code 2.1.132: Terminal Fixes, MCP Improvements, Emoji Handling

TL;DR

  • Major terminal stability fixes for graceful shutdown, SSH disconnects, and sleep/wake cycles
  • Fixed emoji and accent character corruption in vim mode and text selection
  • MCP server retry logic and auth state improvements
  • Terminal rendering fixes across Cursor, VS Code, and JetBrains IDEs

New

  • CLAUDE_CODE_SESSION_ID env var — now passed to Bash tool subprocess environment, matching the session_id in hooks
  • CLAUDE_CODE_DISABLE_ALTERNATE_SCREEN flag — opt out of fullscreen renderer and keep conversation in native terminal scrollback
  • Pasting feedback — "Pasting…" footer hint displays while Ctrl+V image paste reads from clipboard

Fixed

  • External SIGINT (IDE stop button, kill -INT) now runs graceful shutdown instead of abrupt exit — terminal modes restored and --resume hint printed
  • Uncaught exception when terminal closes or SSH disconnects mid-session under native build
  • --resume failing with "no low surrogate in string" when tool error truncation split an emoji; pre-corrupted sessions now sanitized on load
  • --permission-mode flag ignored when resuming plan-mode session with -p --continue/--resume; plan mode now re-applied after ExitPlanMode
  • Fullscreen mode showing blank screen after laptop sleep/wake or Ctrl+Z/fg until next keystroke or stream output
  • Cursor landing mid-grapheme on Ctrl+E/A/K/U/arrow keys with Indic conjunct or ZWJ emoji wrapping across lines
  • Vim operators corrupting text with decomposed (NFD) accented characters
  • Pasting text starting with / silently swallowing input or triggering unknown-command reply
  • Pasting dumping stray escape sequences into prompt when focus events or mouse-tracking reports interleave with bracketed paste
  • Mouse wheel scrolling too fast in Cursor and VS Code 1.92–1.104 (upstream xterm.js bug)
  • Scroll-wheel handling in JetBrains IDE 2025.2 terminals (spurious arrow keys, wrong-direction events, runaway acceleration)
  • /usage Ctrl+S hanging when copying stats screenshot to clipboard on Linux/X11
  • /terminal-setup showing contradictory error in Windows Terminal — Shift+Enter now recognized as natively supported
  • /effort picker not reflecting CLAUDE_CODE_EFFORT_LEVEL env var override
  • /status showing wrong default model for some users
  • Slash command autocomplete popup capped at ~3–5 visible commands instead of scaling with terminal height
  • Statusline context_window token counts reflecting cumulative session totals instead of current context usage
  • Alt+T (thinking toggle) not working on macOS terminals without "Option as Meta" enabled (iTerm2, Terminal.app defaults)
  • Dead keyboard input on Windows after re-opening background session from claude agents
  • Unbounded memory growth (10GB+ RSS) when stdio MCP server writes non-protocol data to stdout
  • MCP servers that connect but fail tools/list silently showing 0 tools — now retry once and show "connected · tools fetch failed" in /mcp
  • Unauthorized claude.ai MCP connectors showing as "failed" instead of "needs auth"; headless -p mode no longer retries non-transient 4xx connection failures
  • Bedrock and Vertex 400 errors when ENABLE_PROMPT_CACHING_1H is set

Improved

  • Visual consistency in slash command dialogs and /login, /upgrade, /extra-usage dialog spacing
  • /tui fullscreen startup banner now describes additional renderer benefits (lower memory usage, mouse support, auto-copy on select)

Update: npm install -g @anthropic-ai/claude-code@latest

Source: Claude Code