usage

Claude Code 2.1.316

工具與目錄
在這頁

新功能 6 項

01

Slack 跨頻道畫布可接續編輯,參與方式設定更名

在 Slack 跨組織討論或跨頻道共用畫布時,你可能遇過回覆沒人接、Claude 拒絕編輯的狀況。以前 Claude 在頻道自己建立的 Canvas 畫布,另分享至其他頻道或私訊後,就會拒絕在原頻道編輯或追加內容;現在已恢復支援。在兩家公司皆啟用 Claude 的 Slack Connect 討論串中,未特別標註的回覆也不再因轉發至另一家公司的應用程式而漏接。雲端排程的即時清單現在能直接更新當次發出的頂層訊息,避免進度卡在未完成狀態。頻道 Configure 設定頁與 Claude Tag 管理設定中的自動回應開關,都改為「Claude 參與方式」選單。

官方原文

[Claude Tag] Fixed Claude refusing to edit or append to a canvas it made in a Slack channel, from that channel, once the canvas was also shared to another channel or a DM

[Claude Tag] Fixed untagged replies going unanswered in a Slack Connect thread when both organizations have installed Claude and Slack delivered the reply to the other organization's app

[Claude Tag] Fixed a cloud scheduled task's live status checklist in Slack staying half-done; a run can now edit the top-level messages it posted during that run

[Claude Tag] Changed a Slack channel's Respond automatically switch to a "How Claude participates" choice on the channel's Configure page and in Claude Tag admin settings

02

雲端工作階段支援 MCP 表單填寫,密鑰管理與路徑顯示最佳化

當你透過瀏覽器切換雲端工作階段處理專案,各種互動提示與環境權限有了明確回饋。現在當 MCP(讓 AI 連接外部工具的協定)伺服器提出表單請求,介面會跳出卡片讓你填寫或拒絕,不再無預警直接取消。切回雲端或 Remote Control 遠端控制工作階段時,若訊息還在同步更新,畫面會顯示「Catching up…」。企業版成員能在個人雲端環境新增或刪除網路密鑰,不再限制只能檢視。雲端工作階段的 Files 檔案面板搜尋,修好了 Claude 切換目錄後把資料夾顯示成 ../.. 路徑的問題,改為顯示自專案根目錄起算的路徑。變更面板的省略說明也收納成分支名稱旁的徽章。

官方原文

[Cloud sessions] Added a form card to cloud sessions, so you can fill in or decline a form an MCP server asks for instead of the request being canceled without you seeing it

[Cloud sessions] Added a "Catching up…" line that shows while a cloud or Remote Control session you switch back to is still bringing its messages up to date

[Cloud sessions] Changed network secrets so Enterprise members can add and delete them on their own cloud environments, instead of only viewing them

[Cloud sessions] Improved the Changes pane for cloud sessions: the note about what the list leaves out is now a badge beside the branch name, not a row above the diff

[Cloud sessions] Fixed file search in a cloud session's Files pane showing folders as ../.. paths after Claude changed directory; results now show their path from the project's root

03

程式碼審查改採結構化卡片,分析頁新增嚴重度統計圖表

當你提交程式碼請 Claude 協助把關專案品質,產出的審查摘要與分析統計現在一目了然。從桌面版或網頁的 Code 分頁發起 /code-review 時,雲端與 claude remote-control 遠端控制工作階段會直接顯示結構化的審查結果卡片,取代純文字清單。分析頁面的嚴重程度卡片會顯示所選期間的問題總數、每日依嚴重程度堆疊的圖表,以及各級數量。執行 /ultrareview、雲端工作階段或雲端代理找不到 GitHub 遠端關聯時,訊息會指引你到 https://github.com/new 建立儲存庫;其中 /ultrareview 也不再推薦會被 gh 拒絕的指令。

官方原文

Improved /code-review started from the Code tab in Claude Desktop or on the web: cloud and claude remote-control sessions now show the findings card, not a plain-text list

Improved the messages shown when /ultrareview, a cloud session or a cloud agent finds no GitHub remote: they now say to create a repository at https://github.com/new, and /ultrareview no longer suggests a gh command that gh rejects

[Code Review] Added a findings-by-severity card to the Code Review analytics page, showing the period's total findings, a daily chart stacked by severity, and each severity's count

04

憑證錯誤提示列出具體解法,保留私有 CA 所需的交叉憑證

