Skip to content

Commit dda8a06

Browse files
github-actions[bot]claude-yolo[bot]
andcommitted
docs: Claude Code v2.1.211 - live MCP connector artifacts, security fixes, prompt-caching regression fix
Co-Authored-By: claude-yolo[bot] <claude-yolo@lroole.com>
1 parent 6980e27 commit dda8a06

147 files changed

Lines changed: 1554 additions & 896 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

content/.metadata.json

Lines changed: 296 additions & 268 deletions
Large diffs are not rendered by default.

content/CHANGELOG.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,45 @@
11
# Changelog
22

3+
## 2.1.211
4+
5+
- Added `--forward-subagent-text` flag and `CLAUDE_CODE_FORWARD_SUBAGENT_TEXT` environment variable to include subagent text and thinking in stream-json output
6+
- Fixed permission previews relayed to chat channels not neutralizing bidirectional-override, zero-width, and look-alike quote characters, so tool inputs cannot visually alter the approval message
7+
- Fixed auto mode overriding a PreToolUse hook's `ask` decision for unsandboxed Bash — a hook `ask` now floors the decision at a prompt
8+
- Fixed parallel Claude Code sessions all logging out simultaneously after wake-from-sleep when many sessions share one credential store
9+
- Fixed plugin MCP servers not reconnecting after an idle web session woke, leaving MCP calls failing until the next message
10+
- Fixed Claude Code on Vertex and Bedrock attempting the default Opus model at startup and printing a spurious fallback notice when a model is explicitly configured
11+
- Fixed subagents spawned with an explicit model override reverting to the parent's model when resumed or sent a follow-up message
12+
- Fixed nested `.claude/rules/*.md` files loading even when setting sources exclude project settings
13+
- Fixed file upload validation: filenames ending in a DOS device suffix (`.prn`) or trailing dot are now accepted, and files with multiple hard links are refused
14+
- Fixed file uploads to Claude in Chrome from remote and CLI sessions
15+
- Fixed edits that leave the input as "?" being silently swallowed and toggling the shortcuts panel
16+
- Fixed a startup hang when the Claude in Chrome extension is enabled but Chrome is not running
17+
- Fixed a 300ms delay revealing async content (Settings tabs, Stats, diff views, and other loading states)
18+
- Fixed reopening a just-stopped background session from the agents view starting a blank conversation under the same session id
19+
- Fixed `/loop` hiding the session from `/resume` after a single use
20+
- Fixed screen reader users losing the audible terminal bell after `/terminal-setup` or onboarding terminal setup
21+
- Fixed background jobs on LLM gateway auth (`ANTHROPIC_AUTH_TOKEN` + `ANTHROPIC_BASE_URL`) coming back "Not logged in" after the daemon respawns them
22+
- Fixed `claude agents` jobs becoming permanently undeletable when git no longer recognizes their worktree — the row now shows why the delete was refused instead of silently reappearing
23+
- Fixed `/clear` not resetting the session cost counter — the statusline's cost now starts at $0 after `/clear`
24+
- Fixed Claude in Chrome setup pages failing to open in the browser on Windows
25+
- Fixed headless print-mode sessions on Windows crashing or silently exiting when stdin is unreadable
26+
- Fixed background session titles in the agents view showing the naming model's refusal text when the prompt contains a link
27+
- Fixed background agents killed by the user auto-respawning, and revived agents re-running stale prompts from old sessions
28+
- Fixed routines with no schedule reporting a next run time in the year 1
29+
- Hardened synced skill/plugin directory naming on Windows and kept CCR web fetch/search proxies working after `/clear`
30+
- Improved terminal layout and rendering performance
31+
- Improved background agent result reporting — Claude now reports the status of still-running agents and waits for the real completion instead of fabricating results
32+
- Improved the memory index over-limit warning to measure only loaded content, excluding frontmatter and HTML comments
33+
- Updated integer environment variables (timeouts, token budgets, retry counts) to accept scientific notation and digit-separator spellings like `1e6` and `64_000`
34+
- Updated documentation links to the current docs sites
35+
- Changed "always allow" permission rules to save at the repository root, so approvals granted in a git worktree persist across sessions and worktrees
36+
- Changed `/usage-credits` to ask for confirmation before sending a request to organization admins
37+
- Changed Vim mode `s` and `S` (substitute char/line) to work in NORMAL mode, matching vim behavior
38+
- [VSCode] Updated the Remote Control banner to describe what it does
39+
- Claude in Chrome: hardened file-upload path validation
40+
- Claude in Chrome: `save_to_disk` on screenshot actions now writes the image to disk and returns the path; previously it did nothing
41+
- Fixed a prompt-caching regression on Bedrock, Vertex, Mantle, and Foundry that billed the trailing system context block as fresh input tokens on every request.
42+
343
## 2.1.210
444

