🟡 🏥 In Practice Thursday, May 7, 2026 · 2 min read ·

Anthropic: Claude Code v2.1.132 Brings 25+ Fixes and New Env Variables for Hooks

Editorial illustration: Claude Code v2.1.132 brings 25+ fixes and new environment variables for hooks

Anthropic released Claude Code v2.1.132 with 25+ bug fixes and two new environment variables: CLAUDE_CODE_SESSION_ID for hook integration and CLAUDE_CODE_DISABLE_ALTERNATE_SCREEN for native scrollback. A serious bug with 10GB+ RSS memory growth in MCP servers has also been resolved.

🤖

This article was generated using artificial intelligence from primary sources.

Anthropic released Claude Code v2.1.132 on 6 May 2026, a release containing more than 25 bug fixes and two new environment variables aimed at tooling integrations. The version arrives on the same day as v2.1.131, which fixed Windows VS Code activation and Mantle endpoint authentication.

What new env variables does v2.1.132 introduce?

CLAUDE_CODE_SESSION_ID is now automatically added to the Bash tool subprocess environment, with the same value passed to hooks. This allows hook scripts to reliably link to the session ID without additional parsing.

The second addition is CLAUDE_CODE_DISABLE_ALTERNATE_SCREEN=1, which disables the fullscreen alternate-screen renderer and keeps the entire conversation in the terminal’s native scrollback buffer. Useful for users who prefer a classic terminal flow over an isolated fullscreen view.

What terminal and session issues were fixed?

An external SIGINT (IDE stop button, kill -INT) that was not triggering graceful shutdown has been resolved — terminal modes now restore properly and a --resume hint is printed instead of an abrupt exit. An uncaught exception when the terminal closes or an SSH connection drops mid-session has also been fixed.

--resume no longer crashes with a no low surrogate in string error when truncation tool errors split an emoji. The --permission-mode flag is now respected on resume of a plan-mode session, and plan mode reactivates correctly after ExitPlanMode within the same session.

Which MCP and IDE bugs were resolved?

The most significant backend fix is unbounded memory growth (10GB+ RSS) in stdio MCP servers that write non-protocol data to stdout. Additionally, unauthorized claude.ai MCP connectors now correctly display as “needs auth” instead of “failed.”

For IDE users, scroll bugs were fixed: overly fast mouse wheel scrolling in Cursor and VS Code 1.92–1.104 (upstream xterm.js bug), and scroll-wheel handling in JetBrains 2025.2 terminals. The earlier v2.1.131 fixed VS Code activation on Windows and the missing x-api-key header for Mantle endpoint authentication.

Frequently Asked Questions

How do the new env variables in v2.1.132 help?
CLAUDE_CODE_SESSION_ID passes the session ID to the Bash subprocess environment (same as in hook integration), while CLAUDE_CODE_DISABLE_ALTERNATE_SCREEN=1 disables the fullscreen renderer and keeps the conversation in the terminal's native scrollback buffer.
What caused the 10GB+ RSS memory leak?
MCP servers writing non-protocol data to stdout caused unbounded memory growth in the Claude Code process. The fix now discards such messages instead of accumulating them.
Which IDE-specific bugs does this version fix?
Fixed overly fast scroll-wheel behavior in Cursor and VS Code 1.92–1.104, and scroll bugs in JetBrains 2025.2 (phantom arrows, wrong direction, runaway acceleration). The Mantle x-api-key auth bug from v2.1.131 is also resolved.