52| `Credit balance is too low` | [用量上限](#credit-balance-is-too-low) |52| `Credit balance is too low` | [用量上限](#credit-balance-is-too-low) |
53| `You've hit your monthly spend limit` / `You've hit your individual spend limit` / `You've hit your org's monthly spend limit` / `You've hit your channel's monthly spend limit` / `You've hit your team's shared budget` / `You've hit your individual usage limit` | [用量上限](#youve-hit-your-monthly-spend-limit) |53| `You've hit your monthly spend limit` / `You've hit your individual spend limit` / `You've hit your org's monthly spend limit` / `You've hit your channel's monthly spend limit` / `You've hit your team's shared budget` / `You've hit your individual usage limit` | [用量上限](#youve-hit-your-monthly-spend-limit) |
54| `Could not update your spend limit` | [用量上限](#could-not-update-your-spend-limit) |54| `Could not update your spend limit` | [用量上限](#could-not-update-your-spend-limit) |
55| `spend limit reached` / `spend limit unavailable` | [用量上限](#spend-limit-reached) |55| `spend limit reached` / `spend limit unavailable` / `This request exceeds your group's budget` | [用量上限](#spend-limit-reached) |
56| `Not logged in · Please run /login` | [身分驗證](#not-logged-in) |56| `Not logged in · Please run /login` | [身分驗證](#not-logged-in) |
57| `Couldn't save your login` | [身分驗證](#couldnt-save-your-login) |57| `Couldn't save your login` | [身分驗證](#couldnt-save-your-login) |
58| `Sign in again to take your previous account or API key off the config file.` | [身分驗證](#sign-in-again-to-take-your-previous-account-or-api-key-off-the-config-file) |58| `Sign in again to take your previous account or API key off the config file.` | [身分驗證](#sign-in-again-to-take-your-previous-account-or-api-key-off-the-config-file) |
336| `MCP server "<name>" connection closed before the tool call was answered` | [工具錯誤](#connection-closed-before-the-tool-call-was-answered) |336| `MCP server "<name>" connection closed before the tool call was answered` | [工具錯誤](#connection-closed-before-the-tool-call-was-answered) |
337| `MCP server "<name>" is disabled — re-enable it via /mcp to use its tools` | [工具錯誤](#mcp-server-is-disabled) |337| `MCP server "<name>" is disabled — re-enable it via /mcp to use its tools` | [工具錯誤](#mcp-server-is-disabled) |
338| `MCP server "<name>" tool "<tool>" timed out after <N>s. The server asked the user a question, and no answer came before the time limit.` | [工具錯誤](#mcp-tool-call-timed-out-with-the-servers-question-unanswered) |338| `MCP server "<name>" tool "<tool>" timed out after <N>s. The server asked the user a question, and no answer came before the time limit.` | [工具錯誤](#mcp-tool-call-timed-out-with-the-servers-question-unanswered) |
339| `Permission prompt tool returned an invalid result` | [工具錯誤](#permission-prompt-tool-returned-an-invalid-result) |
339| `would be spawned with zero tools — refusing` | [工具錯誤](#agent-would-be-spawned-with-zero-tools) |340| `would be spawned with zero tools — refusing` | [工具錯誤](#agent-would-be-spawned-with-zero-tools) |
340| `File is covered by a Read deny rule in your permission settings` | [工具錯誤](#file-is-covered-by-a-read-deny-rule) |341| `File is covered by a Read deny rule in your permission settings` | [工具錯誤](#file-is-covered-by-a-read-deny-rule) |
341| `<path> is outside <dirs>; the permissions.blockWritesOutsideWorkingDirectories setting blocks writes outside the working directories` | [工具錯誤](#setting-blocks-writes-outside-the-working-directories) |342| `<path> is outside <dirs>; the permissions.blockWritesOutsideWorkingDirectories setting blocks writes outside the working directories` | [工具錯誤](#setting-blocks-writes-outside-the-working-directories) |
420| `The Claude Code program for this computer, the <build> build, could not be found` | [包裝程式與 IDE 錯誤](#the-claude-code-program-for-this-computer-could-not-be-found) |421| `The Claude Code program for this computer, the <build> build, could not be found` | [包裝程式與 IDE 錯誤](#the-claude-code-program-for-this-computer-could-not-be-found) |
421| `Restored the code, but skipped N files` | [Rewind 警告和錯誤](#restored-the-code-but-skipped-files) |422| `Restored the code, but skipped N files` | [Rewind 警告和錯誤](#restored-the-code-but-skipped-files) |
422| `No files were restored: N files failed (backup missing, or the file could not be updated)` | [Rewind 警告和錯誤](#no-files-were-restored) |423| `No files were restored: N files failed (backup missing, or the file could not be updated)` | [Rewind 警告和錯誤](#no-files-were-restored) |
424| `The file backups are still being copied. Nothing was changed. Try again in a moment.` | 在 [`/rewind`](https://code.claude.com/docs/zh-TW/checkpointing) 中再次選擇相同的時間點。若在 [`/branch`](https://code.claude.com/docs/zh-TW/sessions#branch-a-session) 後不久還原程式碼,Claude Code 可能仍在將檔案備份複製到新的工作階段。 |
423| `Transcript writes are failing (...)` | [工作階段儲存警告](#transcript-writes-are-failing) |425| `Transcript writes are failing (...)` | [工作階段儲存警告](#transcript-writes-are-failing) |
424| `Transcript saving is off — CLAUDE_CODE_SKIP_PROMPT_HISTORY is set` | [工作階段儲存警告](#transcript-saving-is-off-skip-prompt-history) |426| `Transcript saving is off — CLAUDE_CODE_SKIP_PROMPT_HISTORY is set` | [工作階段儲存警告](#transcript-saving-is-off-skip-prompt-history) |
425| `Transcript saving is off — inherited CLAUDE_CODE_CHILD_SESSION marker` | [工作階段儲存警告](#transcript-saving-is-off-child-session-marker) |427| `Transcript saving is off — inherited CLAUDE_CODE_CHILD_SESSION marker` | [工作階段儲存警告](#transcript-saving-is-off-child-session-marker) |
431| `Not loaded: rename <path>, then restart — its name uses "<name>", a name reserved for the skills synced from your claude.ai account` | [設定警告](#a-skill-command-or-workflow-wasnt-loaded-because-its-name-is-reserved) |433| `Not loaded: rename <path>, then restart — its name uses "<name>", a name reserved for the skills synced from your claude.ai account` | [設定警告](#a-skill-command-or-workflow-wasnt-loaded-because-its-name-is-reserved) |
432| `N skill or command names refused: run with --debug to see which ([names]), rename, then restart` | [設定警告](#skill-or-command-name-refused) |434| `N skill or command names refused: run with --debug to see which ([names]), rename, then restart` | [設定警告](#skill-or-command-name-refused) |
433| `Ignoring N permissions.allow entries from ... this workspace has not been trusted` | [設定警告](#workspace-has-not-been-trusted) |435| `Ignoring N permissions.allow entries from ... this workspace has not been trusted` | [設定警告](#workspace-has-not-been-trusted) |
436| `Two Claude Code config files exist: this run uses <path>, not <path>` | [設定警告](#two-claude-code-config-files-exist) |
434| `Make this change again later: <path> could not be updated, so it applies to this session only` | [設定警告](#make-this-change-again-later) |437| `Make this change again later: <path> could not be updated, so it applies to this session only` | [設定警告](#make-this-change-again-later) |
435| `is a network path, which cannot be added as a working directory` | [設定警告](#working-directory-is-a-network-path) |438| `is a network path, which cannot be added as a working directory` | [設定警告](#working-directory-is-a-network-path) |
436| `Remote managed settings failed to load (<cause>)` | [設定警告](#remote-managed-settings-failed-to-load) |439| `Remote managed settings failed to load (<cause>)` | [設定警告](#remote-managed-settings-failed-to-load) |
468| `CLAUDE_CODE_AUTO_COMPACT_WINDOW="<value>" isn't a usable size, so Claude Code ignores it` | [`CLAUDE_CODE_AUTO_COMPACT_WINDOW` 的值與警告](https://code.claude.com/docs/zh-TW/model-config#claude_code_auto_compact_window-values) |471| `CLAUDE_CODE_AUTO_COMPACT_WINDOW="<value>" isn't a usable size, so Claude Code ignores it` | [`CLAUDE_CODE_AUTO_COMPACT_WINDOW` 的值與警告](https://code.claude.com/docs/zh-TW/model-config#claude_code_auto_compact_window-values) |
469| `Model "<model>" isn't recognized · context assumed to be 200k tokens` | [修正閘道或自訂模型 ID 的上下文視窗](https://code.claude.com/docs/zh-TW/model-config.md#correct-the-window-for-a-gateway-or-custom-model-id) |472| `Model "<model>" isn't recognized · context assumed to be 200k tokens` | [修正閘道或自訂模型 ID 的上下文視窗](https://code.claude.com/docs/zh-TW/model-config.md#correct-the-window-for-a-gateway-or-custom-model-id) |
470| `Claude Code doesn't recognize the model "<model>", so it assumes a context window of 200k tokens` | [修正閘道或自訂模型 ID 的上下文視窗](https://code.claude.com/docs/zh-TW/model-config.md#correct-the-window-for-a-gateway-or-custom-model-id) |473| `Claude Code doesn't recognize the model "<model>", so it assumes a context window of 200k tokens` | [修正閘道或自訂模型 ID 的上下文視窗](https://code.claude.com/docs/zh-TW/model-config.md#correct-the-window-for-a-gateway-or-custom-model-id) |
474| `Model "<model>" isn't recognized · did you mean "<suggestion>"?` / `Claude Code doesn't recognize the model "<model>". Did you mean "<suggestion>"?` | [修正拼錯的模型名稱](https://code.claude.com/docs/zh-TW/model-config.md#fix-a-mistyped-model-name) |
471| `[claude-code:unrecognized_model]` | [設定警告](#unrecognized-model-id-on-a-request) |475| `[claude-code:unrecognized_model]` | [設定警告](#unrecognized-model-id-on-a-request) |
472| `is ignored — managed settings set allowManagedReadPathsOnly` / `is ignored — managed settings set allowManagedDomainsOnly` | [設定警告](#sandbox-allow-entries-are-ignored-under-a-managed-lock) |476| `is ignored — managed settings set allowManagedReadPathsOnly` / `is ignored — managed settings set allowManagedDomainsOnly` | [設定警告](#sandbox-allow-entries-are-ignored-under-a-managed-lock) |
473| `Sandbox mask files left behind at write-deny paths` | [設定警告](#stale-sandbox-mask-files-left-by-a-killed-session) |477| `Sandbox mask files left behind at write-deny paths` | [設定警告](#stale-sandbox-mask-files-left-by-a-killed-session) |
909Fable 5.1 now uses usage credits · the prompt to confirm went unanswered — nothing was sent · answer it where this session is running, or /model to change913Fable 5.1 now uses usage credits · the prompt to confirm went unanswered — nothing was sent · answer it where this session is running, or /model to change
910```914```
911 915
912訊息會命名工作階段的 Fable 模型,因此在 Fable 5 上它們會讀作 `continuing on Fable 5` 和 `Fable 5 now uses usage credits`。在 v2.1.257 之前,第一條訊息以 `Fable 5 limit reached` 開頭。916訊息會命名工作階段的 Fable 模型,因此在 Fable 5.2 上它們會讀作 `continuing on Fable 5.2` 和 `Fable 5.2 now uses usage credits`。在 v2.1.257 之前,第一條訊息以 `Fable 5 limit reached` 開頭。
913 917
914這發生在 [Remote Control](https://code.claude.com/docs/zh-TW/remote-control.md) 工作階段、[背景工作階段](https://code.claude.com/docs/zh-TW/agent-view.md)、[agent team](https://code.claude.com/docs/zh-TW/agent-teams.md) 隊友工作階段,以及另一個應用程式透過 Agent SDK 託管的工作階段中。如需 Claude Code 何時關閉提示,請參閱 [Fable 和用量點數](https://code.claude.com/docs/zh-TW/model-config.md#fable-and-usage-credits)。918這發生在 [Remote Control](https://code.claude.com/docs/zh-TW/remote-control.md) 工作階段、[背景工作階段](https://code.claude.com/docs/zh-TW/agent-view.md)、[agent team](https://code.claude.com/docs/zh-TW/agent-teams.md) 隊友工作階段,以及另一個應用程式透過 Agent SDK 託管的工作階段中。如需 Claude Code 何時關閉提示,請參閱 [Fable 和用量點數](https://code.claude.com/docs/zh-TW/model-config.md#fable-and-usage-credits)。
915 919
983 987
984### Spend limit reached988### Spend limit reached
985 989
986您透過 [Claude 應用程式閘道](https://code.claude.com/docs/zh-TW/claude-apps-gateway)連接,並已超過閘道營運者設定的[支出上限](https://code.claude.com/docs/zh-TW/claude-apps-gateway-spend-limits.md)。閘道會阻止您的請求,直到指定的期間重設或營運者提高上限。它將每個被阻止的 `429` 回應標記為 `x-should-retry: false`,因此 Claude Code 會顯示此訊息而不重試。990您透過 [Claude 應用程式閘道](https://code.claude.com/docs/zh-TW/claude-apps-gateway)連接,並已達到閘道營運者設定的[支出上限](https://code.claude.com/docs/zh-TW/claude-apps-gateway-spend-limits.md)。閘道會阻止您的請求,直到營運者提高上限,或者若上限高於 \$0,則直到上限重設為止。它將每個被阻止的 `429` 回應標記為 `x-should-retry: false`,因此在終端機中 Claude Code 會顯示此訊息而不重試。
987 991
988```text theme={null}992```text theme={null}
989spend limit reached (daily; resets 2026-08-09 00:00 UTC)993spend limit reached · resets Dec 1
990```994```
991 995
992訊息會指出上限的期間和重設時間,當營運者設定了 `blocked_message` 時,他們的指示會跟在後面。在 v2.1.225 之前,訊息只顯示 `spend limit reached`;較舊版本上的閘道仍會發送該較短的形式。996檢查訊息中是否有日期:
997
998* **有日期**:上限會在該日期的 00:00 UTC 重設
999* **沒有日期**:您的上限為 \$0,或您的閘道執行的是早於 v2.1.225 的版本
1000
1001訊息中的任何其他文字都是您的閘道營運者留下的備註。
1002
1003在閘道伺服器上從 v2.1.225 到 v2.1.319 期間,訊息會指出上限的期間和重設時間,例如 `spend limit reached (daily; resets 2026-08-09 00:00 UTC)`。
993 1004
994**該怎麼做:**1005**該怎麼做:**
995 1006
996* 等待訊息指出的重設時間,或如果訊息包含營運者的指示,請遵循它們1007* 如果訊息有日期,請等待重設,或如果訊息附有營運者的備註,請遵循它
997* 如果您經常達到上限,請要求您的閘道營運者提高上限1008* 如果訊息沒有日期、過了該日期後您仍被阻止,或您經常達到上限,請要求您的閘道營運者提高上限
1009
1010另一則閘道訊息 `This request exceeds your group's budget` 表示您群組的[集區預算](https://code.claude.com/docs/zh-TW/claude-apps-gateway-config.md#pooled-budget-order)已用完。請依照訊息中指出的步驟操作:
1011
1012```text theme={null}
1013This request exceeds your group's budget. Ask your organization's admins to raise it, or try again after it resets on November 1 at 00:00 UTC.
1014```
998 1015
999相關訊息 `spend limit unavailable` 表示閘道無法讀取其支出記錄,並作為預防措施阻止了請求,而不是因為超過您的上限。它通常會自行解除;如果持續發生,請告知您的閘道營運者。1016相關訊息 `spend limit unavailable` 表示閘道無法讀取其支出記錄,並作為預防措施阻止了請求,而不是因為超過您的上限。它通常會自行解除;如果持續發生,請告知您的閘道營運者。
1000 1017
2287 2304
2288### Couldn't send feedback2305### Couldn't send feedback
2289 2306
2290以 `Couldn't send feedback` 開頭的訊息表示意見反應服務未確認收到您從 [`/feedback`、`/bug` 或 `/share` 對話方塊](https://code.claude.com/docs/zh-TW/commands#all-commands)提交的報告,或佇列中的[意見反應草稿](https://code.claude.com/docs/zh-TW/tools-reference.md#sendfeedback-tool-behavior)。請將其視為未收到。當冒號後面接著一句關於您組織的說明時,表示您的組織拒絕接收意見反應,同一份報告會得到相同的回應。2307以 `Couldn't send feedback` 開頭的訊息表示意見反應服務未確認收到您從 [`/feedback`、`/bug` 或 `/share` 對話方塊](https://code.claude.com/docs/zh-TW/commands#all-commands)提交的報告,或佇列中的[意見反應草稿](https://code.claude.com/docs/zh-TW/tools-reference.md#sendfeedback-tool-behavior)。請將其視為未收到。當冒號後面接著一句關於您組織的說明時,表示您的組織拒絕接收意見反應。
2291 2308
2292以下兩個範例中,第二個是組織的拒絕:2309第二個範例是組織的拒絕:
2293 2310
2294```text wrap theme={null}2311```text wrap theme={null}
2295Couldn't send feedback (couldn't reach the service). If it keeps failing, you can file at https://github.com/anthropics/claude-code/issues instead.2312Couldn't send feedback (couldn't reach the service). If it keeps failing, you can file at https://github.com/anthropics/claude-code/issues instead.
2300**該怎麼做:**2317**該怎麼做:**
2301 2318
2302* **未登入**:訊息接著顯示 `: not signed in. Run /login, then retry.`。執行 `/login`,然後再次傳送2319* **未登入**:訊息接著顯示 `: not signed in. Run /login, then retry.`。執行 `/login`,然後再次傳送
2303* **您組織的拒絕**:例如 `: Feedback has not been enabled for your organization.` 或 `: Feedback collection is not available for organizations with custom data retention policies.`。如果訊息附加 `To report a bug, open an issue`,請在 [github.com/anthropics/claude-code/issues](https://github.com/anthropics/claude-code/issues) 提交 issue。佇列中的草稿會保留在佇列中,您可以[捨棄它](https://code.claude.com/docs/zh-TW/tools-reference.md#discard-or-keep-a-draft)2320* **您組織的拒絕**:例如 `: Feedback has not been enabled for your organization.` 或 `: Feedback collection is not available for organizations with custom data retention policies.`。如果訊息附加 `To report a bug, open an issue`,請在 [github.com/anthropics/claude-code/issues](https://github.com/anthropics/claude-code/issues) 提交 issue。之後七天內,`/feedback` 可能會回應它已[被您組織的原則停用](#feedback-is-disabled-by-your-organizations-policy)。佇列中的草稿會保留在佇列中,並仍會[依排程過期](https://code.claude.com/docs/zh-TW/tools-reference.md#discard-or-keep-a-draft)
2304* **憑證遭拒**:訊息接著顯示 `: the sign-in this session uses is not allowed to send feedback` 或 `: the server did not accept the credentials this session uses`。在 Claude Code 提示字元執行 `/status`,以查看此工作階段傳送的是哪個登入、token 或 API 金鑰2321* **憑證遭拒**:訊息接著顯示 `: the sign-in this session uses is not allowed to send feedback` 或 `: the server did not accept the credentials this session uses`。在 Claude Code 提示字元執行 `/status`,以查看此工作階段傳送的是哪個登入、token 或 API 金鑰
2305* **`Couldn't send feedback` 後緊接著 `(request timed out)` 或 `(couldn't reach the service)`**:再次傳送報告或佇列中的草稿。對話方塊會保留您的文字,而佇列中草稿的訊息會顯示 `The draft is still queued.`。如果其他請求也失敗,請檢查您的網路連線並查看 [Unable to connect to API](#unable-to-connect-to-api)。如果持續失敗,請在 [github.com/anthropics/claude-code/issues](https://github.com/anthropics/claude-code/issues) 提交報告2322* **`Couldn't send feedback` 後緊接著 `(request timed out)` 或 `(couldn't reach the service)`**:再次傳送報告或佇列中的草稿。對話方塊會保留您的文字,而佇列中草稿的訊息會顯示 `The draft is still queued.`。如果其他請求也失敗,請檢查您的網路連線並查看 [Unable to connect to API](#unable-to-connect-to-api)。如果持續失敗,請在 [github.com/anthropics/claude-code/issues](https://github.com/anthropics/claude-code/issues) 提交報告
2306* **`Couldn't send feedback` 後緊接著 `(server returned <status>)`,或沒有任何原因**:狀態是服務的回應代碼。當服務有傳送自己的訊息時,該訊息會接在狀態之後,例如 `(server returned 403: Access Forbidden)`。如果持續失敗,請在 [github.com/anthropics/claude-code/issues](https://github.com/anthropics/claude-code/issues) 提交報告2323* **`Couldn't send feedback` 後緊接著 `(server returned <status>)`,或沒有任何原因**:狀態是服務的回應代碼。當服務有傳送自己的訊息時,該訊息會接在狀態之後,例如 `(server returned 403: Access Forbidden)`。如果持續失敗,請在 [github.com/anthropics/claude-code/issues](https://github.com/anthropics/claude-code/issues) 提交報告
3431* **`Error: Workspace not trusted. <folder> is your home directory`**:由於對家目錄的信任永遠不會被儲存,先在那裡執行 `claude` 並沒有幫助。請改從專案目錄執行 `claude ultrareview`(事先在那裡執行一次 `claude` 以接受信任對話框),或附加 `--trust-workspace`。3448* **`Error: Workspace not trusted. <folder> is your home directory`**:由於對家目錄的信任永遠不會被儲存,先在那裡執行 `claude` 並沒有幫助。請改從專案目錄執行 `claude ultrareview`(事先在那裡執行一次 `claude` 以接受信任對話框),或附加 `--trust-workspace`。
3432* **`No answer in time.` 後接 `Error: Workspace not trusted`**:`Trust <folder>? [y/N]` 問題在 5 分鐘內未獲回答。請再次執行 `claude ultrareview` 並回答它。3449* **`No answer in time.` 後接 `Error: Workspace not trusted`**:`Trust <folder>? [y/N]` 問題在 5 分鐘內未獲回答。請再次執行 `claude ultrareview` 並回答它。
3433* **`Ultrareview did not start: <folder> is not trusted`**:您在 `Trust <folder>? [y/N]` 問題中拒絕了,例如回答 `n` 或按下 Enter。若要啟動審查,請再次執行 `claude ultrareview` 並回答 `y`。3450* **`Ultrareview did not start: <folder> is not trusted`**:您在 `Trust <folder>? [y/N]` 問題中拒絕了,例如回答 `n` 或按下 Enter。若要啟動審查,請再次執行 `claude ultrareview` 並回答 `y`。
3434* **``Ultrareview did not start: `--trust-workspace` takes no value``**:`--trust-workspace` 後面接了旗標以外的東西,例如 PR 編號或 `false`。如果您不信任該資料夾,請不要加上此旗標。若要在這次執行中信任它,請將 PR 編號或基礎分支放在旗標之前:`claude ultrareview 1234 --trust-workspace`。3451* **``Ultrareview did not start: `--trust-workspace` takes no value``**:`--trust-workspace` 之後跟著非旗標的內容,例如 PR 編號或 `false`。如果您不信任該資料夾,請省略此旗標。若要在此次執行中信任它,請將 PR 編號或基礎分支放在旗標之前:`claude ultrareview 1234 --trust-workspace`。
3435 3452
3436在 v2.1.309 之前,`claude ultrareview` 不接受 `--trust-workspace`。3453在 v2.1.309 之前,`claude ultrareview` 不接受 `--trust-workspace`。
3437 3454
3724 3741
3725以下同類字串會在命令執行之前就觸發:3742以下同類字串會在命令執行之前就觸發:
3726 3743
3727* `Shell command permission check failed for pattern "..."`:該命令的權限檢查不允許它。[注入命令的權限檢查](https://code.claude.com/docs/zh-TW/skills.md#permission-checks-on-injected-commands)說明了在各權限模式下哪些結果會中止,以及如何使用 `allowed-tools` 預先核准命令3744* `Shell command permission check failed for pattern "..."`:命令的權限檢查不允許該命令。[注入命令的權限檢查](https://code.claude.com/docs/zh-TW/skills.md#permission-checks-on-injected-commands)說明了各權限模式下哪些結果會中止,以及如何使用 `allowed-tools` 預先核准命令
3728* ``Skill <name> requires bash (`shell: bash` in frontmatter) but Git Bash was not found``:該 skill 的 frontmatter 要求使用 bash,但機器上沒有 bash。請安裝 Git for Windows,或將 frontmatter 改為 `shell: powershell`。請參閱[注入的命令如何執行](https://code.claude.com/docs/zh-TW/skills.md#how-injected-commands-run)3745* ``Skill <name> requires bash (`shell: bash` in frontmatter) but Git Bash was not found``:skill 的 frontmatter 要求使用 bash,但電腦上沒有 bash。請安裝 Git for Windows,或將 frontmatter 改為 `shell: powershell`。請參閱[注入命令的執行方式](https://code.claude.com/docs/zh-TW/skills.md#how-injected-commands-run)
3729 3746
3730**處理方式:**3747**處理方式:**
3731 3748
3878 3895
3879* **您沒有傳入基底分支**:Claude Code 與儲存庫的預設分支進行比較,並建議您明確傳入基底分支,如上例所示3896* **您沒有傳入基底分支**:Claude Code 與儲存庫的預設分支進行比較,並建議您明確傳入基底分支,如上例所示
3880* **您傳入的基底分支已存在於您的複製中**:提示內容為 ``Make sure <branch> exists locally or on origin (try `git fetch origin <branch>`)``3897* **您傳入的基底分支已存在於您的複製中**:提示內容為 ``Make sure <branch> exists locally or on origin (try `git fetch origin <branch>`)``
3881* **您傳入的基礎分支不在您的 clone 中**:Claude Code 在比較前從 origin 擷取了該分支。提示內容為 ``<branch> was fetched from origin but shares no history with HEAD. If another branch is your real base, pass it explicitly (`/code-review ultra <branch>`)``;當 Claude Code 無法判斷您的 clone 是否為淺層 clone 時,它會改為建議 `git fetch --unshallow origin`。在 v2.1.221 之前,提示會對每個擷取的基礎分支建議 `git fetch --unshallow origin`,而在完整的 clone 上,該命令會失敗並顯示 `fatal: --unshallow on a complete repository does not make sense`。3898* **您傳入的基礎分支不在您的 clone 中**:Claude Code 在比較前先從 origin 擷取了該分支。提示內容為 ``<branch> was fetched from origin but shares no history with HEAD. If another branch is your real base, pass it explicitly (`/code-review ultra <branch>`)``;當 Claude Code 無法判斷您的 clone 是否為淺層 clone 時,它會改為建議 `git fetch --unshallow origin`。在 v2.1.221 之前,提示會對每個擷取的基礎分支都建議 `git fetch --unshallow origin`,而在完整的 clone 上,該命令會以 `fatal: --unshallow on a complete repository does not make sense` 失敗。
3882 3899
3883**處理方式:**3900**處理方式:**
3884 3901
4227 4244
4228### /feedback is disabled by your organization's policy4245### /feedback is disabled by your organization's policy
4229 4246
4230此訊息表示您組織的政策不允許從 Claude Code 提供產品意見回饋,因此 `/feedback`、`/bug` 與 `/share` 不會開啟意見回饋對話框。訊息會指出您在 Claude Code 提示字元輸入的命令:4247此訊息表示產品意見回饋已關閉,因此您輸入的命令不會開啟意見回饋對話框。組織的政策與先前的拒絕都會產生此訊息:
4248
4249* **組織政策**:您組織的政策不允許從 Claude Code 提交產品意見回饋。`/feedback`、`/bug` 與 `/share` 都會以此訊息回應。
4250* **先前的拒絕**:意見回饋服務拒絕了您傳送的報告,例如顯示 [`Couldn't send feedback: Feedback has not been enabled for your organization.`](#couldnt-send-feedback)。之後 `/feedback` 與 `/bug` 可能會以此訊息回應。此狀態在這台機器上會從該次拒絕起持續七天。這適用於所有方案,包括 Pro 與 Max。
4251
4252訊息會列出您在 Claude Code 提示字元輸入的命令:
4231 4253
4232```text wrap theme={null}4254```text wrap theme={null}
4233/feedback is disabled by your organization's policy. To report a bug, open an issue at https://github.com/anthropics/claude-code/issues. Issues are public, so leave out anything confidential.4255/feedback is disabled by your organization's policy. To report a bug, open an issue at https://github.com/anthropics/claude-code/issues. Issues are public, so leave out anything confidential.
4238**處理方式:**4260**處理方式:**
4239 4261
4240* 若要回報錯誤,請在 [github.com/anthropics/claude-code/issues](https://github.com/anthropics/claude-code/issues) 建立 issue。任何人都可以閱讀該處的 issue,因此請勿包含程式碼、逐字稿及任何其他機密內容。4262* 若要回報錯誤,請在 [github.com/anthropics/claude-code/issues](https://github.com/anthropics/claude-code/issues) 建立 issue。任何人都可以閱讀該處的 issue,因此請勿包含程式碼、逐字稿及任何其他機密內容。
4263* 在先前遭到拒絕後,請等待七天過去,然後再次傳送報告,以確認服務是否仍會拒絕
4264
4265在 v2.1.319 之前,先前的拒絕不會產生此訊息。
4241 4266
4242在 v2.1.302 之前,完整訊息為 `/feedback is disabled by your organization's policy. Contact your organization admin to enable it.`4267在 v2.1.302 之前,完整訊息為 `/feedback is disabled by your organization's policy. Contact your organization admin to enable it.`
4243 4268
4654* 若要給予回答更多時間,請在伺服器的設定項目中以毫秒為單位設定較長的 [`timeout`](https://code.claude.com/docs/zh-TW/mcp#time-limits-on-mcp-tool-calls),例如 `"timeout": 600000` 代表 10 分鐘4679* 若要給予回答更多時間,請在伺服器的設定項目中以毫秒為單位設定較長的 [`timeout`](https://code.claude.com/docs/zh-TW/mcp#time-limits-on-mcp-tool-calls),例如 `"timeout": 600000` 代表 10 分鐘
4655* 改為在互動式工作階段中執行該任務,並自行回答伺服器的 [對話框](https://code.claude.com/docs/zh-TW/mcp.md#respond-to-mcp-elicitation-requests)4680* 改為在互動式工作階段中執行該任務,並自行回答伺服器的 [對話框](https://code.claude.com/docs/zh-TW/mcp.md#respond-to-mcp-elicitation-requests)
4656 4681
4682### Permission prompt tool returned an invalid result
4683
4684您傳給 [`--permission-prompt-tool`](https://code.claude.com/docs/zh-TW/cli-reference#cli-flags) 的工具傳回了 Claude Code 無法讀取的回答,因此等待該回答的工具呼叫並未執行,即使該回答允許了該呼叫也是如此:
4685
4686```text wrap theme={null}
4687Permission prompt tool returned an invalid result. Expected a single text block param with type="text" and a string text value.
4688```
4689
4690**處理方式:**
4691
4692* 傳回一個文字區塊,其文字為 `{"behavior": "allow"}` 或 `{"behavior": "deny", "message": "<reason>"}`。若要變更輸入,請將 `updatedInput` 加入 `allow` 物件。從 v2.1.86 到 v2.1.206,`allow` 需要 `"updatedInput": {}` 才能保留輸入。
4693* 不要傳回 [`structuredContent`](https://code.claude.com/docs/zh-TW/agent-sdk/custom-tools#return-structured-data),您的 MCP SDK 可能會自行加入它。例如,註冊該工具時:
4694 * **來自 `mcp.server` 的 `FastMCP` 或 `MCPServer`**:使用 `structured_output=False`
4695 * **來自 `fastmcp` 的 `FastMCP`**:使用 `output_schema=None`,並傳回字串
4696 * **MCP TypeScript SDK**:不使用 `outputSchema`
4697* 如果錯誤只在輸入約 40 KB 以上時出現,請勿將輸入複製到 `updatedInput` 或拒絕的 `message` 中。若要變更如此大的輸入,請 [提高您權限提示工具的輸出上限](https://code.claude.com/docs/zh-TW/mcp.md#raise-the-limit-for-a-specific-tool)。
4698
4657### Agent would be spawned with zero tools4699### Agent would be spawned with zero tools
4658 4700
4659subagent 的 [`tools` 清單](https://code.claude.com/docs/zh-TW/sub-agents#supported-frontmatter-fields) 中的每個項目都無法比對到可用的工具,因此 Claude Code 拒絕啟動該 subagent:沒有任何工具,它就無法執行動作。訊息會依問題類型將您的項目分組:4701subagent 的 [`tools` 清單](https://code.claude.com/docs/zh-TW/sub-agents#supported-frontmatter-fields) 中的每個項目都無法比對到可用的工具,因此 Claude Code 拒絕啟動該 subagent:沒有任何工具,它就無法執行動作。訊息會依問題類型將您的項目分組:
6432 6474
6433在 v2.1.257 之前,`claude doctor` 不會標示這些檔案;較早的版本在工作階段被終止時也會留下相同的佔位檔案。6475在 v2.1.257 之前,`claude doctor` 不會標示這些檔案;較早的版本在工作階段被終止時也會留下相同的佔位檔案。
6434 6476
6477### Two Claude Code config files exist
6478
6479Claude Code 正在使用此訊息所列的第一個檔案,因此第二個檔案中的內容不會生效。第一個檔案是 `.config.json`,這是 [`.claude.json`](https://code.claude.com/docs/zh-TW/claude-directory#ce-claude-json) 的舊名稱。訊息中包含一項檢查,可用來找出哪個檔案保存了您的設定:
6480
6481```text wrap theme={null}
6482Two Claude Code config files exist: this run uses /home/you/.claude/.config.json, not /home/you/.claude.json. The file with the higher count here is usually yours, and this prints nothing else from them: grep -c -E '"(hasCompletedOnboarding|mcpServers)"' "/home/you/.claude/.config.json" "/home/you/.claude.json". To end this: if several hosts share this home, first get every host to version 2.1.319 or later, since an older one can write a moved .config.json back. Then stop your Claude processes on every host, move aside the one you do not want, and start none until no host lists it.
6483```
6484
6485在 Windows 上,`The one with hasCompletedOnboarding or mcpServers in it is usually yours.` 會取代包含 `grep` 命令的那一句。
6486
6487**處理方式:**
6488
6489**1. 找出保存您設定的檔案**
6490
6491* **在 Windows 上**:開啟兩個檔案,查看哪一個包含 `hasCompletedOnboarding` 或 `mcpServers`
6492* **在其他平台上**:在您的 shell 中執行訊息中的 `grep` 命令,查看哪個檔案的計數較高
6493
6494**2. 更新共用家目錄的每一台主機**
6495
6496若多台主機共用此家目錄,請先將每台主機上的 Claude Code 更新至訊息所指的版本或更新版本。較舊的版本可能會將已移走的 `.config.json` 寫回。
6497
6498**3. 停止 Claude Code**
6499
6500停止每台主機上的 Claude Code 程序。
6501
6502**4. 移走您不要的檔案**
6503
6504將您不要的檔案移出其資料夾。請移動而非刪除,以便日後可以放回。
6505
6506**5. 等待後再重新啟動 Claude Code**
6507
6508在沒有任何主機仍於舊路徑列出已移走的檔案之前,請勿在任何主機上啟動 Claude Code。
6509
6510當兩個檔案其中之一不存在後,此訊息就不會再出現。
6511
6435### Make this change again later: \~/.claude.json could not be updated6512### Make this change again later: \~/.claude.json could not be updated
6436 6513
6437stderr 上的此通知表示對 [`~/.claude.json`](https://code.claude.com/docs/zh-TW/claude-directory#ce-claude-json) 的變更(例如登入或對信任提示的回答)未儲存到該檔案:6514stderr 上的此通知表示對 [`~/.claude.json`](https://code.claude.com/docs/zh-TW/claude-directory#ce-claude-json) 的變更(例如登入或對信任提示的回答)未儲存到該檔案:
6444 6521
6445* 在之後的工作階段中再次進行此變更。例如,再次執行 `/login`,或再次回答信任提示。6522* 在之後的工作階段中再次進行此變更。例如,再次執行 `/login`,或再次回答信任提示。
6446 6523
6447## 回應品質似乎低於預期6524## 回應品質似乎比平常差
6448 6525
6449如果 Claude 的回答似乎不如您預期的那樣有能力,但沒有顯示錯誤,原因通常是對話狀態而非模型本身。Claude Code 不會無聲地更改模型版本。它只能在這些情況下切換到備用模型:6526如果 Claude 的回答似乎不如預期,但沒有顯示任何錯誤,原因通常是對話狀態,而非模型本身。Claude Code 不會在未告知的情況下變更模型版本。在以下情況下,它可能會切換至備援模型:
6450 6527
6451* 配置的 [`--fallback-model`](https://code.claude.com/docs/zh-TW/cli-reference#cli-flags) 在可用性錯誤後接管該輪次,並在文字記錄中顯示通知6528* 已設定的 [`--fallback-model`](https://code.claude.com/docs/zh-TW/cli-reference#cli-flags) 會在發生可用性錯誤後接手,僅限該回合,並在逐字稿中顯示通知
6452* Amazon Bedrock 或 Google Cloud 的 Agent Platform 啟動檢查發現您的預設模型不可用,或您的帳戶[在工作階段中途失去對它的存取權](https://code.claude.com/docs/zh-TW/amazon-bedrock.md#when-a-model-is-disabled-mid-session)6529* Amazon Bedrock 或 Google Cloud's Agent Platform 的啟動檢查發現您的預設模型無法使用,或您的帳戶[在工作階段中途失去該模型的存取權](https://code.claude.com/docs/zh-TW/amazon-bedrock.md#when-a-model-is-disabled-mid-session)
6453* [自動模型備用](https://code.claude.com/docs/zh-TW/model-config.md#automatic-model-fallback)在 Fable 5.1、Fable 5、Opus 5.5、Sonnet 5.5 和 Opus 5 上將工作階段移至標記類別的備用模型(當該類別有備用模型時),並在文字記錄中顯示通知6530* 在 Fable 模型、Opus 5.5、Sonnet 5.5 和 Opus 5 上,[自動模型備援](https://code.claude.com/docs/zh-TW/model-config.md#automatic-model-fallback)會在被標記的類別有備援模型時,將工作階段移至該類別的備援模型。逐字稿中會顯示通知
6454 6531
6455下面的模型選擇檢查可以捕捉第二和第三種情況;第一種情況顯示為文字記錄通知而非 `/model` 變更。[模型設定](https://code.claude.com/docs/zh-TW/model-config.md)說明每個備用何時適用。6532下方的「模型選擇」檢查可發現第二和第三種情況;第一種情況會以逐字稿通知的形式出現,而不是 `/model` 的變更。[模型設定](https://code.claude.com/docs/zh-TW/model-config.md)說明了各種備援的適用時機。
6456 6533
6457首先檢查這些項目:6534請先檢查以下項目:
6458 6535
6459* **模型選擇**:執行 `/model` 以確認您在預期的模型上。先前的 `/model` 選擇或 `ANTHROPIC_MODEL` 環境變數可能使您在比預期更小的模型上。6536* **模型選擇**:執行 `/model` 以確認您正在使用預期的模型。先前的 `/model` 選擇或 `ANTHROPIC_MODEL` 環境變數,可能讓您使用的是比預期更小的模型。
6460* **努力程度**:執行 `/effort` 以檢查目前的推理程度,並為困難的除錯或設計工作提高它。預設值因模型而異,所以在假設您低於最大值之前請先檢查。請參閱[調整努力程度](https://code.claude.com/docs/zh-TW/model-config.md#adjust-effort-level)以了解每個模型的預設值和 `ultrathink` 快捷方式。6537* **Effort 等級**:執行 `/effort` 以檢查目前的推理等級,並在進行困難的除錯或設計工作時提高等級。預設值因模型而異,因此在假設您低於最大值之前請先確認。如需各模型的預設值及 `ultrathink` 捷徑,請參閱[調整 effort 等級](https://code.claude.com/docs/zh-TW/model-config.md#adjust-effort-level)。
6461* **上下文壓力**:執行 `/context` 以查看視窗有多滿。如果接近容量,請在自然斷點執行 `/compact` 或執行 `/clear` 以重新開始。請參閱[探索上下文視窗](https://code.claude.com/docs/zh-TW/context-window.md)以了解自動壓縮如何影響較早的輪次。6538* **上下文壓力**:執行 `/context` 以查看上下文視窗的使用量。如果接近容量上限,請在自然的段落點執行 `/compact`,或執行 `/clear` 重新開始。如需了解自動壓縮如何影響較早的回合,請參閱[探索上下文視窗](https://code.claude.com/docs/zh-TW/context-window.md)。
6462* **過時的指示**:大型或過時的 `CLAUDE.md` 檔案和 MCP 工具定義會消耗上下文並可能引導回應。`/doctor` 檢查會標記超大的記憶檔案和未使用的擴充功能,而 `/context` 會顯示 MCP 工具的權杖使用情況。在 v2.1.205 之前,`/doctor` 開啟了一個診斷畫面,標記超大的記憶檔案和子代理定義。6539* **過時的指示**:大型或過時的 `CLAUDE.md` 檔案和 MCP 工具定義會佔用上下文,並可能影響回應方向。`/doctor` 檢查會標示過大的記憶檔案和未使用的擴充功能,而 `/context` 會顯示 MCP 工具的 token 使用量。在 v2.1.205 之前,`/doctor` 會開啟一個診斷畫面,標示過大的記憶檔案和 subagent 定義。
6463 6540
6464當回應出錯時,回溯通常比用更正回覆效果更好。按 Esc 兩次或執行 `/rewind` 以回到不良輪次之前,然後用更多細節重新表述提示。在執行緒中更正會將錯誤的嘗試保留在上下文中,這可能會將後來的答案錨定到它。請參閱[檢查點](https://code.claude.com/docs/zh-TW/checkpointing.md)。6541當回應出錯時,倒轉通常比回覆更正更有效。按兩次 Esc 或執行 `/rewind` 以退回到出錯的回合之前,然後以更具體的內容重新表述提示詞。在同一對話串中更正會讓錯誤的嘗試留在上下文中,可能使後續的回答受其影響。請參閱[檢查點功能](https://code.claude.com/docs/zh-TW/checkpointing.md)。
6465 6542
6466如果在檢查上述項目後品質仍然似乎有問題,請執行 `/feedback` 並描述您預期的內容與您得到的內容。以這種方式提交的回饋包括對話文字記錄,這是 Anthropic 診斷真實迴歸的最快方式。如果 `/feedback` 在您的環境中不可用,請參閱[報告錯誤](#report-an-error)。6543如果在檢查上述項目後品質似乎仍有問題,請執行 `/feedback` 並描述您預期的結果與實際得到的結果。以此方式提交的意見回饋會包含對話逐字稿,這是 Anthropic 診斷真正退化問題最快的方式。如果您的環境中無法使用 `/feedback`,請參閱[回報錯誤](#report-an-error)。
6467 6544
6468如果 Claude 警告懷疑提示注入,或因懷疑注入而拒絕請求,而警告命名的文字是 Claude Code 自動添加到對話中的上下文而非檔案或網路內容,請執行 `claude update` 並重試。如果更新後警告重複出現,請[報告它](#report-an-error)而不是將標記的內容貼回提示中。在 v2.1.201 之前,Sonnet 5 以相同方式拒絕了一些請求。6545如果 Claude 警告疑似提示詞注入,或因疑似注入而拒絕請求,且警告中指出的文字是 Claude Code 自動加入對話的上下文,而非檔案或網頁內容,請執行 `claude update` 並重試。如果更新後警告仍重複出現,請[回報此問題](#report-an-error),而不要將被標示的內容貼回提示詞中。在 v2.1.201 之前,Sonnet 5 也曾以相同方式拒絕部分請求。
6469 6546
6470## 回報錯誤6547## 回報錯誤
6471 6548