545
- Added a live elapsed-time counter to the collapsed tool summary line so long-running tool calls visibly tick instead of looking stuck

content/claude-code-manifest.json

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"name": "@anthropic-ai/claude-code",
3-
"version": "2.1.210",
3+
"version": "2.1.211",
44
"author": {
55
"name": "Anthropic",
66
"email": "support@anthropic.com"
77
},
88
"license": "SEE LICENSE IN README.md",
9-
"_id": "@anthropic-ai/claude-code@2.1.210",
9+
"_id": "@anthropic-ai/claude-code@2.1.211",
1010
"maintainers": [
1111
{
1212
"name": "zak-anthropic",
@@ -69,20 +69,20 @@
6969
"claude": "bin/claude.exe"
7070
},
7171
"dist": {
72-
"shasum": "8b0306a7497680b242955a53db363e13b846406d",
73-
"tarball": "https://registry.npmjs.org/@anthropic-ai/claude-code/-/claude-code-2.1.210.tgz",
72+
"shasum": "68055cb6571ffeb9c6dcd711460a3df1521fcaac",
73+
"tarball": "https://registry.npmjs.org/@anthropic-ai/claude-code/-/claude-code-2.1.211.tgz",
7474
"fileCount": 7,
75-
"integrity": "sha512-VlV7HSkli4UhlZXF5dWmDolXDz16GJdhgpUbVeXnylRHjr6fDDQtgZhO1X1JAxrQjufqXhOs3o1hveqZjLmjNw==",
75+
"integrity": "sha512-yGhXSF9YfHoVGe0S6N9ky5uajx79f+vt6ZT3HhBJLFSjJtiGEs67H0h93iTdOvPU/wOffijpTUAn76U/+vQnTQ==",
7676
"signatures": [
7777
{
78-
"sig": "MEUCIQCUYqIgtuONo0wZRQwBzcB0Y+a5xJLKyl3pFik/CsJ0RQIgWza3fG95n/Xala7jMGrkr+ASAZrrhFiSG+VlphcfWzg=",
78+
"sig": "MEUCIEJRQrYRz/QzeVio1yKdJBySDQlwZFdnAzOwpHP7J4ZBAiEAwcB6t+weFMj1XrB4RJj5JgDBygD07x0DPwZuoHlOCLQ=",
7979
"keyid": "SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"
8080
}
8181
],
82-
"unpackedSize": 158809
82+
"unpackedSize": 159686
8383
},
8484
"type": "module",
85-
"_from": "file:staged-npm/anthropic-ai-claude-code-2.1.210.tgz",
85+
"_from": "file:staged-npm/anthropic-ai-claude-code-2.1.211.tgz",
8686
"engines": {
8787
"node": ">=22.0.0"
8888
},
@@ -94,8 +94,8 @@
9494
"name": "wolffiex",
9595
"email": "wolffiex@anthropic.com"
9696
},
97-
"_resolved": "/home/runner/work/claude-cli-internal/claude-cli-internal/staged-npm/anthropic-ai-claude-code-2.1.210.tgz",
98-
"_integrity": "sha512-VlV7HSkli4UhlZXF5dWmDolXDz16GJdhgpUbVeXnylRHjr6fDDQtgZhO1X1JAxrQjufqXhOs3o1hveqZjLmjNw==",
97+
"_resolved": "/home/runner/work/claude-cli-internal/claude-cli-internal/staged-npm/anthropic-ai-claude-code-2.1.211.tgz",
98+
"_integrity": "sha512-yGhXSF9YfHoVGe0S6N9ky5uajx79f+vt6ZT3HhBJLFSjJtiGEs67H0h93iTdOvPU/wOffijpTUAn76U/+vQnTQ==",
9999
"_npmVersion": "11.16.0",
100100
"description": "Use Claude, Anthropic's AI assistant, right from your terminal. Claude can understand your codebase, edit files, run terminal commands, and handle entire workflows for you.",
101101
"directories": {},
@@ -104,17 +104,17 @@
104104
"_hasShrinkwrap": false,
105105
"readmeFilename": "README.md",
106106
"optionalDependencies": {
107-
"@anthropic-ai/claude-code-linux-x64": "2.1.210",
108-
"@anthropic-ai/claude-code-win32-x64": "2.1.210",
109-
"@anthropic-ai/claude-code-darwin-x64": "2.1.210",
110-
"@anthropic-ai/claude-code-linux-arm64": "2.1.210",
111-
"@anthropic-ai/claude-code-win32-arm64": "2.1.210",
112-
"@anthropic-ai/claude-code-darwin-arm64": "2.1.210",
113-
"@anthropic-ai/claude-code-linux-x64-musl": "2.1.210",
114-
"@anthropic-ai/claude-code-linux-arm64-musl": "2.1.210"
107+
"@anthropic-ai/claude-code-linux-x64": "2.1.211",
108+
"@anthropic-ai/claude-code-win32-x64": "2.1.211",
109+
"@anthropic-ai/claude-code-darwin-x64": "2.1.211",
110+
"@anthropic-ai/claude-code-linux-arm64": "2.1.211",
111+
"@anthropic-ai/claude-code-win32-arm64": "2.1.211",
112+
"@anthropic-ai/claude-code-darwin-arm64": "2.1.211",
113+
"@anthropic-ai/claude-code-linux-x64-musl": "2.1.211",
114+
"@anthropic-ai/claude-code-linux-arm64-musl": "2.1.211"
115115
},
116116
"_npmOperationalInternal": {
117-
"tmp": "tmp/claude-code_2.1.210_1784057961569_0.16964935035617112",
117+
"tmp": "tmp/claude-code_2.1.211_1784143446878_0.6187546655379783",
118118
"host": "s3://npm-registry-packages-npm-production"
119119
}
120120
}