當工具在企業內網或受管網路發送請求,遇到連線驗證失敗時不再只丟出一行模糊代碼。⟦跟海關查驗護照上的簽證戳章一樣,如果發現缺少中介審核章,系統會直接指出漏蓋了哪一關,而不是冷冷關閉閘門。⟧現在遇到 SSL 憑證錯誤,終端機會直接分析可能原因,例如伺服器遺漏了中介憑證,並附上具體的修正指引。針對需要內部私有憑證的架構,可啟用環境變數 CLAUDE_CODE_DISABLE_LOOPED_CROSS_CERT_DROP,保留系統中循環互簽的交叉憑證。另外,當伺服器回傳的壓縮資料中途截斷或損毀時,網路請求也不會再無限期卡死。

官方原文

Added CLAUDE_CODE_DISABLE_LOOPED_CROSS_CERT_DROP to keep system cross-certificates that certify each other in a loop, for servers whose private CA needs one

Fixed some network requests hanging when a compressed response was cut off or corrupted

Improved SSL certificate errors to name the likely causes, among them a server that leaves out an intermediate certificate, and the fix for each

05

閘道器支援群組共用預算,階層政策與 Bedrock 防護標籤上線

管理團隊花費與權限時,Claude apps 閘道器有了新選項。花費限制管理 API 的 pooled_budget 可設群組每月共用預算,各人仍有個別上限。managed.policy_mode: layered 套用所有相符政策,上方覆蓋下方。Bedrock 上游的 guardrail.input_tagging 加上提示詞攻擊篩選標籤;all_messages_and_system 也替系統提示詞加標籤。請求內每個模型都會檢查 availableModels、deniedModels、models;被封鎖時回傳 400 錯誤並指出對應欄位。強制使用閘道器時,終端機的 claude auth login 會顯示其登入入口。Team/Enterprise 從 Anthropic API 取得的受管理設定免確認套用;儲存副本驗證失敗就拒用。

官方原文

Added pooled group budgets to the Claude apps gateway: one monthly budget that a group's members share, on top of each member's own limit, set with pooled_budget on the spend limits admin API

Added managed.policy_mode: layered to the Claude apps gateway: every policy that matches a developer applies, each merged over the ones listed below it, not only the first

Added guardrail.input_tagging on Claude apps gateway Bedrock upstreams, which wraps prompts in the input tags that an Amazon Bedrock guardrail's prompt attacks filter needs; all_messages_and_system also tags the system prompt

Fixed the Claude apps gateway not checking every model a request names against availableModels, deniedModels and models; a request that names a blocked model now gets a 400 naming the field

Fixed claude auth login refusing to run where managed settings require a Claude apps gateway; in a terminal it now shows the gateway sign-in

Changed server-managed settings for Team and Enterprise logins: settings fetched from Anthropic's API now apply without an approval prompt, and a stored copy that doesn't verify is refused

06

子代理可設定預設運算力度,支援關閉深度思考關鍵字

當你指派背景子代理分頭調查程式庫,任務的思考深度與模型繼承現在能精細掌控。如果團隊不想觸發額外的高強度推論,可透過環境變數 CLAUDE_CODE_DISABLE_ULTRATHINK 直接停用 ultrathink 關鍵字。針對後台衍生出的子代理(處理專案分支任務的助手),只有在其他來源都未指定運算力度時,才會使用 CLAUDE_CODE_SUBAGENT_EFFORT,取代預設繼承主工作階段力度的行為。繼承了上層子代理專屬模型的助手,在被背景通知或新訊息喚醒後,也能持續鎖定指定模型,不會意外跳回主對話模型。

官方原文

Added CLAUDE_CODE_DISABLE_ULTRATHINK, which turns the ultrathink keyword off

Added CLAUDE_CODE_SUBAGENT_EFFORT to set the effort level subagents run at when nothing else names one, instead of inheriting the session's

Fixed sub-agents that inherited a parent sub-agent's model moving to the main model when a background job or message woke them

效能 1 項

07

受限工作階段不再上傳目錄外檔案,比對與搜尋效能改善

當你在大型專案中比對程式碼變更或搜尋檔案,檔案上傳範圍與回應速度更為可靠。⟦恰似廠區門禁嚴格核對出入清單,即使持有特殊通行證,非指定作業區的機密文件一律禁止攜出大門。⟧以往在 --restricted 受限工作階段中,即使工作目錄外的檔案有 Read 讀取允許規則涵蓋,仍不該被上傳;現在已修好這項上傳限制。在大型儲存庫輸入 /diff 查看差異時,每次重新整理通常少執行一個掃描整個儲存庫的 Git 命令,並在 Git 反應變慢時自動拉開重新整理間隔。針對 Windows 使用者,Grep 與 Glob 搜尋工具在觸發逾時停止時,也不會再因搜尋行程未順利結束而無止境卡住畫面。

