PatchGoblin

Claude – v2.1.307

Published
(21 days ago)
Type
Patch notes
Version
2.1.307
Source
github.com
v2.1.307

Get Claude updates in Discord Free · new changelog posted automatically

What’s in this update

What's changed

  • Added /claude-api api-version to move Claude API code to API version 2026-10-21
  • Added the claude_code.safety_event OpenTelemetry event for each tool call a permission rule, auto mode, a safety check, a hook or the sandbox stopped, prompted or sent back
  • Fixed requests failing with a model-not-found error when CLAUDE_CODE_DISABLE_1M_CONTEXT is set and the model is an alias with the [1m] suffix, such as opus[1m]
  • Fixed the prompt-caching-scope beta header being sent behind custom ANTHROPIC_BASE_URL gateways and on Foundry, where it has no effect
  • Fixed MCP servers showing "needs authentication" in claude -p on macOS while the login keychain was locked; they now say why, and the next run after an unlock connects without a new sign-in
  • Fixed MCP servers being reported as timed out, and staying failed in headless runs, when a macOS or Linux computer went to sleep while they were connecting
  • Fixed HTTP MCP tool calls being sent twice when the connection closed mid-call; only read-only or idempotent tools are now retried
  • Fixed a turn sometimes starting without an SDK MCP server's latest tools when a background task was running
  • Fixed some "Autocompact is thrashing" errors in turns that read many PDF pages, images or other large tool results
  • Fixed /autocompact in cloud sessions going back to the default window after the session restarted

…

Read the full patch notes on github.com →

Excerpt – the full text belongs to the publisher.