content/en/docs/claude-code/advisor.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
> Pair your main model with a stronger advisor model that Claude consults at key moments during a task.
88
99
<Note>
10-
The advisor tool is experimental and requires the Anthropic API. It is not available on Amazon Bedrock, Google Cloud's Agent Platform, or Microsoft Foundry. Behavior, pricing, and availability may change.
10+
The advisor tool is experimental and requires the Anthropic API. It is not available on Amazon Bedrock, Claude Platform on AWS, Google Cloud's Agent Platform, or Microsoft Foundry. Behavior, pricing, and availability may change.
1111
</Note>
1212

1313
The advisor tool lets Claude consult a second, typically stronger model at key moments during a task, such as before committing to an approach, when stuck on a recurring error, or before declaring a task complete. The advisor receives the full conversation, including every tool call and result, and returns guidance that Claude applies before continuing.
@@ -135,7 +135,7 @@ The advisor model's own read of the conversation is not cached. Each advisor cal
135135

136136
The advisor tool requires all of the following:
137137

138-
* **Anthropic API only**: the advisor is a server-executed tool. It is not available on Amazon Bedrock, Google Cloud's Agent Platform, or Microsoft Foundry. Through an [LLM gateway](/en/llm-gateway) configured with `ANTHROPIC_BASE_URL`, availability depends on whether the gateway forwards the request intact to the Anthropic API.
138+
* **Anthropic API only**: the advisor is a server-executed tool. It is not available on Amazon Bedrock, Claude Platform on AWS, Google Cloud's Agent Platform, or Microsoft Foundry. Through an [LLM gateway](/en/llm-gateway) configured with `ANTHROPIC_BASE_URL`, availability depends on whether the gateway forwards the request intact to the Anthropic API.
139139
* **Supported main model**: Opus 4.6 or later, Sonnet 4.6 or later, or Haiku 4.5. {/* min-version: 2.1.170 */}Fable 5 also qualifies on Claude Code v2.1.170 or later.
140140