官方原文

Fixed --restricted sessions uploading files from outside the working directories when a Read allow rule covered them

Fixed Grep and Glob never returning when the search process is killed at the timeout but does not exit, seen on Windows

Improved /diff on large repositories: each refresh usually runs one fewer full-repository git command, and refreshes are spaced out when git is slow

修正 6 項

08

VSCode 面板支援閘道登入,思考彩虹特效與介面控制項修復

在 VSCode 側邊欄與 Claude 協同撰寫程式碼時,登入內部服務與微調思考強度有了更完整的介面支援。現在聊天面板可直接登入企業的 Claude apps 閘道器,無須另外開啟終端機。在對話輸入 ultrathink,會讓當回合採用 xhigh 極高思考力度,並在聊天輸入框呈現彩虹效果。模型設定帶有 [1m] 標記時,Effort 思考力度滑桿、Ultracode 開關與模型名稱也都恢復顯示。設定檔出錯時,已儲存的 /btw 提問紀錄不會再被意外清除。若先前已指定手動審核修改,重新載入編輯器後也不會誤跳回自動模式。

官方原文

[VSCode] Added sign-in to a Claude apps gateway from the chat panel, with no terminal needed

[VSCode] Changed ultrathink to run its turn at xhigh effort and show in a rainbow in the chat box, as in the terminal

[VSCode] Fixed the missing Effort slider, Ultracode switch and model name when the model setting has the [1m] tag, such as opus[1m]

[VSCode] Fixed saved /btw side-question history being deleted too early while a settings file has errors

[VSCode] Fixed a conversation coming back in Auto mode after a reload or restart when its plan was approved with "Yes, and manually approve edits"

09

Bash 工具完整保留別名與函式,背景命令退出不再殘留

當你透過終端機交由 Claude 執行腳本,自訂 Shell(執行指令的環境)的相容性有了修正。macOS 或 Linux 上,Claude Code 因憑證遭拒或雲端工作階段歸檔而自行退出時,不再留下仍執行中的命令。Bash 工具不再弄亂或遺失含換行的別名,但不含 Git Bash;減號開頭的函式名稱也已修好。匯出 SHELLOPTS 的腳本不再執行第一句就停擺。Windows 的 Git Bash 若在 rc 啟動設定檔同時設定 errexit 與 pipefail,且只定義 winpty 別名或沒有別名,也不再遺失別名與函式。PowerShell 掛鉤(特定事件觸發的小程式)的指令以型別轉換、param、using 或屬性開頭時,也能依結束代碼 2 阻擋執行。

官方原文

Fixed shell commands being left running on macOS and Linux when Claude Code exits by itself, for example when credentials are refused or a cloud session is archived

Fixed bash aliases with line breaks in their value (except in Git Bash), and functions whose names start with a dash, being garbled or lost in the Bash tool's shell

Fixed bash scripts started from the Bash tool stopping after their first command when SHELLOPTS is exported

Fixed PowerShell hooks not blocking on exit code 2 when the command begins with a type cast, param, using or an attribute

Windows: Fixed the Bash tool losing your aliases and functions in Git Bash when the rc file sets errexit and pipefail and only winpty aliases, or none, are defined

10

自動模式權限規則防意外覆寫,中斷狀態與伺服器判定修復

在自動模式下讓 Claude 連續執行任務時,權限清單與中斷原因不該讓你摸不著頭緒。受管理的 autoMode.allow 允許清單未含 "$defaults" 時,不再因主應用程式的 --settings、首次在 /permissions 加規則或 /auto-mode-setup,而加回內建例外;排程任務提示的內建規則也不會因此被移除。雲端工作階段與排程任務若因伺服器未回傳安全判定、由自動模式停止該回合,會確實標記失敗。背景代理仍在執行時,claude -p 文字輸出也會交代自動模式停止回合的原因。由主應用程式啟動、經代理伺服器或 LLM 大型語言模型閘道器連線且關閉實驗性測試功能時,環境變數 CLAUDE_CODE_AUTO_MODE_SERVER=1 不再被忽略。

官方原文

Fixed a managed autoMode.allow list without "$defaults" getting the built-in exceptions back from a host app's --settings, a first rule added in /permissions, or /auto-mode-setup

Fixed cloud sessions and cloud scheduled tasks not being marked as failed when auto mode stopped a turn because the server returned no safety verdict

Fixed claude -p text output sometimes not saying why auto mode stopped a turn when a background agent was still running

Fixed CLAUDE_CODE_AUTO_MODE_SERVER=1 being ignored in sessions started by a host application (such as Claude Desktop) behind a proxy or LLM gateway with experimental betas turned off

