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.166

Released5 Jun 2026

5 Jun 2026. 21 items: 2 added, 14 fixed, 5 other notes.

MCP
1
Agents
4
Commands
2
Settings
3

MCP1

  1. ADD Added glob pattern support in deny rule tool-name position ("*" denies all tools); allow rules reject non-MCP globs, and unknown tool names in deny rules warn at startup

Agents4

  1. NOTE claude agents: typing a URL into the list now filters to the session whose first prompt contained it
  2. FIX Fixed background agent sessions that entered a git worktree crash-looping with "No conversation found" when reopened from claude agents
  3. FIX Fixed the cursor sticking at the end of the first line when typing a multiline prompt in the claude agents dispatch and reply inputs
  4. FIX Fixed blank lines appearing between background agent rows in the task list on terminals without Unicode support

IDE and desktop1

  1. FIX Fixed flickering in JetBrains IDE terminals (IntelliJ, PyCharm, WebStorm, etc.) on 2026.1+ by enabling synchronized output

Commands2

  1. FIX Fixed voice mode requiring /login to clear a stale auth check after toggling /voice
  2. FIX Fixed /doctor showing a contradictory failed "Not inside a remote session" check when run inside a remote session

Settings3

  1. ADD Added fallbackModel setting to configure up to three fallback models tried in order when the primary model is overloaded or unavailable; --fallback-model now also applies to interactive sessions
  2. FIX Fixed managed settings with an invalid entry silently disabling enforcement of their remaining valid policies
  3. FIX Fixed managed-settings allowedMcpServers/deniedMcpServers predicates not matching when they use ${VAR} references

Permissions1

  1. NOTE Hardened cross-session messaging: messages relayed via SendMessage from other Claude sessions no longer carry user authority — receivers refuse relayed permission requests, and auto mode blocks them

Models and providers4

  1. NOTE MAX_THINKING_TOKENS=0, --thinking disabled, and the per-model thinking toggle now disable thinking on models that think by default via the Claude API (3P providers unchanged)
  2. NOTE Claude Code now retries a turn once on the fallback model when the API rejects an unexpected non-retryable error; auth, rate-limit, request-size, and transport errors still surface immediately
  3. FIX Fixed a recurring "image could not be processed" error and extra token usage when an unprocessable image was sent in a session
  4. FIX Fixed duplicated thinking text in the Ctrl+O transcript view while streaming

Performance2

  1. FIX Fixed PowerShell command validation occasionally hanging far past its time budget on Windows when a killed process's children held its output pipes
  2. FIX Fixed orphaned claude --bg-pty-host processes spinning at 100% CPU after the daemon dies while connected on macOS

Terminal and input1

  1. FIX Fixed Shift+non-ASCII characters (e.g. Shift+ä → Ä) being dropped in terminals using the Kitty keyboard protocol (WezTerm, Ghostty, kitty)

Sessions and context1

  1. FIX Fixed remote sessions becoming permanently stuck when a brief backend disruption occurred during worker registration at startup

Everything else1

  1. NOTE claude update now announces the target version before downloading instead of going silent