141141
## Turn the advisor off

content/en/docs/claude-code/agent-sdk/agent-loop.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -208,14 +208,14 @@ Use lower effort for agents doing simple, well-scoped tasks (like listing files
208208

209209
The permission mode option (`permission_mode` in Python, `permissionMode` in TypeScript) controls whether the agent asks for approval before using tools:
210210

211-
| Mode | Behavior |
212-
| :-------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
213-
| `"default"` | Tools not covered by allow rules trigger your approval callback; no callback means deny |
214-
| `"acceptEdits"` | Auto-approves file edits and common filesystem commands (`mkdir`, `touch`, `mv`, `cp`, etc.); other Bash commands follow default rules |
215-
| `"plan"` | Claude explores and plans without editing your source files; file edits are never auto-approved and prompt through your `canUseTool` callback |
216-
| `"dontAsk"` | Never prompts. Tools pre-approved by [permission rules](/en/settings#permission-settings) run, everything else is denied |
217-
| `"auto"` | Uses a model classifier to approve or deny each tool call. See [Auto mode](/en/permission-modes#eliminate-prompts-with-auto-mode) for availability and behavior |
218-
| `"bypassPermissions"` | Runs all allowed tools without asking, unless an explicit [`ask` rule](/en/settings#permission-settings) matches; see [How permissions are evaluated](/en/agent-sdk/permissions#how-permissions-are-evaluated) for where ask rules sit in the precedence order. Cannot be used when running as root on Unix. Use only in isolated environments where the agent's actions cannot affect systems you care about |
211+
| Mode | Behavior |
212+
| :-------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
213+
| `"default"` | Tools not covered by allow rules trigger your approval callback; no callback means deny |
214+
| `"acceptEdits"` | Auto-approves file edits and common filesystem commands (`mkdir`, `touch`, `mv`, `cp`, etc.); other Bash commands follow default rules |
215+
| `"plan"` | Claude explores and plans without editing your source files; file edits are never auto-approved and prompt through your `canUseTool` callback |
216+
| `"dontAsk"` | Never prompts. Tools pre-approved by [permission rules](/en/settings#permission-settings) run; everything else is denied. `AskUserQuestion`, connector tools [your organization set to `ask`](/en/mcp#organization-controls-on-connector-tools), and MCP tools marked [`requiresUserInteraction`](/en/mcp#require-approval-for-a-specific-tool) are denied even if you've allowed them |
217+
| `"auto"` | Uses a model classifier to approve or deny each tool call. See [Auto mode](/en/permission-modes#eliminate-prompts-with-auto-mode) for availability and behavior |
218+
| `"bypassPermissions"` | Runs all allowed tools without asking, except tools matched by an explicit [`ask` rule](/en/settings#permission-settings), connector tools [your organization set to `ask`](/en/mcp#organization-controls-on-connector-tools), and tools that require user interaction; see [How permissions are evaluated](/en/agent-sdk/permissions#how-permissions-are-evaluated) for the precedence order. Cannot be used when running as root on Unix. Use only in isolated environments where the agent's actions cannot affect systems you care about |
219219

220220
For interactive applications, use `"default"` with a tool approval callback to surface approval prompts. For autonomous agents on a dev machine, `"acceptEdits"` auto-approves file edits and common filesystem commands (`mkdir`, `touch`, `mv`, `cp`, etc.) while still gating other `Bash` commands behind allow rules. Reserve `"bypassPermissions"` for CI, containers, or other isolated environments. See [Permissions](/en/agent-sdk/permissions) for full details.
221221

0 commit comments

Comments
 (0)