Skip to content

Claude Code 2.1.307

43changes
  • Add @claude review stop (and off/pause) to end a Code Review subscription on a pull request without starting a new review.
  • Add /claude-api api-version to move Claude API code to a chosen API version.
  • Fix some "Autocompact is thrashing" errors in turns reading many PDF pages, images or other large tool results.
  • Improve the time to the first reply in cloud sessions when a desktop app MCP server can't connect.
  • Change self-hosted runner checkout hooks to stop after 30 minutes by default, failing setup unless the timeout is raised.

New features

4
More changes (2) Fewer changes

Improvements

13
More changes (11) Fewer changes

Retry unparseable tool calls before erroring

Improved recovery from unparseable tool calls: Claude Code now retries the call up to twice before ending the turn with an error

Tell fork subagents which launch is their own

Improved fork subagents launched together: each is now told which launch is its own, so forks are much less likely to try to start each other's work

Show sign-in success before profile loads

Improved browser sign-in: the success page now appears as soon as sign-in completes, without waiting for your account profile to load

Show the real reason for web search 403s

Improved web search errors in cloud and self-hosted runner sessions: a search refused with a 403 that gives a reason now shows that reason instead of a generic "Authentication error"

Speed up Remote Control connect with large transcripts

Improved Remote Control connect time for sessions whose transcript contains large pasted images or PDF reads

Tell Claude not to route around a used-up search budget

Changed the notice Claude gets when the WebSearch budget is used up to also tell it not to query search engines in a browser or through computer use

Restrict axScreenReader to trusted settings sources

Changed the axScreenReader setting and CLAUDE_CODE_AX_SCREEN_READER in a settings env block to apply only from user, managed or --settings settings (since 2.1.305)

▤ In the docs

[Self-hosted runner] Filter git proxy certificates

Changed the certificate file built for Anthropic-managed git to filter its trusted certificates as the CLI does; a [runner:warn] line gives the number left out

[VSCode] Cover leftover extension-restart processes

Changed the "still open somewhere else" notice to also cover a Claude process left over from an extension restart, which usually ends on its own within about 10 minutes

▤ In the docs

[VSCode] Filter voice dictation trusted certificates

Changed voice dictation to filter its trusted certificates as the CLI does

[VSCode] Filter extension request certificates

Changed the extension's own requests to filter their trusted certificates as the CLI does, and to trust the NODE_EXTRA_CA_CERTS file named in the environment or in user settings

Bug fixes

26
More changes (25) Fewer changes

Fix model-not-found with 1M context disabled

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]

Stop sending prompt-caching-scope behind gateways

Fixed the prompt-caching-scope beta header being sent behind custom ANTHROPIC_BASE_URL gateways and on Foundry, where it has no effect

Explain MCP auth errors on a locked keychain

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

Fix MCP timeouts from sleeping mid-connect

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

Stop duplicate HTTP MCP tool calls

Fixed HTTP MCP tool calls being sent twice when the connection closed mid-call; only read-only or idempotent tools are now retried

Fix stale SDK MCP tools during background tasks

Fixed a turn sometimes starting without an SDK MCP server's latest tools when a background task was running

Preserve /autocompact window across cloud restarts

Fixed /autocompact in cloud sessions going back to the default window after the session restarted

Fix cleared conversations returning after restart

Fixed a conversation cleared with /clear sometimes coming back when a cloud or self-hosted runner session restarted

Fix stream timeout ignored in gateway sessions

Fixed CLAUDE_STREAM_FIRST_BYTE_TIMEOUT_MS being ignored in Claude apps gateway sessions

Fix rejected telemetry behind Claude apps gateway

Fixed telemetry from Claude Desktop sessions behind a Claude apps gateway being rejected when OTEL_EXPORTER_OTLP_HEADERS is set

Name the command in Recently denied rows

Fixed /permissions > Recently denied not showing the denied shell command, and auto mode's local classifier ignoring an approval from there when it checks a retried command; approving a row now names the command, not its description

Fix /help showing long skill descriptions

Fixed /help and the / command menu showing long model-facing descriptions for bundled skills such as /claude-api instead of their short descriptions

Fix placeholder token usage in subagent transcripts

Fixed subagent transcripts recording placeholder token usage and an empty stop reason for streamed responses

Raise the Agent SDK setModel() timeout

Fixed model switches through the Agent SDK's setModel(), and apps built on it, being refused when the API took more than 5 seconds to confirm the model; Claude Code now waits up to 15 seconds

Name the output file when an app stops a command

Fixed a background command stopped through a connected app (such as the desktop app archiving an idle session) being reported to Claude as stopped by the user; the notice now names its output file

Fix WebFetch 4xx errors in Cowork cloud sessions

Fixed WebFetch in Cowork cloud sessions reporting a tool error when a site answered with a 4xx status or a robots.txt refusal; it is now a normal result, as in local sessions

Fix GitHub MCP write form closing without creating

Fixed write tools on a directly configured GitHub MCP server showing a form that closed without creating anything in the desktop app's Code tab

Fix Artifact reads failing on reused connections

Fixed Artifact tool reads failing with a connection reset when the server had closed a reused connection

[Self-hosted runner] Stop committing stray settings.local.json

Fixed sessions with --use-anthropic-git-proxy committing a .claude/settings.local.json left in the clone by an earlier session

[Self-hosted runner] Free slots held by stuck checkout hooks

Fixed archiving or requeueing a session, or stopping the runner, during its checkout hook leaving the hook's processes running and the runner's slot held

[VSCode] Cap pinned prompt height

Fixed a long prompt expanded with Show more covering the whole chat panel: a pinned prompt is now capped at 40% of the panel and scrolls

[VSCode] Fix LaTeX math pasting as a new list

Fixed part of a list item or table cell with LaTeX math pasting as a new list or table in rich text editors

[VSCode] Fix dictation behind TLS-inspecting proxies

Fixed dictation failing behind a TLS-inspecting proxy when NODE_EXTRA_CA_CERTS is set only in ~/.claude/settings.json; it now also follows CLAUDE_CODE_CERT_STORE

[Cloud sessions] Show Searching… during repo lookup

Fixed the repository picker saying "No repositories match" while a search was still running; it now shows "Searching…" until the results arrive

[Cloud sessions] Fix truncated runner wait status

Fixed the "Waiting for a runner" status on self-hosted environments being cut off; with on-demand runners it now counts up from your last message and shows failed attempts

Change details