99| `Your account does not have access to Claude. Please login again or contact your administrator.` | [身份验证](#oauth-token-revoked-or-expired) |99| `Your account does not have access to Claude. Please login again or contact your administrator.` | [身份验证](#oauth-token-revoked-or-expired) |
100| `API Error: 401 Invalid authentication credentials` | [身份验证](#api-error-401-invalid-authentication-credentials) |100| `API Error: 401 Invalid authentication credentials` | [身份验证](#api-error-401-invalid-authentication-credentials) |
101| `Login expired · Please run /login` | [身份验证](#login-expired) |101| `Login expired · Please run /login` | [身份验证](#login-expired) |
102| `Warning: this sign-in` | [检查已存储的登录何时结束](https://code.claude.com/docs/zh-CN/authentication.md#check-when-a-stored-login-ends) |
102| `The browser can't return the sign-in to Claude Code automatically` | [身份验证](#couldnt-start-the-local-sign-in-listener) |103| `The browser can't return the sign-in to Claude Code automatically` | [身份验证](#couldnt-start-the-local-sign-in-listener) |
103| `Couldn't start the local listener that receives the browser sign-in. Try again.` | [身份验证](#couldnt-start-the-local-sign-in-listener) |104| `Couldn't start the local listener that receives the browser sign-in. Try again.` | [身份验证](#couldnt-start-the-local-sign-in-listener) |
104| `Failed to start OAuth callback server` | [身份验证](#failed-to-start-oauth-callback-server) |105| `Failed to start OAuth callback server` | [身份验证](#failed-to-start-oauth-callback-server) |
111| `Login reached its time limit · Please run /login` / `Failed to authenticate: this login reached its time limit` | [身份验证](#login-expired) |112| `Login reached its time limit · Please run /login` / `Failed to authenticate: this login reached its time limit` | [身份验证](#login-expired) |
112| `Failed to authenticate: your claude.ai login expired` | [登录过期之后](https://code.claude.com/docs/zh-CN/authentication.md#after-the-login-expires) |113| `Failed to authenticate: your claude.ai login expired` | [登录过期之后](https://code.claude.com/docs/zh-CN/authentication.md#after-the-login-expires) |
113| `claude.ai login ended · usage now billed to` / `Warning: the claude.ai login on this machine has ended` | [登录过期之后](https://code.claude.com/docs/zh-CN/authentication.md#after-the-login-expires) |114| `claude.ai login ended · usage now billed to` / `Warning: the claude.ai login on this machine has ended` | [登录过期之后](https://code.claude.com/docs/zh-CN/authentication.md#after-the-login-expires) |
115| `The refresh token in CLAUDE_CODE_OAUTH_REFRESH_TOKEN was used for this attempt` | 修复其上方打印的拒绝原因,然后将 [`CLAUDE_CODE_OAUTH_REFRESH_TOKEN`](https://code.claude.com/docs/zh-CN/env-vars#variables) 设置为新的令牌。 |
114| `Could not refresh your login because another Claude Code process is refreshing it` | [身份验证](#could-not-refresh-your-login) |116| `Could not refresh your login because another Claude Code process is refreshing it` | [身份验证](#could-not-refresh-your-login) |
115| `Failed to refresh OAuth token: another Claude Code process is refreshing it or exited mid-refresh` | [身份验证](#could-not-refresh-your-login) |117| `Failed to refresh OAuth token: another Claude Code process is refreshing it or exited mid-refresh` | [身份验证](#could-not-refresh-your-login) |
116| `Could not refresh your login: the disk that holds the Claude Code config directory (~/.claude by default), or your disk quota on it, is full` | [身份验证](#could-not-refresh-your-login-disk-full) |118| `Could not refresh your login: the disk that holds the Claude Code config directory (~/.claude by default), or your disk quota on it, is full` | [身份验证](#could-not-refresh-your-login-disk-full) |
163| `403` 并带有 `x-deny-reason: host_not_allowed`,出现在云端会话或云端定时任务中 | [网络](#host-not-allowed-in-a-cloud-session) |165| `403` 并带有 `x-deny-reason: host_not_allowed`,出现在云端会话或云端定时任务中 | [网络](#host-not-allowed-in-a-cloud-session) |
164| `proxy refused the connection` | [网络](#the-proxy-refused-the-connection) |166| `proxy refused the connection` | [网络](#the-proxy-refused-the-connection) |
165| `403` with `GitHub GraphQL is not available from Claude Code sessions` in a cloud session | [GitHub proxy](https://code.claude.com/docs/zh-CN/cloud-environments.md#github-proxy) |167| `403` with `GitHub GraphQL is not available from Claude Code sessions` in a cloud session | [GitHub proxy](https://code.claude.com/docs/zh-CN/cloud-environments.md#github-proxy) |
168| 带有 `In this cloud session a host fails to resolve like this` 的 `ENOTFOUND` | [网络](#host-not-allowed-in-a-cloud-session) |
166| `The cloud environments service returned an empty response` / `The cloud environments service returned a response in an unexpected format` | [网络](#the-cloud-environments-service-returned-an-empty-or-unexpected-response) |169| `The cloud environments service returned an empty response` / `The cloud environments service returned a response in an unexpected format` | [网络](#the-cloud-environments-service-returned-an-empty-or-unexpected-response) |
167| `Failed to fetch session from Sessions API: Failed to fetch session logs` | [网络](#failed-to-fetch-session-from-sessions-api) |170| `Failed to fetch session from Sessions API: Failed to fetch session logs` | [网络](#failed-to-fetch-session-from-sessions-api) |
168| `Couldn't load the history of cloud session` | [网络](#couldnt-load-the-history-of-cloud-session) |171| `Couldn't load the history of cloud session` | [网络](#couldnt-load-the-history-of-cloud-session) |
169| `Couldn't reconnect to your Remote Control session` | [网络](#couldnt-reconnect-to-your-remote-control-session) |172| `Couldn't reconnect to your Remote Control session` | [Remote Control 故障排除](https://code.claude.com/docs/zh-CN/remote-control.md#couldnt-reconnect-to-your-remote-control-session) |
170| `N sessions ended while this machine was offline — the environment was cleaned up on the server and can't be resumed.` | [网络](#sessions-ended-while-this-machine-was-offline) |173| `N sessions ended while this machine was offline — the environment was cleaned up on the server and can't be resumed.` | [网络](#sessions-ended-while-this-machine-was-offline) |
171| `Couldn't share the transcript.` | [网络](#couldnt-share-the-transcript) |174| `Couldn't share the transcript.` | [网络](#couldnt-share-the-transcript) |
172| `Couldn't send feedback` | [网络](#couldnt-send-feedback) |175| `Couldn't send feedback` | [网络](#couldnt-send-feedback) |
214| `thinking.type.enabled is not supported for this model` | [请求错误](#thinking-type-enabled-is-not-supported-for-this-model) |217| `thinking.type.enabled is not supported for this model` | [请求错误](#thinking-type-enabled-is-not-supported-for-this-model) |
215| `Effort '<level>' isn't available with thinking turned off on this model` | [请求错误](#effort-isnt-available-with-thinking-turned-off) |218| `Effort '<level>' isn't available with thinking turned off on this model` | [请求错误](#effort-isnt-available-with-thinking-turned-off) |
216| `effort '<level>' is not supported when thinking is disabled` | [请求错误](#effort-isnt-available-with-thinking-turned-off) |219| `effort '<level>' is not supported when thinking is disabled` | [请求错误](#effort-isnt-available-with-thinking-turned-off) |
220| `API Error: 400 Invalid effort level` / `Your organization limits effort for <model>, so Claude Code is using '<level>' instead of '<level>'` | [组织 effort 限制](https://code.claude.com/docs/zh-CN/model-config.md#organization-effort-limits) |
217| `max_tokens must be greater than thinking.budget_tokens` | [请求错误](#thinking-budget-exceeds-output-limit) |221| `max_tokens must be greater than thinking.budget_tokens` | [请求错误](#thinking-budget-exceeds-output-limit) |
218| `Claude's response exceeded the ... output token maximum` | [请求错误](#response-exceeded-the-output-token-maximum) |222| `Claude's response exceeded the ... output token maximum` | [请求错误](#response-exceeded-the-output-token-maximum) |
219| `API Error: 400 due to tool use concurrency issues` | [请求错误](#tool-use-or-thinking-block-mismatch) |223| `API Error: 400 due to tool use concurrency issues` | [请求错误](#tool-use-or-thinking-block-mismatch) |
338| `Cannot add marketplace "<name>": Claude Code cannot install plugins from a marketplace with this name` | [Plugin 故障排除](https://code.claude.com/docs/zh-CN/plugins/troubleshooting.md#cannot-install-plugins-from-a-marketplace-with-this-name) |342| `Cannot add marketplace "<name>": Claude Code cannot install plugins from a marketplace with this name` | [Plugin 故障排除](https://code.claude.com/docs/zh-CN/plugins/troubleshooting.md#cannot-install-plugins-from-a-marketplace-with-this-name) |
339| `Cannot add marketplace "<name>": Claude Code reserves this name and cannot register a marketplace under it` | [Plugin 故障排除](https://code.claude.com/docs/zh-CN/plugins/troubleshooting.md#claude-code-reserves-this-name) |343| `Cannot add marketplace "<name>": Claude Code reserves this name and cannot register a marketplace under it` | [Plugin 故障排除](https://code.claude.com/docs/zh-CN/plugins/troubleshooting.md#claude-code-reserves-this-name) |
340| `Marketplace "<name>" is added but ignored` | [Plugin 故障排除](https://code.claude.com/docs/zh-CN/plugins/troubleshooting.md#marketplace-is-added-but-ignored) |344| `Marketplace "<name>" is added but ignored` | [Plugin 故障排除](https://code.claude.com/docs/zh-CN/plugins/troubleshooting.md#marketplace-is-added-but-ignored) |
345| `Marketplace "<name>", which managed settings declare, stands from another source and cannot be taken back while its declared source is unreachable` | [插件故障排除](https://code.claude.com/docs/zh-CN/plugins/troubleshooting.md#marketplace-cannot-be-taken-back-while-its-declared-source-is-unreachable) |
346| `The list of installed plugins (installed_plugins.json) could not be read, so marketplace "<name>", which managed settings declare, cannot be taken back from another source` | [插件故障排除](https://code.claude.com/docs/zh-CN/plugins/troubleshooting.md#installed-plugins-could-not-be-read-so-marketplace-cannot-be-taken-back) |
341| `Marketplace "<name>" is registered but was refused (see the debug log)` | [Plugin 故障排除](https://code.claude.com/docs/zh-CN/plugins/troubleshooting.md#marketplace-is-added-but-ignored) |347| `Marketplace "<name>" is registered but was refused (see the debug log)` | [Plugin 故障排除](https://code.claude.com/docs/zh-CN/plugins/troubleshooting.md#marketplace-is-added-but-ignored) |
342| `references ${user_config.*} in a shell-form command` | [Plugin 错误](#plugin-command-references-user-config) |348| `references ${user_config.*} in a shell-form command` | [Plugin 错误](#plugin-command-references-user-config) |
343| `Monitor "<name>" from plugin <plugin> references ${user_config.*} in its command` | [Plugin 错误](#plugin-command-references-user-config) |349| `Monitor "<name>" from plugin <plugin> references ${user_config.*} in its command` | [Plugin 错误](#plugin-command-references-user-config) |
358| `"<plugin>" was not uninstalled: it is still switched on in <file>` | [Plugin 错误](#plugin-was-not-uninstalled) |364| `"<plugin>" was not uninstalled: it is still switched on in <file>` | [Plugin 错误](#plugin-was-not-uninstalled) |
359| `"<plugin>" was not uninstalled: <file> is there and could not be read` | [Plugin 错误](#plugin-was-not-uninstalled) |365| `"<plugin>" was not uninstalled: <file> is there and could not be read` | [Plugin 错误](#plugin-was-not-uninstalled) |
360| `Plugin "<plugin>" was not uninstalled: installed_plugins.json` | [Plugin 故障排除](https://code.claude.com/docs/zh-CN/plugins/troubleshooting.md#installed-plugins-json-holds-a-record-this-version-cannot-read) |366| `Plugin "<plugin>" was not uninstalled: installed_plugins.json` | [Plugin 故障排除](https://code.claude.com/docs/zh-CN/plugins/troubleshooting.md#installed-plugins-json-holds-a-record-this-version-cannot-read) |
367| `was updated or removed, so this hook did not run` | [插件故障排除](https://code.claude.com/docs/zh-CN/plugins/troubleshooting.md#plugin-directory-does-not-exist) |
361| `Plugin directory does not exist: <path>` | [Plugin 故障排除](https://code.claude.com/docs/zh-CN/plugins/troubleshooting.md#plugin-directory-does-not-exist) |368| `Plugin directory does not exist: <path>` | [Plugin 故障排除](https://code.claude.com/docs/zh-CN/plugins/troubleshooting.md#plugin-directory-does-not-exist) |
362| `Skipping connection (recent failure cached; retries automatically in 15 min, or edit the plugin config to retry now)` | [Plugin 错误](#skipping-connection-recent-failure-cached) |369| `Skipping connection (recent failure cached; retries automatically in 15 min, or edit the plugin config to retry now)` | [Plugin 错误](#skipping-connection-recent-failure-cached) |
363| `is not added on this machine, so your organization's marketplace policy keeps its plugins off` | [添加市场](https://code.claude.com/docs/zh-CN/plugins/install.md#add-a-marketplace) |370| `is not added on this machine, so your organization's marketplace policy keeps its plugins off` | [添加市场](https://code.claude.com/docs/zh-CN/plugins/install.md#add-a-marketplace) |
393| `cannot be handed to a teammate intact` | [工具错误](#command-line-deny-rule-cannot-be-handed-to-a-teammate) |400| `cannot be handed to a teammate intact` | [工具错误](#command-line-deny-rule-cannot-be-handed-to-a-teammate) |
394| `Message too large for cross-session delivery` | [工具错误](#message-too-large-for-cross-session-delivery) |401| `Message too large for cross-session delivery` | [工具错误](#message-too-large-for-cross-session-delivery) |
395| `Too many messages to this session just now` | [工具错误](#too-many-messages-to-this-session-just-now) |402| `Too many messages to this session just now` | [工具错误](#too-many-messages-to-this-session-just-now) |
403| `Held a message from <sender>` / `Dropped the held message from <sender> without delivering it` | [控制传入消息](https://code.claude.com/docs/zh-CN/cross-session-messaging.md#control-inbound-messages);对于 `claude -p`,参见[非交互式会话](https://code.claude.com/docs/zh-CN/cross-session-messaging.md#non-interactive-sessions) |
396| `Cross-session message was dropped at the recipient session's inbox` | [工具错误](#cross-session-message-dropped-at-the-inbox) |404| `Cross-session message was dropped at the recipient session's inbox` | [工具错误](#cross-session-message-dropped-at-the-inbox) |
397| `Refusing to send: reply target is a symlink` / `Refusing to send: cannot vet reply target` | [工具错误](#refusing-to-send-a-cross-session-message) |405| `Refusing to send: reply target is a symlink` / `Refusing to send: cannot vet reply target` | [工具错误](#refusing-to-send-a-cross-session-message) |
398| `Refusing to read <path>: its symlink resolution changed after permission was checked (<reason>)` / `Refusing to search <path>: its symlink resolution changed after permission was checked` | [工具错误](#refusing-after-a-symlink-changed) |406| `Refusing to read <path>: its symlink resolution changed after permission was checked (<reason>)` / `Refusing to search <path>: its symlink resolution changed after permission was checked` | [工具错误](#refusing-after-a-symlink-changed) |
412| `File is not valid UTF-8. It may use a legacy encoding such as Windows-1252, Shift-JIS or GBK, or be binary` | [工具错误](#file-is-not-valid-utf-8) |420| `File is not valid UTF-8. It may use a legacy encoding such as Windows-1252, Shift-JIS or GBK, or be binary` | [工具错误](#file-is-not-valid-utf-8) |
413| `git is not installed on this Mac. To install it, run xcode-select --install, then try again.` | [工具错误](#git-is-not-installed-on-this-mac) |421| `git is not installed on this Mac. To install it, run xcode-select --install, then try again.` | [工具错误](#git-is-not-installed-on-this-mac) |
414| `Refusing to apply edits to <path>: a hook is configured for file edits in this session` | [工具错误](#a-hook-is-configured-for-file-edits) |422| `Refusing to apply edits to <path>: a hook is configured for file edits in this session` | [工具错误](#a-hook-is-configured-for-file-edits) |
423| `blocking because onFailure is "block"` | [hook 失败时阻止操作](https://code.claude.com/docs/zh-CN/hooks.md#block-the-action-when-a-hook-fails) |
415| `the source file is not valid UTF-8 text` / `the source file is not valid UTF-16 text` | [工具错误](#the-source-file-is-not-valid-utf-8-text) |424| `the source file is not valid UTF-8 text` / `the source file is not valid UTF-16 text` | [工具错误](#the-source-file-is-not-valid-utf-8-text) |
416| `the source file has the replacement character U+FFFD` | [工具错误](#the-source-file-is-not-valid-utf-8-text) |425| `the source file has the replacement character U+FFFD` | [工具错误](#the-source-file-is-not-valid-utf-8-text) |
417| `Not published: that file is on a network share` | [工具错误](#not-published-that-file-is-on-a-network-share) |426| `Not published: that file is on a network share` | [工具错误](#not-published-that-file-is-on-a-network-share) |
665 674
666* 如果每个请求都以此消息失败,且您将 `API_TIMEOUT_MS` 设置为了 `0`,请检查 `claude --version`。如果版本早于 v2.1.305,请更新 Claude Code 或设置一个正值。675* 如果每个请求都以此消息失败,且您将 `API_TIMEOUT_MS` 设置为了 `0`,请检查 `claude --version`。如果版本早于 v2.1.305,请更新 Claude Code 或设置一个正值。
667* 重试请求676* 重试请求
668* 如果是缓慢的网络或代理导致,请按照[自动重试](#automatic-retries)中的说明提高 `API_TIMEOUT_MS`677* 如果消息在 `Request timed out` 之后还有内容并指出了某个[环境变量](https://code.claude.com/docs/zh-CN/env-vars.md#set-environment-variables),请按照消息的说明操作。`No data arrived` 表示[响应体空闲超时](https://code.claude.com/docs/zh-CN/network-config.md#streaming-idle-watchdogs)结束了该请求。
678* 如果网络或代理较慢且版本早于 v2.1.328,请提高 [`API_TIMEOUT_MS`](#tune-retry-behavior)。如果请求仍然超时,请[更新到 v2.1.328 或更高版本](https://code.claude.com/docs/zh-CN/setup.md#update-claude-code),并设置下一条超时消息中指出的任何变量。如果您无法更新,请将 [`API_FORCE_IDLE_TIMEOUT`](https://code.claude.com/docs/zh-CN/env-vars) 设置为 `0`。
669* 如果超时频繁且您的网络状况良好,请参阅下面的[网络和连接错误](#network-and-connection-errors)679* 如果超时频繁且您的网络状况良好,请参阅下面的[网络和连接错误](#network-and-connection-errors)
670 680
671### No response from API681### No response from API
1164 1174
1165### 您的 apiKeyHelper 脚本运行失败1175### 您的 apiKeyHelper 脚本运行失败
1166 1176
1167Claude Code 运行了您的 [`apiKeyHelper`](https://code.claude.com/docs/zh-CN/settings-reference#apikeyhelper) 设置中的命令,但没有得到密钥。没有密钥时,请求会携带一个占位凭据到达 API,API 会以 `401` 拒绝它。终端中的 `Authentication` 面板会显示发生了以下哪种情况:1177Claude Code 运行了您 [`apiKeyHelper`](https://code.claude.com/docs/zh-CN/settings-reference#apikeyhelper) 设置中的命令,但没有获得密钥。没有密钥时,请求会携带占位凭据到达 API,API 会以 `401` 拒绝它。终端中的面板会显示发生了以下哪种情况:
1168 1178
1169* 命令以错误退出或超时1179* 命令以错误退出或超时
1170* 命令没有向 stdout 输出任何内容1180* 命令没有向 stdout 输出任何内容
1186* 如果命令报告会话已过期,请向您的凭据提供方重新进行身份验证,例如重新登录您的 SSO 或密钥保管库1196* 如果命令报告会话已过期,请向您的凭据提供方重新进行身份验证,例如重新登录您的 SSO 或密钥保管库
1187* 修正命令,使其只向 stdout 输出密钥(一个由可打印 ASCII 字符组成、最多 16,384 个字符的单一令牌),并以退出码 0 退出。请参阅[使用 apiKeyHelper 轮换凭据](https://code.claude.com/docs/zh-CN/llm-gateway-connect.md#rotate-credentials-with-apikeyhelper)了解可用的设置方式。1197* 修正命令,使其只向 stdout 输出密钥(一个由可打印 ASCII 字符组成、最多 16,384 个字符的单一令牌),并以退出码 0 退出。请参阅[使用 apiKeyHelper 轮换凭据](https://code.claude.com/docs/zh-CN/llm-gateway-connect.md#rotate-credentials-with-apikeyhelper)了解可用的设置方式。
1188* 运行 `/status` 查看失败情况,并确认 `apiKeyHelper` 是当前生效的凭据来源。`apiKeyHelper` 行会显示 `Failing` 以及上一次失败的详细信息,例如退出码和命令的错误输出,并会在下一次成功运行后消失。在 v2.1.274 之前,`/status` 只显示凭据来源,不显示失败情况。1198* 运行 `/status` 查看失败情况,并确认 `apiKeyHelper` 是当前生效的凭据来源。`apiKeyHelper` 行会显示 `Failing` 以及上一次失败的详细信息,例如退出码和命令的错误输出,并会在下一次成功运行后消失。在 v2.1.274 之前,`/status` 只显示凭据来源,不显示失败情况。
1189* 每次命令失败时,其退出码和错误输出也会显示在终端的 `Authentication` 面板中。在 v2.1.212 之前,该面板的标题为 `Cloud authentication`。
1190 1199
1191### Claude Code didn't send your claude.ai login1200### Claude Code didn't send your claude.ai login
1192 1201
1577 1586
1578**解决方法:**1587**解决方法:**
1579 1588
1580* 在 shell 中运行 `claude auth logout` 再次尝试保存。保存成功后,该命令会输出 `Successfully logged out from your Anthropic account.`1589* 在 shell 中运行 `claude auth logout`,再次尝试保存
1581 1590
1582### Couldn't start the local listener that receives the browser sign-in1591### Couldn't start the local listener that receives the browser sign-in
1583 1592
2313The cloud environments service returned a response in an unexpected format (HTTP 200 without a usable environments list). This is usually temporary — try again in a moment.2322The cloud environments service returned a response in an unexpected format (HTTP 200 without a usable environments list). This is usually temporary — try again in a moment.
2314```2323```
2315 2324
2316服务器接受了请求,但应答的正文不是环境列表:为空、不是 JSON,或者是不含该列表的 JSON。这种情况通常伴随服务端故障出现,并会自行恢复。根据请求该列表的使用入口,Claude Code 可能会添加前缀,例如在 `/remote-env` 对话框中显示 `couldn't list environments:`。
2317
2318**解决方法:**2325**解决方法:**
2319 2326
2320* 重试该操作。Claude Code 每次都会重新请求该列表2327* 重试该操作。Claude Code 每次都会重新请求该列表
2352 2359
2353### Couldn't reconnect to your Remote Control session2360### Couldn't reconnect to your Remote Control session
2354 2361
2355```text theme={null}2362有关原因和修复方法,请参阅 [Remote Control 故障排除中的此消息](https://code.claude.com/docs/zh-CN/remote-control.md#couldnt-reconnect-to-your-remote-control-session)。
2356Couldn't reconnect to your Remote Control session. Retry, or start a fresh session without --resume.
2357```
2358
2359使用 `claude --resume` 或 `claude --continue` 恢复时,会重新连接到该对话中记录的 [Remote Control](https://code.claude.com/docs/zh-CN/remote-control.md) 会话。此消息表示重新连接由于可能是暂时性的原因(例如网络中断或服务器错误)而失败,因此 Claude Code 无法确认远程会话是否仍然存在。您的本地会话会在没有 Remote Control 的情况下继续运行。
2360
2361**解决方法:**
2362
2363* 运行 `/remote-control` 重试连接
2364* 使用 `claude --remote-control` 启动新会话,以创建新的 Remote Control 会话
2365* 有关其他 Remote Control 启动消息,请参阅 [Remote Control 故障排除](https://code.claude.com/docs/zh-CN/remote-control.md#troubleshooting)
2366
2367如果服务器改为报告之前的会话已不存在,您不会看到此消息。Claude Code 会启动一个新会话来代替它,或者显示 [`Previous session is unavailable — run /remote-control to start a new one`](https://code.claude.com/docs/zh-CN/remote-control#previous-session-is-unavailable)。
2368 2363
2369### Sessions ended while this machine was offline2364### Sessions ended while this machine was offline
2370 2365
4449 4444
4450### Marketplace is registered from an untrusted source4445### Marketplace is registered from an untrusted source
4451 4446
4452该市场以一个[保留给 Anthropic 官方市场](https://code.claude.com/docs/zh-CN/plugins/marketplace-reference.md#marketplace-file)的名称注册,但其注册来源并不是 `anthropics` 的 GitHub 仓库。Claude Code 每次加载或刷新市场时都会重新检查保留名称,因此该市场以及从中安装的插件将停止加载。在 v2.1.205 之前,在其名称成为保留名称之前注册的条目仍会继续加载。4447有关原因和解决方法,请参阅[插件故障排除中的此消息](https://code.claude.com/docs/zh-CN/plugins/troubleshooting.md#marketplace-is-registered-from-an-untrusted-source)。
4453
4454```text theme={null}
4455Marketplace "claude-community" is registered from an untrusted source: The name 'claude-community' is reserved for official Anthropic marketplaces. Only repositories from 'github.com/anthropics/' can use this name. To fix it, remove the marketplace and re-add it from the official source.
4456```
4457
4458对于来源不是 GitHub 仓库或 Git URL 的市场(例如本地目录),中间那句话会改为 `can only be used with GitHub sources from the 'anthropics' organization`。`claude plugin marketplace add` 会执行相同的检查,并以 `Failed to add marketplace:` 加上同样的保留名称说明来拒绝保留名称。
4459
4460**解决方法:**
4461
4462* 如果该市场已经注册,请运行 `claude plugin marketplace remove <name>`,然后从官方的 `github.com/anthropics` 仓库重新添加
4463* 如果您发布的第三方市场在该名称成为保留名称之前就已使用它,请为市场重命名,并请用户从您的来源重新添加
4464* 请参阅[市场 schema](https://code.claude.com/docs/zh-CN/plugins/marketplace-reference.md#marketplace-file) 下的保留名称列表
4465 4448
4466### 市场名称是某个保留名称的另一种拼写4449### 市场名称是某个保留名称的另一种拼写
4467 4450
4551 4534
4552### Plugin archive integrity check failed4535### Plugin archive integrity check failed
4553 4536
4554该插件的市场条目使用了带 `sha256` 固定值的 [`archive` 来源](https://code.claude.com/docs/zh-CN/plugins/marketplace-reference#archive-plugin-source),而下载文件的摘要与该固定值不匹配。Claude Code 会拒绝安装,因此插件缓存中不会有任何更改。不匹配可能有三个原因:4537有关原因和解决方法,请参阅[插件故障排除中的此消息](https://code.claude.com/docs/zh-CN/plugins/troubleshooting.md#plugin-archive-integrity-check-failed)。
4555
4556* 作者计算固定值之后,URL 上的文件发生了变化
4557* 作者在市场条目中输入了错误的摘要
4558* 该 URL 提供的文件与作者固定的文件不同
4559
4560```text theme={null}
4561Plugin archive integrity check failed for https://artifacts.example.com/claude-plugins/my-plugin.zip: expected sha256 6bfa50e3d2e00c052b46abe51fff89346ac803e45771f76dcf6df1ab74cca5e1, got ac52220c0914ef8ca6a602e4a7362f88d30fb021110f72a6d15b68c3fe7df2b7. The archive was not installed. Verify the sha256 in the marketplace entry, or that the URL serves the intended file.
4562```
4563
4564**解决方法:**
4565
4566* 如果您是该插件的发布者,请重新计算该 URL 所提供的确切文件的摘要,例如使用 `shasum -a 256 my-plugin.zip`,或在 PowerShell 中使用 `Get-FileHash -Algorithm SHA256 my-plugin.zip`,然后更新市场条目中的 `sha256`
4567* 如果您是安装该插件的用户,请运行 `/plugin marketplace update <name>` 刷新目录,以防该条目已被更正,然后重试安装
4568* 如果刷新后摘要仍不一致,请在安装前询问市场所有者他们固定的是哪个文件
4569 4538
4570### Path escapes plugin directory4539### Path escapes plugin directory
4571 4540
6706 6675
6707`claude doctor` 和 `/status` 中的此警告会列出掩码文件:位于[沙箱](https://code.claude.com/docs/zh-CN/sandboxing.md)拒绝写入的路径上的 0 字节只读占位文件。在 Linux 和 WSL2 上启用沙箱隔离且开启文件系统隔离时会出现此警告。当包含这些文件的项目中没有打开任何 Claude Code 会话时,请从 shell 中删除它们。6676`claude doctor` 和 `/status` 中的此警告会列出掩码文件:位于[沙箱](https://code.claude.com/docs/zh-CN/sandboxing.md)拒绝写入的路径上的 0 字节只读占位文件。在 Linux 和 WSL2 上启用沙箱隔离且开启文件系统隔离时会出现此警告。当包含这些文件的项目中没有打开任何 Claude Code 会话时,请从 shell 中删除它们。
6708 6677
6709沙箱会在沙箱化命令运行时创建占位文件,并在命令结束时将其删除。在以下情况下,占位文件会残留:
6710
6711* 会话在命令结束前被终止,例如被 SIGKILL 终止
6712* 您在沙箱化命令仍在运行时退出了会话,例如后台运行的命令
6713
6714在 `claude doctor` 中,警告为:6678在 `claude doctor` 中,警告为:
6715 6679
6716```text theme={null}6680```text theme={null}