Claude Code Changelog

An unofficial reader. Not made by or affiliated with Anthropic. The notes are quoted word for word from anthropics/claude-code.

Claude Code 2.1.161

Released2 Jun 2026

2 Jun 2026. 22 items: 1 added, 14 fixed, 2 improved, 5 other notes.

Hooks
1
Agents
4
Commands
4
Settings
3

Security1

  1. FIX Fixed claude mcp list/get/add printing secrets to the terminal: ${VAR} references are no longer expanded, and credential headers and URL secrets are redacted

Hooks1

  1. FIX Fixed Windows hooks that invoke bash explicitly (e.g., /usr/bin/bash script.sh) failing with "command not found" or "cannot execute binary file"

SDK and headless1

  1. FIX Fixed background subagent output corrupting claude -p stdout when using --output-format text or json

Agents4

  1. NOTE claude agents rows now show done/total before the detail when work is fanned out; peek shows the longest-running item
  2. FIX Fixed Workflow agents spawned with isolation: "worktree" in background sessions being blocked from editing files inside their own worktree
  3. FIX Fixed background sessions dispatched from claude agents booting on a stale model from the daemon's environment instead of the model in settings.json
  4. FIX Fixed completed subagents getting stuck showing as running when an error occurs while finalizing their result

IDE and desktop1

  1. ADD [VSCode] Added a tip suggesting disabling terminal GPU acceleration (or running /terminal-setup) to fix garbled glyphs

Commands4

  1. NOTE /mcp now collapses claude.ai connectors you've never signed in to behind a "Show unused connectors" row
  2. FIX Fixed the /effort dialog, workflow animations, and prompt keyword shimmer not honoring the "Reduce motion" setting
  3. FIX Fixed /usage-credits starting a re-login for Team and Enterprise admins instead of pointing to the organization's usage settings page
  4. FIX Fixed /autofix-pr reporting "cannot run on the default branch" when the session is inside a git worktree or another repository

Settings3

  1. NOTE OTEL_RESOURCE_ATTRIBUTES values are now included as labels on metric datapoints, so you can slice usage metrics by custom dimensions like team or repo
  2. FIX Fixed forceLoginOrgUUID/forceLoginMethod managed-settings policies blocking third-party provider sessions (Bedrock, Vertex, Foundry, Mantle) alongside the org pin (regression in 2.1.146)
  3. FIX Fixed EADDRINUSE errors from tools that bind Unix sockets under $TMPDIR when CLAUDE_CODE_TMPDIR is set to a deep path

Performance2

  1. IMP Improved terminal rendering performance by stabilizing the layout engine's JIT compilation profile
  2. IMP Improved rendering performance for large file writes

Terminal and input2

  1. NOTE Fullscreen mode: clipboard now uses wl-copy/xclip/xsel on Linux when available, copies to both the clipboard and PRIMARY selection for middle-click paste, and the "hold {key} for native selection" hint now shows the correct key per terminal
  2. FIX Fixed a potential crash when rendering Write tool results after resuming a session

Sessions and context1

  1. FIX Fixed --resume picker not showing sessions from the current directory when it isn't a git worktree (e.g., jj workspaces)

Built-in tools1

  1. NOTE Parallel tool calls: a failed Bash command no longer cancels other calls in the same batch — each tool returns its own result independently

Everything else1

  1. FIX Fixed OpenTelemetry log events (user_prompt, api_request, tool_result, tool_decision) being silently dropped when emitted before telemetry initialization completed