Changed auto mode so that an autoMode.allow list without "$defaults" no longer removes the built-in rule on scheduled-task prompts

11

Opus 4.8 快速模式排定退場,三個模型別名修復自動備援

當你在多個雲端平台切換不同版本的 Claude 模型,版本遷移與容錯機制有了具體指引。Opus 4.8 快速模式自 2026 年 10 月 30 日起棄用,將於 11 月 30 日移除;移除後的快速模式請求會報錯,不會回退標準版,需遷移至 Opus 5.5 才能保有加速。在 Vertex AI 與 Amazon Bedrock 上,sonnet、opus、haiku 這三個模型別名,若最新版尚未向帳號或區域開放,會切換至相容舊版提供備援,不再於工作階段中途報錯。若用 /model <id> 輸入此版本未辨識的型號,也會主動跳出警告,提醒自動壓縮將預設採用 200K 的上下文視窗容量,也就是可容納的對話量。

官方原文

Deprecated fast mode for Opus 4.8 as of October 30, 2026; it will be removed on November 30, 2026. After removal, fast mode requests on Opus 4.8 return an error and do not fall back to standard Opus 4.8. Migrate to Opus 5.5 to keep the speedup

Fixed sonnet, opus and haiku on Vertex AI and Amazon Bedrock showing an error mid-session instead of switching to an older model when the newest is not yet available to the account or region

Fixed /model <id> not warning when the model isn't recognized by this version and auto-compact will assume a 200K context window

12

自架執行器與外掛環境修復,改善 SDK 與產物規則載入

自行架設執行環境或撰寫外掛整合時,跨機器狀態與規則顯示不再莫名出錯。自架執行器的工作階段換機後,MCP(讓 AI 連接外部工具的協定)伺服器開關狀態不再遺失;按下停止並替換程序後,也不再答覆工作中傳入的舊訊息。外掛的憑證環境變數設為 1 等開關值時,headersHelper 腳本收到的 CLAUDE_PLUGIN_ROOT 與伺服器網址不再損毀。SDK(軟體開發工具包)的 register_repo_root 請求,在 CLAUDE_CODE_ADDITIONAL_DIRECTORIES_CLAUDE_MD=1 下能載入工作目錄外的 CLAUDE.md。產物工具不再把 self 自身層級的資料庫存取規則顯示為問號;拒絕會移除這些規則的重新發布時,也會引用這些規則。

官方原文

Fixed plugin MCP headersHelper scripts receiving a corrupted CLAUDE_PLUGIN_ROOT and server URL when a credential-named environment variable was set to a switch value such as 1

Fixed the SDK register_repo_root control request not loading the CLAUDE.md of a directory outside the working directory (with CLAUDE_CODE_ADDITIONAL_DIRECTORIES_CLAUDE_MD=1)

Fixed the Artifact tool showing ? for artifact database access rules at the self level, and not quoting those rules back when it refuses a republish that would drop them

Self-hosted runner: Fixed a message sent while Claude was working being answered after a Stop, once the session's process had been replaced

Self-hosted runner: Fixed an MCP server's on/off switch sometimes being lost when a session moved to a new machine

13

提示詞輸入清理不可見字元,介面提示與問卷送出機制修正

日常在命令列輸入提問與檢視提示時,多處影響打字節奏的介面細節得到了改善。以前從網頁複製文字若夾帶不可見字元,常需連按兩次 Enter 才能送出;現在普通提問第一次按下就會清除這些字元並發送,指令仍保留審查確認步驟。語音輸入提示不再於單一工作階段內耗盡三次顯示額度,未綁定按住說話的熱鍵時,也不再出現空白鍵帽。在窄視窗終端機初次啟動時,安全說明與終端機設定說明都不再漏字。若對話尚在儲存時執行過 /clear 清除或 /resume 接續指令,還原對話時也能恢復原本的任務計畫。企業問卷輸入 1 或 0 後,不再因短暫停頓就送出,必須按 Enter 才會確認。

官方原文

Fixed prompts containing invisible characters needing a second Enter to send; plain prompts now send cleaned on the first Enter, and commands still wait for review

Fixed the "hold space to speak" hint using up its three showings in one session, and showing an empty key when push-to-talk is unbound

Fixed a rare case where resuming a conversation did not restore its plan, when /clear or /resume had been run while part of that conversation was still being saved

Fixed first-run setup dropping words from the security notes and the terminal-setup explanation in narrow terminals

Fixed the Enterprise survey card taking a typed 1 or 0 after a short pause; a typed answer now needs Enter