Changes on
11 changes detected
--- a/chrome.md
+++ b/chrome.md
@@ -130,7 +130,7 @@
Browser tools in plan mode
-In [plan mode](</docs/en/permission-modes#analyze-before-you-edit-with-plan-mode>), a permission prompt appears before Claude records a GIF, opens a new tab, or runs a shortcut. In an interactive CLI session, if [bypass permissions mode is available](</docs/en/permission-modes#skip-all-checks-with-bypasspermissions-mode>) and [feature-flag fetching](</docs/en/env-vars#features-that-need-feature-flag-fetching>) is off, these calls run without a prompt. A `tabs_context_mcp` call also prompts when it sets `createIfEmpty`, and so does a `browser_batch` call that includes any of these actions.
+In [plan mode](</docs/en/permission-modes#analyze-before-you-edit-with-plan-mode>), a permission prompt appears before Claude records a GIF or opens a new tab. In an interactive CLI session, if [bypass permissions mode is available](</docs/en/permission-modes#skip-all-checks-with-bypasspermissions-mode>) and [feature-flag fetching](</docs/en/env-vars#features-that-need-feature-flag-fetching>) is off, these calls run without a prompt. A `tabs_context_mcp` call also prompts when it sets `createIfEmpty`, and so does a `browser_batch` call that includes any of these actions.
##
--- a/commands.md
+++ b/commands.md
@@ -43,7 +43,7 @@
`/bug [report]`| Report a bug or share your conversation. You choose how much session history to include and confirm on a consent screen before anything is sent. When you’re signed in to Anthropic on a first-party connection, the report goes to Anthropic; on a third-party provider, or without Anthropic credentials, Claude Code writes the report to a [local archive under `~/.claude/feedback-bundles/`](</docs/en/data-usage#telemetry-services>) that you forward yourself. In the [VS Code extension](</docs/en/vs-code#use-the-prompt-box>), `/bug` opens the extension’s own feedback dialog instead; requires Claude Code v2.1.229 or later. When you run it while Claude is responding, Claude Code opens the dialog immediately. Before v2.1.232, Claude Code queued the command until the turn finished. Alias: `/share`. Before v2.1.212, `/bug` and `/share` were aliases of `/feedback`
`/cd <path>`| Move this session to a new working directory, keeping the conversation. Type a partial path to see matching directory suggestions; press `Tab` to accept one. For what Claude Code applies from the new directory as soon as you move, and how `/cd` differs from `/add-dir`, see [Move the session to another directory](</docs/en/permissions#move-the-session-to-another-directory>)
`/chrome`| Configure [Claude in Chrome](</docs/en/chrome>) settings
-`/claude-api [migrate|upgrade|api-version|managed-agents-onboard|managed-agents-secure|prompt-audit|cost-optimize|build-eval|hillclimb|preserved-thinking-migration]`| **[Skill](</docs/en/skills#bundled-skills>).** Load [Claude API](<https://platform.claude.com/docs/en/api/overview>) and [Managed Agents](<https://platform.claude.com/docs/en/managed-agents/overview>) reference material for your project’s language. Also activates automatically when your code imports `anthropic` or `@anthropic-ai/sdk`. For what each subcommand does and the version it requires, see [Work on Claude API projects](</docs/en/skills#work-on-claude-api-projects>)
+`/claude-api [migrate|upgrade|api-version|managed-agents-onboard|managed-agents-secure|prompt-audit|cost-optimize|latency-optimize|build-eval|hillclimb|preserved-thinking-migration]`| **[Skill](</docs/en/skills#bundled-skills>).** Load [Claude API](<https://platform.claude.com/docs/en/api/overview>) and [Managed Agents](<https://platform.claude.com/docs/en/managed-agents/overview>) reference material for your project’s language. Also activates automatically when your code imports `anthropic` or `@anthropic-ai/sdk`. For what each subcommand does and the version it requires, see [Work on Claude API projects](</docs/en/skills#work-on-claude-api-projects>)
`/claude-in-chrome [task]`| **[Skill](</docs/en/skills#bundled-skills>).** Have Claude carry out a task in your browser, such as testing a page, filling a form, or reading console logs, through [Claude in Chrome](</docs/en/chrome>). Available when Chrome integration is enabled for the session, for example with `claude --chrome`, or when Claude Code can offer to [install the extension](</docs/en/chrome#install-the-extension-when-claude-asks>)
`/clear [name]`| Start a new conversation with empty context. Pass a name to label the previous conversation in the `/resume` picker. To free up context while continuing the same conversation, use `/compact` instead. Resume the previous conversation with `/resume`, or, in the same Claude Code process, restore it from [the rewind menu’s previous-session entry](</docs/en/checkpointing#rewind-past-a-cleared-conversation>). Aliases: `/reset`, `/new`
`/code-review [low|medium|high|xhigh|max|ultra] [--fix] [--comment] [--max-findings n|all|default] [pr#|branch|path]`| **[Skill](</docs/en/skills#bundled-skills>).** Review the current diff, or a PR number, branch, or path you pass, for correctness bugs. Depending on your model and effort level, the review also covers cleanup opportunities. Pass `--fix` to have Claude apply the findings, `--comment` to post them on the GitHub PR or GitLab merge request, or `ultra` to run a deep [cloud review](</docs/en/ultrareview>). Posting to a GitLab merge request requires Claude Code v2.1.257 or later. With `ultra` on a `github.com` PR target, pass `--post` to preselect [posting the finished findings to the PR](</docs/en/ultrareview#post-findings-to-the-pull-request>) in the launch dialog; `--post` requires Claude Code v2.1.227 or later. See [Review locally with `/code-review`](</docs/en/code-review-local>) for the effort levels, targeting, and how it relates to `/simplify`. Alias: `/review`
--- a/desktop.md
+++ b/desktop.md
@@ -154,15 +154,23 @@
Turn off scripts in SSH and WSL previews for your organization
-To keep HTML previews in SSH and WSL sessions from running scripts, set the `disableBrowserExternalNavigation` managed setting to `true`. With this setting, users also can’t browse external sites in the Browser pane. Set it in your [server-managed settings](</docs/en/server-managed-settings>), or in a [Claude Code MDM policy or managed settings file](</docs/en/managed-settings#where-each-mechanism-stores-the-policy>) on the computer that runs Desktop. Desktop doesn’t read it from the remote machine or the WSL distribution. With a [third-party provider](</docs/en/third-party-integrations>), use the MDM policy or the file.
+To keep HTML previews in SSH and WSL sessions from running scripts, set the `disableRemotePreviewScripts` managed setting to `true`. Users can still browse external sites. Requires Claude Desktop v5.1231.0 or later.
+
+Earlier versions ignore `disableRemotePreviewScripts`. To stop the scripts there, update Desktop, or also set `disableBrowserExternalNavigation` to `true`. Users then can’t browse external sites on any computer that receives `disableBrowserExternalNavigation`.
+
+Set each key in your [server-managed settings](</docs/en/server-managed-settings>), or in a [Claude Code MDM policy or managed settings file](</docs/en/managed-settings#where-each-mechanism-stores-the-policy>) on the computer that runs Desktop. Desktop doesn’t read these keys from the remote machine, the WSL distribution, a [`policyHelper`](</docs/en/settings-reference#policyhelper>), or Desktop’s own policies. With a [third-party provider](</docs/en/third-party-integrations>), use the MDM policy or the file.
If the computer that runs Desktop receives no Claude Code managed settings yet, also set [`parentSettingsBehavior`](</docs/en/settings-reference#parentsettingsbehavior>) to `"merge"` in the managed settings that you create. Desktop passes its own policy to Claude Code, and without `"merge"`, Claude Code [ignores that policy](</docs/en/managed-settings#let-an-embedding-host-add-policy>) once the computer has managed settings. On Windows, if you create a managed settings file, users also lose WSL sessions until you [allow them](</docs/en/admin-setup#wsl-sessions-in-claude-code-desktop>).If the computer already receives Claude Code managed settings, add the setting to those, and leave `parentSettingsBehavior` as it is there. On a computer with more than one MDM policy or managed settings file, use the [highest-ranked one](</docs/en/managed-settings#how-claude-code-combines-managed-sources>).
Then have users restart Desktop to make sure that the setting applies, and tell them what to expect:
- * **Files they open** : the preview doesn’t run scripts, so charts and tables that scripts draw stay empty
+ * **Files they open** : the preview doesn’t run scripts, so charts and tables that scripts draw stay empty. Its notice starts with `This preview doesn't run scripts`.
* **Previews that are running scripts** : if Desktop picks up the setting before the restart, they close. Users see `This preview closed because scripts are turned off for previews. Open the file again to view it without scripts.`
* **Files they export** : if a user exports a file and opens it in a browser, its scripts run there, with or without this setting
+
+##### Check a computer for scripts that still run
+
+After the restart, open an HTML file from an SSH or WSL session on that computer. If the notice above the preview starts with `This preview doesn't load anything from the web`, scripts still run there. Check Desktop’s version, where you put the key, and that its value is the JSON Boolean `true`.
###
@@ -2177,6 +2185,7 @@
`browserExternalPageTools`| set to `"disabled"` to prevent Claude from using tools to read or act on external pages in the Browser pane. Users can still navigate to external sites themselves, and local dev server previews are unaffected.
`disableMobileSimulatorTools`| set to `true` to block Claude’s tools for controlling and capturing devices in the [iOS Simulator pane](</docs/en/desktop-ios-simulator#turn-off-simulator-access>). The pane stays usable for the user’s own taps; only Claude’s access is removed. The value must be the JSON boolean `true`; the string `"true"` is ignored.
`disableBrowserExternalNavigation`| set to `true` to turn off external browsing in the Browser pane entirely. Neither users nor Claude can navigate to external sites, and localhost dev server previews are unaffected. HTML previews in SSH and WSL sessions don’t run scripts. The value must be the JSON boolean `true`; the string `"true"` is ignored.
+`disableRemotePreviewScripts`| set to `true` to turn off only the scripts in HTML previews in SSH and WSL sessions. Desktop doesn’t read it from the remote machine or the WSL distribution. The value must be the JSON boolean `true`; the string `"true"` is ignored. Requires Claude Desktop v5.1231.0 or later.
`sshConfigs`| pre-configure SSH connections that appear in the environment selector. Users can’t delete managed connections or edit anything but their own **Worktree folder**.
`sshHostCommands`| give users SSH connections whose host comes from a command, alongside their own. Desktop reads it from the managed settings file or MDM policy on the computer, and ignores it in [server-managed settings](</docs/en/server-managed-settings>). Requires Claude Desktop v3.6556.0 or later on macOS or Linux, or v4.16336.0 or later on Windows, signed in with a Claude account. On Windows, Desktop also has to connect through the OpenSSH client.
`sshHostAllowlist`| restrict SSH sessions to hosts whose resolved hostname matches one of these patterns. Read from managed settings only.
@@ -2184,7 +2193,12 @@
`disableSshSavedPasswords`| set to `true` to stop Desktop from offering to remember SSH passwords and from using or showing the ones it saved earlier. Turning it on doesn’t delete them. Read from managed settings only. Requires Claude Desktop v1.49585.0 or later.
`managedMcpServers`| push MCP server configurations to all users. Available in third-party (3P) Desktop deployments only. In each entry, set a transport of `"http"`, `"sse"`, or `"stdio"`, connection details, and optionally a `toolPolicy` map to restrict which of that server’s tools users can invoke. Deliver it through the managed settings file, MDM, or a Claude apps gateway policy’s [`desktop` block](</docs/en/claude-apps-gateway-config#claude-desktop-overlay>), since 3P deployments don’t receive admin-console settings. To deliver it through the gateway, you need Claude Code v2.1.232 or later on the gateway server. This is the desktop app’s own key; Claude Code reads a [same-named managed setting](</docs/en/managed-mcp#provide-servers-through-managed-settings>) of its own, with a different entry shape.
-If you turn a feature off with `browserExternalPageTools`, `disableMobileSimulatorTools`, or `disableBrowserExternalNavigation` in a computer’s [highest-ranked MDM policy or managed settings file](</docs/en/managed-settings#how-claude-code-combines-managed-sources>), the feature stays off there. It stays off even when your [server-managed settings](</docs/en/server-managed-settings>) leave that key unset or allow the feature. Don’t use a user-level `HKCU` registry value for this. To turn the feature back on, remove the value wherever you set it. Requires Claude Desktop v4.4212.0 or later. Which managed settings reach a Desktop session depends on where that session runs. Model restrictions such as [`availableModels`](</docs/en/model-config#restrict-model-selection>) are enforced in Desktop’s Claude Code sessions the same way as in the terminal CLI; see [surface coverage](</docs/en/model-config#surface-coverage>).
+If you turn a feature off with one of these four keys in a computer’s [highest-ranked MDM policy or managed settings file](</docs/en/managed-settings#how-claude-code-combines-managed-sources>), the feature stays off there:
+
+ * **`browserExternalPageTools`, `disableMobileSimulatorTools`, `disableBrowserExternalNavigation`**: requires Claude Desktop v4.4212.0 or later
+ * **`disableRemotePreviewScripts`** : requires Claude Desktop v5.1231.0 or later
+
+It stays off even when your [server-managed settings](</docs/en/server-managed-settings>) leave that key unset or allow the feature. Don’t use a user-level `HKCU` registry value for this. To turn the feature back on, remove the value wherever you set it. Which managed settings reach a Desktop session depends on where that session runs. Model restrictions such as [`availableModels`](</docs/en/model-config#restrict-model-selection>) are enforced in Desktop’s Claude Code sessions the same way as in the terminal CLI; see [surface coverage](</docs/en/model-config#surface-coverage>).
* **Local sessions on this machine** : a managed settings file deployed to disk applies. Managed settings pushed remotely through the admin console also reach these sessions on Anthropic’s API when the session authenticates with an [eligible login](</docs/en/server-managed-settings#platform-availability>), following the same [settings precedence](</docs/en/settings#settings-precedence>) as the terminal CLI.
* **Cloud sessions** : receive [server-managed settings](</docs/en/server-managed-settings>); device-deployed files don’t reach them, because they run on Anthropic-managed VMs. Sessions routed to a [self-hosted environment](</docs/en/self-hosted-environments>) also read the managed settings file in the runner image. [How Claude Code combines managed sources](</docs/en/managed-settings#how-claude-code-combines-managed-sources>) says when that file applies.
@@ -2249,7 +2263,10 @@
Check the `forceLoginOrgUUID` value before you deploy it. If the ID isn’t your organization’s, people in your organization can’t use Claude Desktop unless they also belong to an organization with that ID. To recover, deploy the correct ID and have them restart Claude Desktop.
-If you set `forceLoginMethod` and `forceLoginOrgUUID` in Claude Code’s [managed settings](</docs/en/managed-settings>), you don’t change the Claude Desktop sign-in screen.
+If you set `forceLoginMethod` and `forceLoginOrgUUID` in Claude Code’s [managed settings](</docs/en/managed-settings>), you don’t change the Claude Desktop sign-in screen. A person can still use Claude Desktop with their own Claude API key or [Claude Console account](<https://claude.com/docs/third-party/claude-desktop/claude-api#which-devices-offer-the-claude-api-account-sign-in>), and run Code tab sessions that way. To stop that, also deploy `forceLoginOrgUUID` in the Claude Desktop policy (in `HKLM` on Windows), with your claude.ai organization ID. Unless the policy itself [selects the Claude API](<https://claude.com/docs/third-party/claude-desktop/claude-api#choose-an-authentication-approach>), Claude Desktop stops using a person’s own API key or Console account at the app’s next launch. Check two cases before you deploy it:
+
+ * **Claude Console organizations** : don’t deploy `forceLoginOrgUUID` on its own with a Claude Console organization’s ID, or you’d lock your people out of Claude Desktop. See [Which devices offer the Claude API account sign-in](<https://claude.com/docs/third-party/claude-desktop/claude-api#which-devices-offer-the-claude-api-account-sign-in>) instead.
+ * **Enterprise Admin Console** : if it delivers your computers’ Claude Desktop configuration, update them to Claude Desktop v2.37337.0 or later first, because earlier versions ignore it once this key is set. See [Keep a device on its managed profile](<https://claude.com/docs/third-party/claude-desktop/admin-console#keep-a-device-on-its-managed-profile>).
###
--- a/errors.md
+++ b/errors.md
@@ -2230,7 +2230,7 @@
**What to do:**
* **Not signed in** : the message continues `: not signed in. Run /login, then retry.` Run `/login`, then send again
- * **Your organization’s refusal** : for example `: Feedback has not been enabled for your organization.` or `: Feedback collection is not available for organizations with custom data retention policies.` If the message adds `To report a bug, open an issue`, do so at [github.com/anthropics/claude-code/issues](<https://github.com/anthropics/claude-code/issues>). `/feedback` can then answer that it’s disabled by your organization’s policy for seven days. A queued draft stays queued and still [expires on schedule](</docs/en/tools-reference#discard-or-keep-a-draft>)
+ * **Your organization’s refusal** : for example `: Feedback has not been enabled for your organization.` or `: Feedback collection is not available for organizations with custom data retention policies.` `/feedback` can then answer that it’s disabled by your organization’s policy for seven days. A queued draft stays queued and still [expires on schedule](</docs/en/tools-reference#discard-or-keep-a-draft>)
* **Refused credentials** : the message continues `: the sign-in this session uses is not allowed to send feedback` or `: the server did not accept the credentials this session uses`. Run `/status` at the Claude Code prompt to see which login, token, or API key this session sends
* **`(request timed out)` or `(couldn't reach the service)` straight after `Couldn't send feedback`**: send the report or the queued draft again. The dialog keeps your text, and a queued draft’s message says `The draft is still queued.` If other requests are failing too, check your network connection and see Unable to connect to API. If it keeps failing, file the report at [github.com/anthropics/claude-code/issues](<https://github.com/anthropics/claude-code/issues>)
* **`(server returned<status>)`, or no reason, straight after `Couldn't send feedback`**: the status is the service’s response code. The service’s own message follows it when one was sent, as in `(server returned 403: Access Forbidden)`. If it keeps failing, file the report at [github.com/anthropics/claude-code/issues](<https://github.com/anthropics/claude-code/issues>)
@@ -6433,7 +6433,7 @@
Update every host that shares the home directory
-If several hosts share this home directory, first update Claude Code on every host to the version the message names or later. An older version can write a moved `.config.json` back.
+If several hosts share this home directory, first update Claude Code on every host to the version the message names or later.
3
--- a/glossary.md
+++ b/glossary.md
@@ -68,7 +68,7 @@
Auto mode
-A permission mode where a separate classifier model reviews actions instead of you, so Claude Code runs most of them without asking you. Claude Code still asks you before actions your explicit ask rules match. The classifier blocks scope escalation, untrusted infrastructure, and prompt injection. Tool results are stripped from what it sees, so hostile content in a file or web page can’t manipulate it directly.
+A permission mode where a separate classifier model reviews actions instead of you, so Claude Code runs most of them without asking you. Claude Code still asks you before actions your explicit ask rules match. The classifier blocks scope escalation, untrusted infrastructure, and prompt injection.
* **Claude Code v2.1.283 or later** : auto mode is the [built-in starting permission mode](</docs/en/permission-modes#which-mode-a-session-starts-in>) for interactive terminal and VS Code sessions
* **Earlier versions** : auto mode is the built-in starting permission mode only on Pro, Max, Ultra, and Team plans
@@ -363,7 +363,7 @@
Prompt injection
-Hostile instructions embedded in a file, web page, or tool result that attempt to redirect Claude toward actions you never asked for. Claude Code’s defenses include the permission system, command injection detection, and trust verification. Auto mode adds a server-side probe that scans tool results for suspicious content and a classifier that reviews actions with tool results stripped, so injected text can’t manipulate it directly. Learn more: [Protect against prompt injection](</docs/en/security#protect-against-prompt-injection>)
+Hostile instructions embedded in a file, web page, or tool result that attempt to redirect Claude toward actions you didn’t ask for. Claude Code’s defenses include the permission system, command injection detection, and trust verification. In auto mode, a server-side probe scans tool results for suspicious content, and a classifier reviews actions. Learn more: [Protect against prompt injection](</docs/en/security#protect-against-prompt-injection>)
##
--- a/model-config.md
+++ b/model-config.md
@@ -126,7 +126,7 @@
* **Agent SDK or an app** : with Claude Code v2.1.268 or later, unless Claude Code accepts a model ID locally, as it does for your custom model option, it confirms the ID with your provider the first time the session switches to it. The confirmation runs on every provider, and an ID your provider doesn’t offer is refused at the switch instead of failing on your next request.
* **Remote Control** : on the Anthropic API, Claude Code checks the value locally and sends no request.
-See [Model is not a recognized model id](</docs/en/errors#model-is-not-a-recognized-model-id>) and [Model not found](</docs/en/errors#model-not-found>) for the messages. If you set the model with the `--model` flag, the `ANTHROPIC_MODEL` environment variable, or the `model` setting, Claude Code doesn’t reject a mistyped value up front. The session starts, and the first request produces [There’s an issue with the selected model](</docs/en/errors#theres-an-issue-with-the-selected-model>). On the Anthropic API, a value that doesn’t start with `claude-` and nearly spells a model name or alias can also produce a startup warning that suggests it. When the requested model has a scheduled retirement date or is automatically remapped to a newer version, Claude Code shows a warning that names the requested model. Interactive sessions show it as a startup notice. From v2.1.182, the same warning is written to stderr in [non-interactive mode](</docs/en/headless>) when using the default text output format. The check also covers a `model` set in [subagent frontmatter](</docs/en/sub-agents>). The stderr warning is suppressed for `--output-format json` and `stream-json`; read the actual model from the `modelUsage` field of the [result message](</docs/en/headless#get-structured-output>) instead. For example, start a session on Opus:
+See [Model is not a recognized model id](</docs/en/errors#model-is-not-a-recognized-model-id>) and [Model not found](</docs/en/errors#model-not-found>) for the messages. If you set the model with the `--model` flag, the `ANTHROPIC_MODEL` environment variable, or the `model` setting, Claude Code doesn’t reject a mistyped value up front. The session starts, and the first request produces [There’s an issue with the selected model](</docs/en/errors#theres-an-issue-with-the-selected-model>). On the Anthropic API, you can see a warning that suggests the closest name if the value nearly spells a model name or alias and doesn’t start with `claude-`. When the requested model has a scheduled retirement date or is automatically remapped to a newer version, Claude Code shows a warning that names the requested model. Interactive sessions show it as a startup notice. From v2.1.182, the same warning is written to stderr in [non-interactive mode](</docs/en/headless>) when using the default text output format. The check also covers a `model` set in [subagent frontmatter](</docs/en/sub-agents>). The stderr warning is suppressed for `--output-format json` and `stream-json`; read the actual model from the `modelUsage` field of the [result message](</docs/en/headless#get-structured-output>) instead. For example, start a session on Opus:
claude --model opus
@@ -142,6 +142,20 @@
},
"model": "opus"
}
+
+####
+
+
+
+Fix a mistyped model name
+
+Either of these warnings means Claude Code doesn’t recognize the model ID you set, and the ID nearly spells a model name or alias it does recognize:
+
+ ⚠ Model "<model>" isn't recognized · did you mean "<suggestion>"?
+ Claude Code doesn't recognize the model "<model>". Did you mean "<suggestion>"?
+
+ * **You mistyped the ID** : change it to the suggestion wherever you set the model
+ * **The ID is deliberate** : leave it as it is. The session sends it as you wrote it. If the context window Claude Code assumes for it is wrong, correct the window
####
@@ -856,20 +870,6 @@
* **Any other window** : set [`CLAUDE_CODE_MAX_CONTEXT_TOKENS`](</docs/en/env-vars>) to the window size in tokens in the environment that starts Claude Code, such as `CLAUDE_CODE_MAX_CONTEXT_TOKENS=400000`. For an unrecognized ID that doesn’t start with `claude-` and has no `[1m]` suffix, the variable takes effect on its own. For any other ID, check which IDs it applies to first.
Once Claude Code recognizes the ID or uses the window you gave it, the warning no longer appears when you start a session on that ID.
-
-####
-
-
-
-Fix a mistyped model name
-
-Either of these warnings means Claude Code doesn’t recognize the model ID you set, and the ID nearly spells a model name or alias it does recognize:
-
- ⚠ Model "<model>" isn't recognized · did you mean "<suggestion>"?
- Claude Code doesn't recognize the model "<model>". Did you mean "<suggestion>"?
-
- * **You mistyped the ID** : change it to the suggestion wherever you set the model
- * **The ID is deliberate** : leave it as it is. The session sends it as you wrote it. If the context window Claude Code assumes for it is wrong, correct the window
####
--- a/permission-modes.md
+++ b/permission-modes.md
@@ -446,7 +446,7 @@
* Opening a pull request against a different repository or organization, forking with `gh repo fork`, or pushing to a third-party repository, unless you named that external target
* Content from a sensitive local store, or from a file whose name, path, or type marks it as sensitive, entering a commit, a push, PR or issue text, a gist or paste, or a package publish, unless you named both the source and the destination. Session transcripts and conversation logs, credential and configuration dot-folders such as SSH keys, cloud credentials, browser profiles, and shell history, and user-data exports all count, and the repository being private doesn’t clear it
* Writing to Claude Code session transcripts, the `.jsonl` history files under `~/.claude/projects/` or your configured config directory, whether directly or through a shell command. The rule also covers the metadata lines Claude Code appends to each transcript entry for its own checks. Reading a transcript isn’t blocked
- * A recursive forced delete such as `rm -rf "$VAR"` or `Remove-Item -Recurse -Force $dir` whose target is a shell variable that isn’t assigned anywhere in the conversation the classifier sees, or a glob rooted at such a variable. The value came only from earlier command output, which the classifier never receives, so the classifier can’t verify the deletion target against the other deletion rules. The block clears when you name the exact path being deleted, or when Claude re-runs the delete with the resolved literal path written into the command. Deletes whose target the classifier can resolve aren’t affected. A glob directly under the variable, as in `rm -rf "$VAR"/*`, is a critical path instead. `Remove-Item` targets that are a bare `*` or end in `/*` or `\*` never reach the classifier: Claude Code denies them outright.
+ * A recursive forced delete such as `rm -rf "$VAR"` or `Remove-Item -Recurse -Force $dir` whose target is a shell variable that isn’t assigned in the conversation the classifier sees, or a glob rooted at such a variable. Without that assignment, the classifier can’t tell what the command would delete. The block clears when you name the exact path being deleted, or when Claude re-runs the delete with the resolved literal path written into the command. Deletes whose target the classifier can resolve aren’t affected. A glob directly under the variable, as in `rm -rf "$VAR"/*`, is a critical path instead. For a `Remove-Item` target that is a bare `*` or ends in `/*` or `\*`, see Remove-Item in PowerShell: Claude Code denies that command outright.
Several of these categories depend on [environment](</docs/en/auto-mode-config#define-trusted-infrastructure>) entries, such as sensitive remote targets and protected IaC scopes, that you can narrow to concrete names. Claude Code v2.1.257 and later also block these by default:
--- a/self-hosted-environments-reference.md
+++ b/self-hosted-environments-reference.md
@@ -133,6 +133,7 @@
`SELF_HOSTED_RUNNER_MAX_LIFETIME_GRACE_MS`| `900000`| How long the runner waits after a session reaches its `--kill-session-after-min` limit, for a running turn to finish or the release to complete, before it terminates the session
`SELF_HOSTED_RUNNER_POST_TURN_SETTLE_MS`| `7000`| Cap on how long the runner counts a session as busy for the `--drain-wait-sec` drain after a turn finishes, while the session’s process reports the turn’s end to Anthropic. `0` or an unusable value falls back to the default, so the hold can’t be turned off. Requires Claude Code v2.1.275 or later.
`SELF_HOSTED_RUNNER_SIGKILL_GRACE_MS`| `30000`| How long the runner waits for the OS to deliver `SIGKILL` to a child stuck in uninterruptible I/O before exiting itself. Floored at `--post-session-hook-timeout-sec` plus 15 seconds, and 30 more when `--push-outcome-on-release` is set, so the effective minimum is 75 seconds at defaults.
+`CLAUDE_RUNNER_DISABLE_RENEWAL_WARNING`| unset| When `1`, the runner doesn’t post `The server has refused to renew this session's access to the model` in a session. After each refusal, it waits until the next scheduled renewal to ask again. Requires Claude Code v2.1.319 or later.
`CLAUDE_RUNNER_FETCH_DEPTH`| `50`| Git fetch depth for fresh clones. Set a positive integer, or `full` or `0` for a complete fetch. For a clone that’s already in the workspace, see [Reuse a pre-warmed checkout](</docs/en/self-hosted-environments-deploy#reuse-a-pre-warmed-checkout>).
`CLAUDE_RUNNER_FETCH_SERVER_PROGRESS_CAP_MS`| `600000`| How long in milliseconds, per attempt, a git fetch may wait for its first data while the git server’s own progress numbers keep rising, as when the server prepares the pack for a large repository. `0` or `off` turns the wait off: such a fetch is then cut off after two minutes without data. Any other whole number is clamped to between `120000` and `1800000`, 2 to 30 minutes. Requires Claude Code v2.1.295 or later.
`CLAUDE_RUNNER_SKIP_GIT_VERIFY`| unset| When `1`, skip the `.git` presence check after a `checkout` hook runs. Set this when your hook materializes a non-git source.
--- a/settings-reference.md
+++ b/settings-reference.md
@@ -80,6 +80,7 @@
`disabledMcpjsonServers`| Reject specific servers from a project’s [`.mcp.json`](</docs/en/mcp#project-scope>)| MCP| Any file
`disableMobileSimulatorTools`| Block Claude’s tools in the [desktop](</docs/en/desktop>) iOS Simulator pane| Tools| Managed
`disableRemoteControl`| Turn off [Remote Control](</docs/en/remote-control>) everywhere it can start| Remote, desktop, and notifications| Any file
+`disableRemotePreviewScripts`| Turn off scripts in the [desktop](</docs/en/desktop#preview-html-files-in-ssh-and-wsl-sessions>) app’s HTML previews in SSH and WSL sessions| Remote, desktop, and notifications| Managed
`disableSideloadFlags`| Reject the CLI flags that sideload [plugins](</docs/en/plugins/overview>), [subagents](</docs/en/sub-agents>), and [MCP servers](</docs/en/mcp>)| Enterprise and managed settings| Managed
`disableSkillShellExecution`| Stop [skills](</docs/en/skills>) and custom commands from running inline shell| Plugins and skills| Any file
`disableWorkflows`| Turn [dynamic workflows](</docs/en/workflows>) off for everyone; use `enableWorkflows` for yourself| Hooks and automation| Any file
@@ -1300,7 +1301,7 @@
* **Question and plan tools** : Claude Code leaves out [`AskUserQuestion`](</docs/en/tools-reference#askuserquestion-tool-behavior>), `EnterPlanMode`, and `ExitPlanMode`, so a session in plan mode can’t leave it on its own. A teammate in an agent team keeps `EnterPlanMode` and `ExitPlanMode`
* **MCP elicitation** : Claude Code cancels an [elicitation request](</docs/en/mcp#respond-to-mcp-elicitation-requests>) unless an [`Elicitation` hook](</docs/en/hooks#elicitation>) answers it
* **Permission hosts** : Claude Code doesn’t ask your [`canUseTool` callback](</docs/en/agent-sdk/user-input>) or [`--permission-prompt-tool`](</docs/en/cli-reference#cli-flags>). To approve calls from code, answer from a `PermissionRequest` hook. Some calls are denied before any hook is asked, such as a [critical-path removal](</docs/en/permission-modes#critical-path-removals-in-each-permission-mode>) in `auto` mode that no ask rule covers.
- * **Classifier billing notice** : where the [notice about billed classifier requests](</docs/en/auto-mode-classifier-billing#actions-denied-in-place-of-the-notice>) would open a dialog, Claude Code doesn’t show it and denies the actions that need those requests
+ * **Classifier billing notice** : where the [notice about billed classifier requests](</docs/en/auto-mode-classifier-billing>) would open a dialog, Claude Code doesn’t show it and denies the actions that need those requests
A session can still wait on the [workspace trust dialog](</docs/en/permissions#project-allow-rules-and-workspace-trust>) and on [project MCP server approval](</docs/en/mcp#project-server-approvals-and-workspace-trust>). Answer both before you leave the session running.
@@ -5727,6 +5728,30 @@
+`disableRemotePreviewScripts`
+
+Keep scripts from running when people [preview an HTML file](</docs/en/desktop#preview-html-files-in-ssh-and-wsl-sessions>) from an SSH or WSL session in the desktop app. External browsing in the Browser pane is unaffected. The desktop app reads this key; the terminal CLI ignores it. Requires Claude Desktop v5.1231.0 or later. Earlier versions ignore the key: to stop the scripts there, also set `disableBrowserExternalNavigation`, which turns off external browsing too.
+
+ * **Scope** : `Managed`. The desktop app doesn’t read the key from the remote machine or the WSL distribution.
+ * **Type** : Boolean; only the JSON Boolean `true` takes effect
+ * `true`: HTML previews in SSH and WSL sessions don’t run scripts
+ * `false`: the key doesn’t turn scripts off
+ * **Default** : unset, so the key has no effect
+
+If the computer that runs the desktop app receives no other Claude Code managed settings, also set `parentSettingsBehavior` to `"merge"` in the managed settings that you create. On Windows, if you create a managed settings file, users also lose WSL sessions until you [allow them](</docs/en/admin-setup#wsl-sessions-in-claude-code-desktop>). [Turn off scripts in SSH and WSL previews for your organization](</docs/en/desktop#turn-off-scripts-in-ssh-and-wsl-previews-for-your-organization>) explains both and says where to set the key. This example shows the key alone, as you’d add it to managed settings that a computer already receives:
+
+managed-settings.json
+
+ {
+ "disableRemotePreviewScripts": true
+ }
+
+The desktop app ignores any other value, and a value that isn’t a Boolean, such as the string `"true"` or `1`, also logs a warning.
+
+###
+
+
+
`enableArtifact`
Turn off the [Artifact](</docs/en/artifacts>) tool, which publishes session output as a private web page on claude.ai. When you turn the **Artifacts** row off in `/config`, Claude Code writes this key to your user settings, so you don’t usually edit it by hand.
--- a/test.md
+++ b/test.md
@@ -178,7 +178,22 @@
`session.receive`| `($, e) => ({ text: e.text })`. Fire it with `$.session.receive({ origin: { kind: 'peer-send-message' }, text })`.
`ui.render`| `() => ({ type: 'Text', props: {}, children: ['...'] })`
-`expect` has the assertions `toBe`, `toEqual`, `toMatch`, `toMatchObject`, `toContain`, `toBeDefined`, `toBeUndefined`, and `toThrow`, and `.not` before any of them. When an `expect` fails inside a stub or hook that you passed to `on` as a plain function rather than an async generator, the test fails. The engine skips that hook, and the failure output names it, such as `in the test's store.set hook`.
+###
+
+
+
+Check a result with `expect`
+
+The kit has these assertions, and the one you pick goes after the value you’re checking, as in `expect(answer.text).toBe('ok')`:
+
+ * **Equality** : `toBe` for the same value or object, `toEqual` for structure, `toStrictEqual` for structure plus `undefined` fields and the prototype, and `toMatchObject` for the fields you name
+ * **Text** : `toMatch`, which takes a regular expression or a substring, `toStartWith`, and `toEndWith`
+ * **Numbers** : `toBeGreaterThan`, `toBeGreaterThanOrEqual`, `toBeLessThan`, `toBeLessThanOrEqual`
+ * **Contents** : `toContain` for a substring or a member, `toContainEqual` for a member compared by structure, `toHaveLength`, and `toHaveProperty`
+ * **Presence and type** : `toBeDefined`, `toBeUndefined`, `toBeNull`, `toBeTruthy`, `toBeFalsy`, `toBeNaN`, `toBeInstanceOf`
+ * **Throwing** : `toThrow`, for a function `expect` calls, or for a promise you check with `.rejects`
+
+Put `.not` in front of an assertion to check the opposite, and `.resolves` or `.rejects` to check what a promise settles with. When an `expect` fails inside a stub or hook that you passed to `on` as a plain function rather than an async generator, the test fails. The engine skips that hook, and the failure output names it, such as `in the test's store.set hook`.
##
--- a/vs-code.md
+++ b/vs-code.md
@@ -377,7 +377,7 @@
Interrupted steps after a reload
-If the reload interrupted Claude mid-step, Claude continues that step when the conversation comes back, and a notice in the chat marks the continuation. Requires Claude Code v2.1.274 or later. If the step was interrupted more than an hour ago or the session is open elsewhere, the conversation comes back idle instead.
+If the reload interrupted Claude mid-step, Claude continues that step when the conversation comes back, and a notice in the chat marks the continuation. Requires Claude Code v2.1.274 or later. If the step was interrupted more than an hour ago or the session is open elsewhere, the conversation comes back idle instead. When a notice in the chat includes `plan mode is now off, so Claude did not continue on its own`, the step was interrupted in plan mode. To keep planning, select **Plan** in the mode indicator before you send your next message.
####
@@ -658,7 +658,7 @@
VS Code commands and shortcuts
-To open the Command Palette, press `Cmd+Shift+P` on Mac or `Ctrl+Shift+P` on Windows/Linux. Type “Claude Code” there to see all available VS Code commands for the Claude Code extension. Some shortcuts depend on which panel is “focused” (receiving keyboard input). When your cursor is in a code file, the editor is focused. When your cursor is in Claude’s prompt box, Claude is focused. Use `Cmd+Esc` / `Ctrl+Esc` to toggle between them.
+To open the Command Palette, press `Cmd+Shift+P` on Mac or `Ctrl+Shift+P` on Windows/Linux. Type “Claude Code” there to see the extension’s Command Palette commands. Some shortcuts depend on which panel is “focused” (receiving keyboard input). When your cursor is in a code file, the editor is focused. When your cursor is in Claude’s prompt box, Claude is focused. Use `Cmd+Esc` / `Ctrl+Esc` to toggle between them.
These are VS Code commands for controlling the extension. Not all built-in Claude Code commands are available in the extension. See VS Code extension vs. Claude Code CLI for details.
@@ -679,6 +679,7 @@
Rename Session Tab| -| Rename the session in the active Claude tab. Requires Claude Code v2.1.257 or later
Add Session Tab to Group| -| Add the session in the active Claude tab to a session group you pick or create. Requires Claude Code v2.1.257 or later
Mark Session as Unread| -| Mark the session in the active Claude tab as unread in the sessions list. Requires Claude Code v2.1.257 or later
+`claude-vscode.toggleDictation`| `Cmd+D` (Mac) / `Ctrl+D` (Windows/Linux)| Start or stop [voice dictation](</docs/en/voice-dictation>). The shortcut requires Claude to be focused. This command isn’t in the Command Palette
Show Logs| -| View extension debug logs
Logout| -| Sign out of your Anthropic account