---
title: "Claude Code v2.1.222 Released: Fixes Worktree Isolation, Proxy Connectivity, and Stability Issues"
source: "Claude Code：GitHub Releases（RSS）"
source_tier: "t1_5"
url: "https://github.com/anthropics/claude-code/releases/tag/v2.1.222"
permalink: "https://feed.astralor.com/items/itm_a2aa8ac1f8275fff827d656e"
published: "2026-08-04T22:39:55.000Z"
score: 76
channel: "ai"
tags: ["Claude Code","MCP","Proxy","Security","Stability"]
---

# Claude Code v2.1.222 Released: Fixes Worktree Isolation, Proxy Connectivity, and Stability Issues

## AI commentary

> This release may look like routine fixes, but the worktree isolation and PreToolUse hook issues deserve attention; teams using Claude Code in automated workflows should upgrade promptly. Also, proxy-related fixes matter for users in restricted network environments. Developers should read the full changelog to see if their workflows are affected.

## At a glance

Claude Code v2.1.222 has been released, fixing a vulnerability that allowed worktree-isolated sessions and their subagents to run destructive git commands against the main checkout; isolation now applies to file edits and Bash in every session type. It also fixes PreToolUse auto-allow hooks bypassing tool restrictions in background agent tasks, and resolves startup connectivity checks hanging behind HTTPS proxies by using the same proxy-aware transport as API requests. Other improvements include truncating long SendMessage summaries, correcting usage attribution for MCP servers, adjusting Remote Control auto-start so repo-local settings cannot enable it, and removing the ultraplan feature. This release enhances security, stability, and user experience.

## Key points

- Fixed security vulnerability: worktree-isolated sessions and subagents can no longer run destructive git commands against the main checkout; isolation now applies to file edits and Bash in every session type.
- Fixed PreToolUse auto-allow hooks bypassing tool restrictions in background agent tasks.
- Fixed startup connectivity check hanging behind HTTPS proxies; it now uses the same proxy-aware transport as API requests.
- Fixed SendMessage rejecting long summaries by truncating them, and corrected usage attribution for MCP servers.

## Full text

What's changed Fixed worktree-isolated sessions and their subagents being able to run destructive git commands against the main checkout; isolation now applies to file edits and Bash in every session type Fixed PreToolUse auto-allow hooks bypassing tool restrictions in background agent tasks (summaries, compaction, renames) Fixed /usage-credits on Team and Enterprise showing "you've already sent a usage credit request" for members whose earlier request was dismissed, blocking them from sending a new one Fixed the startup connectivity check hanging and then failing behind an HTTPS proxy; it now uses the same proxy-aware transport as API requests and times out with a clear message Fixed "Connection closed mid-response" errors being reported on responses that had actually completed Fixed /usage overattributing usage to MCP servers: a server's share now reflects only the requests that actually consumed its tool results, instead of every turn after any call to it Fixed sessions not linking to pull requests created after the branch was pushed, including through the GitHub REST API Fixed org-restricted model: opus-style subagent and teammate family aliases dropping to the parent model instead of stepping down to the newest org-allowed model in the family Fixed stream idle timeout firing on custom ANTHROPIC_BASE_URL gateways despite server keep-alive pings arriving on the wire Fixed claude.ai connectors being falsely marked as needing authorization when the session token is invalid — they now show a /login hint instead Fixed tool errors not being displayed for tools no longer available locally, for example after an MCP server is removed Fixed SendMessage rejecting a long summary — it now truncates instead, so sends no longer fail on a character limit Fixed the spinner's effort label in a subagent's transcript view showing the session's effort level instead of the subagent's own effort: setting Fixed rare crashes when a file watcher hit a filesystem error or during file-watcher teardown Fixed screen readers re-reading the whole input line on every backspace in --ax-screen-reader mode — end-of-line deletions now echo just the deleted characters Fixed host model-selection keys not taking precedence over a stale on-disk managed-settings.json when CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST is set Improved auto mode safety: messages sent to other agent sessions via SendMessage are now evaluated by the permission classifier before dispatch Improved the refusal when Claude tries to invoke a skill with disable-model-invocation: Claude is now told to ask you to run the skill instead of replicating its workflow Improved the /diff view, the Remote Control workspace diff, and file-edit diffs in Claude Code on the web sessions to use raw git blob content, ignoring workspace-configured diff drivers and textconv Changed Remote Control auto-start so repo-local settings (.claude/settings.json or .claude/settings.local.json) can no longer turn it on (they can still turn it off); enable it at user scope via /config Removed ultraplan feature

---

Verify against the original before citing; curated by Astral Feed: https://feed.astralor.com/items/itm_a2aa8ac1f8275fff827d656e
