Claude Code 2.1.319
新功能 19 項
自動模式關閉遙測時改走詢問或拒絕,外部關閉後專案無法擅自重啟
在停用遙測或功能旗標的環境下使用自動模式,只要伺服器無法執行安全審查,呼叫就會直接改為詢問你或予以拒絕,不再備援(fallback)回內建分類器。Bedrock、Vertex 與 Foundry 行為維持不變,設 CLAUDE_CODE_AUTO_MODE_SERVER=0 可沿用舊機制。在大型語言模型閘道後方,設 CLAUDE_CODE_AUTO_MODE_SERVER=1,即使指定 CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS 也會啟用伺服器檢查;若後者由受管設定指定,前者也須設在受管設定。閘道網址只設於受管設定、且無法取得伺服器受管設定時,該處的啟用值被忽略的問題已修好。此外,一旦在專案外關閉檢查,個別專案設定或外掛無法擅自重新開啟。⟦保全總機關掉主控鎖後,以前房內開關還能覆寫,現在各房間無法自行重開。⟧
官方原文
Changed auto mode with telemetry or feature flags off, including behind LLM gateways: calls the server can't check are asked about or denied, with no fallback to the built-in classifier; set CLAUDE_CODE_AUTO_MODE_SERVER=0 to keep using it (Bedrock, Vertex and Foundry are unchanged)
Changed auto mode behind an LLM gateway: CLAUDE_CODE_AUTO_MODE_SERVER=1 turns on the server-side check even with CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS set; if managed settings set the latter, they must set the 1 too
Fixed a case where CLAUDE_CODE_AUTO_MODE_SERVER=1 in managed settings was ignored behind an LLM gateway when the gateway's URL is set only there and server-managed settings can't be fetched
Changed auto mode so that a project's settings files or a plugin can no longer switch its server-side check back on once you have switched it off outside the project
終端機支援 MCP 任務背景執行,提供環境變數切換等待模式
當你透過終端機呼叫 MCP(Model Context Protocol,讓 AI 連接外部工具的協定)伺服器時,若工具將呼叫當成任務執行,Claude Code 會立刻將它移至背景運作,並在完成時主動回報結果給 Claude。這項功能現在無須抓取功能旗標即可在終端機運作,包含 Bedrock、Vertex、Foundry、大型語言模型閘道以及停用遙測的環境都能直接使用。如果你希望工具呼叫維持在前景等待任務完成,可以設定環境變數 CLAUDE_CODE_DISABLE_MCP_TASK_BACKGROUND。若完全不想使用這項機制,則可將 CLAUDE_CODE_DISABLE_MCP_TASKS 設為 1 來予以停用。⟦如同將繁瑣的送印差事交給影印部,以前整個人必須守在影印機旁乾等成品;現在單據一送出即可轉身處理其他事務,印妥時櫃檯自會派員遞送通知。⟧
官方原文
Added support for MCP tasks in the terminal: when an MCP server runs a tool call as a task, Claude Code moves it to the background right away and tells Claude the result when it finishes
Added the CLAUDE_CODE_DISABLE_MCP_TASK_BACKGROUND environment variable to make Claude Code wait for an MCP task inside its tool call instead of moving it to the background right away
Changed MCP tasks to work in the terminal without feature-flag fetching (Bedrock, Vertex, Foundry, LLM gateways, DISABLE_TELEMETRY); set CLAUDE_CODE_DISABLE_MCP_TASKS=1 to turn them off
權限提示支援直接拒絕設定,廣義拒絕規則優先於特定詢問
在終端機工作階段、子代理或協作隊友中執行工具時,若不想讓流程卡在權限詢問畫面,可啟用 permissions.denyInsteadOfPrompting 設定。開啟後,原本需要等待手動確認的工具呼叫會直接遭到拒絕,並讓輪次繼續往下執行。當 Bash 或 PowerShell 的指令同時符合特定詢問規則與更廣泛的拒絕規則時,工具會直接拒絕執行該指令,不再跳出詢問提示。另外,Bash 工具在執行 which 指令時,只要參數超出一般的查詢與顯示旗標範圍,便會主動要求授權許可。⟦好似自動售票機切換為夜間直通模式,遇到不支援的冷門支付方式直接退幣跳過,不再卡在付款畫面等待專人排除障礙,以前必須手動逐一確認,現在自動化直接判定。⟧
官方原文
Added permissions.denyInsteadOfPrompting setting: a tool call that would wait on a permission prompt is denied and the turn continues, in terminal sessions, subagents and teammates
Changed a session's exact Bash or PowerShell ask rule to be refused, not asked about, when a broader deny rule covers the command
Changed the Bash tool to ask for permission before running which with flags outside a lookup/display set
新增 API 延遲最佳化指令,同步管理型代理設定範本
當你著手調整 Claude API 程式碼時,現在只要輸入 /claude-api latency-optimize,工具就會協助找出程式中造成使用者等待的瓶頸,並根據你的評估集測試更快的設定組合。針對管理型代理工作階段,修正了技能說明中聲稱主控台網頁設定不適用的錯誤,並收緊了相關憑證與權限範例。此外,/claude-api managed-agents-onboard 中的模板已對齊主控台規格,移除 Performance tuner 範本,重新命名兩項範本,並在五個提示詞不需要網路功能的範本中關閉了搜尋與網頁讀取。⟦恰似車廠技師拿著調校儀器診斷引擎管線,針對耗損嚴重的組件替換輕量零件,去除車內多餘載重以縮短起步加速時間。⟧
官方原文
Added /claude-api latency-optimize to find where your Claude API code makes people wait and try faster settings against your eval
Fixed the /claude-api skill saying Console web settings don't apply to Managed Agents sessions, and tightened its credential and permission examples
Updated /claude-api managed-agents-onboard templates to match the Claude Console: removed Performance tuner, renamed two, and turned off web search and fetch in five whose prompts don't use them
設定檔存檔不再變成空檔,支援單獨關閉功能旗標抓取
當你想維持遙測但停止抓取實驗性開關時,現在可設定環境變數 CLAUDE_CODE_DISABLE_FEATURE_FLAGS,讓每項功能旗標直接套用內建預設值。過去在寫入設定檔數秒內進行的手動修改常被忽略,這個問題已修好。家目錄若殘留舊版檔名而有兩份設定檔,會在標準錯誤輸出說明正在用哪一份。在唯讀資料夾或綁定掛載檔案遇到磁碟寫滿時(一次由一個工作階段存檔),~/.claude.json、設定檔與正在編輯的檔案不再變成空檔或被截斷。Windows 平台儲存設定時則會延長等待其他程式釋放檔案的時間,降低存檔期間程序被終止後 ~/.claude.json 變成空檔的機率。
官方原文
Added the CLAUDE_CODE_DISABLE_FEATURE_FLAGS environment variable, which stops feature-flag fetching without turning off telemetry; every flag then uses its built-in default
Fixed edits to a settings file being ignored when made within a few seconds of Claude Code writing that file
Fixed a config file left at the legacy name hiding your setup with no warning: Claude Code now says on stderr when a home holds two config files, and which is in use
Fixed ~/.claude.json, settings and edited files ending up empty or cut off when the disk fills during a save in a read-only folder or to a bind-mounted file (one session saving at a time)
Improved config saves on Windows: Claude Code waits longer for a file another program has open, so a kill during a save is less likely to leave ~/.claude.json empty
Claude Apps 閘道支援群組共用預算排程、JSON 日誌與登入公告
企業透過 Claude Apps 閘道管理團隊使用時,帳務與維運控制獲得更完整的支援。若開發者隸屬多個群組,管理員可透過 admin.pooled_conflict_rule 與 admin.pooled_priority_order 設定優先扣款的群組預算。閘道執行此版本或更新版本、且開發者無花費上限時,輸入 /usage 可查詢本日、本週與本月開銷。閘道新增 login_notice 可在驗證與登入頁面展示公告;指定 CLAUDE_GATEWAY_LOG_FORMAT=json,維運日誌會轉為 JSON,包含 severity 等級、time 時間與 message 訊息,供從欄位讀取等級的日誌收集器使用。達上限時,錯誤訊息會顯示重設日期;若設定了 admin.blocked_message,才會附上自訂封鎖說明。
官方原文
Added spend for today, this week and this month to /usage for developers behind a Claude apps gateway who have no spend limit, when the gateway runs this version or later
Added admin.pooled_conflict_rule and admin.pooled_priority_order to the Claude apps gateway, to set which pooled group budget pays first for a developer in several groups
Added an optional login_notice setting to the Claude apps gateway that shows an operator-defined message on the gateway's browser verification page and on Claude Code's sign-in screen
Added CLAUDE_GATEWAY_LOG_FORMAT=json to the Claude apps gateway: operational log lines become JSON with severity, time and message, for log collectors that read the level from a field
Improved the Claude apps gateway's spend limit error: it reads "spend limit reached · resets Dec 1", then admin.blocked_message if one is set
Claude Apps 閘道強化啟動警示,明確標註上游名稱與模型設定
部署 Claude Apps 閘道時,可留意啟動警告。其他策略的 availableModels 也允許某策略具名列出的自訂模型識別碼時,會警告。策略缺少 desktopHome,卻依賴 coworkTabEnabled: false 或 chatSessionRetentionDays 時,會在 Claude Desktop 11 月 10 日變更前警告。AWS GovCloud 與其他上游混用,或閘道環境含基礎網址變數,也會警告。受管設定標頭列出閘道不轉發的 Amazon Bedrock 防護欄,且沒有任何 bedrock 上游設定 guardrail,啟動日誌也會警告。呼叫失敗的警告會點名上游,不再只顯示提供者。全數上游為 Amazon Bedrock 時,Claude Desktop 不再提供必然失敗的網路搜尋工具。
官方原文
Added a Claude apps gateway boot warning for a case where another policy's availableModels also allows a custom model id that one policy lists by name
Added start-up warnings to the Claude apps gateway for policies with no desktopHome that rely on coworkTabEnabled: false or chatSessionRetentionDays, ahead of Claude Desktop's November 10 change
Improved the Claude apps gateway's warnings about a failed upstream call: each now names the upstream, not only its provider
Gateway: Added startup warnings for upstreams that mix AWS GovCloud with other upstreams, and for base URL variables in the gateway's environment
Gateway: Added a start-up log warning when managed settings name an Amazon Bedrock guardrail in a header, which the gateway doesn't forward, and no bedrock upstream sets a guardrail
Gateway: Fixed Claude Desktop offering a web search tool that always failed when every upstream is Amazon Bedrock
任務清單新增歷史子代理記錄,改善交回報告與安全防護回報
輸入 /tasks 檢視任務清單時,現在多了「此工作階段稍早項目」區塊,完整列出已結束的子代理,即使項目已移出清單或重新啟動,你隨時都能重新打開並發送訊息。子代理交回報告在非詳細模式下展開時,過去會顯示內部標記與來源註記的問題已經修復。當對話完成歷程濃縮後,子代理不會再被告知去等待未曾負責的背景代理完成通知。若背景代理稍後的報告被拒絕,系統不再無聲丟失回報,而是會提示已被拒絕並告知如何索取。當安全防護措施阻擋了子代理時,Claude 收到的指示改為縮小提示詞範圍重試或主動告知你,不再自行接手該項工作。⟦就像客服中心的主管看板,過往結案的工單依然整齊陳列可隨時調閱追問,交接紀錄抹去內部代碼,出現異常時也能即時亮起警示。⟧
官方原文
Added an "Earlier in this session" row to /tasks that lists finished subagents, so you can reopen one and message it even after it leaves the list or you restart
Fixed subagent hand-back reports showing an internal marker and provenance note when expanded outside verbose mode
Fixed subagents being told after compaction to expect a completion notice for background agents they neither started nor took over
Fixed a case where a background agent's later report was lost silently: the notification now says it was refused and how to ask for it
Changed what Claude is told after safeguards stop a subagent: retry with a narrower prompt or tell you, instead of doing the work itself
循環指令支援容器生命週期警示,自定節奏結束時不再排定喚醒
在雲端工作階段設定 /loop 循環指令時,確認畫面現在會明確提醒你計時器將隨著容器終止而停止,並提供能在容器重啟後持續存活的循環選項。針對自定節奏的循環操作,若單次回合執行完畢且未重新排程,流程會直接結束,不再自動排定備援的喚醒程序;若你的自動化工作流仍依賴舊有機制,可將環境變數 CLAUDE_CODE_LOOP_KEEPALIVE 設為 1 來維持原先行為。⟦好比廚房的倒數計時器,以前時間到了就算無人點單也會按時反覆響鈴,現在只要菜餚出餐完畢便自動歸零靜止,同時在離店前提醒你設備將隨店面打烊斷電。⟧
官方原文
Added a note to /loop confirmations in cloud sessions that a timer stops with its container, with an offer of a loop that survives
Changed self-paced /loop to end when a turn finishes without rescheduling, instead of scheduling a fallback wakeup; set CLAUDE_CODE_LOOP_KEEPALIVE=1 to keep the old behavior
斜線指令支援前導空白,模型名稱錯字主動推薦正確選項
在終端機輸入指令時,打字體驗顯得更加寬容流暢。若你在輸入斜線指令前不小心夾帶了空格、定位鍵(Tab)或換行符號,過去會被當成一般純文字直接送出給 Claude,現在會正確辨識為指令並直接執行。當手滑打錯模型名稱時(例如輸入 opus-5-5),不再誤導你更新工具版本,而是會主動推薦你可能想輸入的正確名稱。在切換模型的 /model 選單中,舊款模型已收進「More models」分組。在使用螢幕報讀機模式回答問題時,輸入「其他」選項可隨時按 Ctrl+G 開外部編輯器。而若執行 /rename 時無法將新名稱寫入工作階段的對話記錄,也會主動警告新名稱可能無法保留。
官方原文
Fixed slash commands typed after a leading space, tab or newline being sent to Claude as plain text instead of running
Fixed a mistyped model name, such as opus-5-5, telling you to update Claude Code instead of suggesting the model you meant
Fixed Ctrl+G not opening the external editor while typing an "Other" answer to a question in screen reader mode
Fixed /rename reporting plain success when the new name could not be saved to the session transcript; it now warns that the new name may not last
Improved the /model picker: older models are now grouped under a "More models" row instead of being listed after the current ones
終端機超連結支援跨行完整開啟,路徑拒絕提示大小寫拼法
終端機介面的可讀性與互動細節在多種終端機環境中獲得改善。在 Ghostty 終端機搭配 tmux(終端機多工器),且從代理管理檢視開啟的工作階段中,Cmd+click 無法打開連結的問題已解決。當 /status 狀態檢視或自動模式計費通知中的說明連結因為視窗寬度而折行時,先前只會開啟前半截網址的臭蟲也已修正。在 macOS 與 Windows 平台上,若存取工作目錄外部路徑遭到拒絕,而該路徑僅與工作目錄內的路徑有字母大小寫的差異,拒絕訊息現在會具體指出該內部路徑的拼法。此外,/stats、/model 與 /sandbox 中的提示說明、次要文字以及拒絕動作訊息,淺灰色對比度皆已提高。⟦跟圖書館翻新導覽標示一樣,以前長網址換行就斷裂失效,燈光太暗還看不清書目說明;現在標牌加深字體顏色,指引細節也更加清晰。⟧
官方原文
Fixed Cmd+click not opening links in Ghostty over tmux in sessions opened from the agents view
Fixed help links in /status and the auto mode billing notice opening only part of the address when they wrap
Improved the refusal for a path outside the working directories on macOS and Windows: when only its letter case differs from a path inside them, the message names that spelling
Improved the contrast of faint gray secondary text, such as hints, details in /stats, /model and /sandbox, and rejected-action messages
/context 摘要表格精簡化,按需載入工具收納節省文字額度
當你想檢查目前對話的內容配置時,輸入 /context 檢視上下文後的開銷明顯降低。過去在終端機執行該指令後,後續每一次對話都會將完整的視覺化網格資訊全部傳送給模型,白白佔用大量 token(AI 處理與計費的文字單位)。現在已修正為僅讀取純文字表格。同時,這份表格的長度也經過精簡最佳化,每個清單最多僅保留占用空間前 10 大的項目,而按需載入的 MCP(Model Context Protocol,讓 AI 連接外部工具的協定)工具在真正被呼叫之前,同一個伺服器底下的工具只會合併列在一列。⟦如同開會報告財務報表,以前每次發言都把全套百頁帳冊反覆投影給與會者,現在只保留前十大開銷摘要,零星項目則併入所屬部門統一呈現。⟧
官方原文
Fixed /context sending its full visual grid to Claude on every later turn; Claude now reads only the table
Improved /context at the terminal so the table Claude reads stays short: each list keeps its 10 largest rows, and MCP tools that load on demand share one row per server until they're called
Artifact 資料庫寫入新增標記保護,網頁抓取提示貼上分享對話
使用 Artifact 資料庫功能時,多項操作提示與檔案保護機制獲得改善。當讀取資料庫並以 out_dir 指定儲存至目標資料夾時,先前遭到拒絕的問題已修復;更新不存在的文件,或服務暫停反覆遭拒的寫入時,錯誤訊息能更具體指引處理方向。針對可能被其他人寫入的資料列,存檔時會建立隱藏標記檔案,若既有檔案缺少該標記(包含舊版匯出的檔案),會予以保留並主動回報。未配備資料庫的 Artifact 也不再徒勞重試資料庫呼叫,並會明確提示重新發布是否有所助益。此外,當使用網頁讀取工具抓取 claude.ai 的分享對話連結時,不再誤報為空白頁面,而是會清楚告知無法讀取並建議直接將對話內容貼至輸入框。
官方原文
Fixed WebFetch describing claude.ai shared-chat links as empty pages; it now says shared chats can't be read and to paste the conversation instead
Fixed Artifact database calls being re-sent to artifacts without a database; errors now say whether republishing helps
Fixed a case where artifact database reads that save to a folder (out_dir) were refused
Improved the artifact database error when an update targets a document that does not exist, and when the service pauses repeated refused writes
Changed artifact database saves of rows others may have written: each file gets a hidden marker file, and existing files without one, earlier versions' exports among them, are left alone and reported
Chrome 擴充功能連線中斷自動檢查,JavaScript 工具結果留存對話
使用 Claude in Chrome 瀏覽器外掛時,中斷復原與網頁操作流程獲得改善。若在操作過程中發生連線中斷,工具不再武斷判定為未連線,而是在重試可能已執行的動作前主動檢查網頁現況,並在短暫斷線後最多等待 6 秒讓該工作階段原本的瀏覽器恢復,之後才會選擇另一個瀏覽器。執行 JavaScript 工具 javascript_tool 的回傳內容長度放寬至 60,000 個字元以內,都會直接留存在當前對話中,不再強制存入外部檔案。此外,內建工具移除了 shortcuts_list 與 shortcuts_execute,兩者原本可列出與執行擴充功能中儲存的捷徑。⟦恰似網購付款時遇上網路瞬斷,系統重新連線後先核對交易紀錄而非重複扣款,短暫等候原連線恢復,交易明細也直接顯示在螢幕無需另開收據。⟧
官方原文
Fixed Claude in Chrome reporting the extension as not connected when the connection dropped mid-action; Claude now checks the page before repeating an action that may have run
Improved Claude in Chrome after a brief disconnect: it waits up to 6 seconds for the session's own browser to return before picking another
Improved Claude in Chrome: javascript_tool results of up to 60,000 characters now stay in the conversation instead of being saved to a file
Removed shortcuts_list and shortcuts_execute, which listed and started shortcuts saved in the extension, from Claude Code's built-in Claude in Chrome tools
自託管執行器工作區隔離命名,非信任環境停用掛鉤與提早自檢
在企業自託管環境中維護執行器時,安全隔離與多專案處理機制獲得加強。當指定 --trust-workspace false 時,除原有防護外,現在也會一併阻擋儲存庫設定檔與技能中的掛鉤程式執行。以 --use-anthropic-git-proxy 或 --configure-git 啟動的執行器,若啟動自檢失敗,現在會先退出,不再先向伺服器註冊。若伺服器持續拒絕展延模型存取權限,執行器會加快重試頻率並在工作階段張貼警告。設定 CLAUDE_RUNNER_CHECKOUT_PATH 時,同一個工作階段中的每個儲存庫都會獲得專屬資料夾,重名目錄會自動以數字尾碼區隔。此外,工作階段結束後不再上傳除錯日誌;失敗工作階段的日誌會留在執行器主機,除非設定 --remove-session-state。
官方原文
Fixed self-hosted runner sessions failing with no explanation when the server keeps refusing to renew model access: the runner now retries sooner and posts a warning in the session
Fixed self-hosted runners: --trust-workspace false now also stops hooks in the repository's settings files and skills from running
Self-hosted runner: Fixed a runner started with --use-anthropic-git-proxy or --configure-git registering before a failed startup check made it exit; it now exits first
Self-hosted runner: Changed CLAUDE_RUNNER_CHECKOUT_PATH so that each repository in a session gets its own folder: a folder name already taken in the session gets -2, -3, … at the end
Self-hosted runner: Removed the end-of-session upload of a session's debug log; a failed session's log stays on the runner host unless --remove-session-state is set
雲端工作階段節點轉移維持權限原則,背景代理在等待發送時持續運行
在雲端執行工作階段時,容器調度與權限規則的銜接防護獲得提升。當工作階段搬移至新的工作節點時,修復了遺失工作階段特定拒絕與詢問規則的缺失;若這類拒絕與詢問規則無法全部保留,就會捨棄工作階段的允許規則,所以你可能會再被詢問一次。輸入 /permissions 不再只回報無法使用,而是會清楚指引規則存放位置與修改方式。在等待訊息清單中點擊立即送出時,正在背景運行的代理不再被強制終止。排程任務遇到名為 memory 的連接器時,現在會自動加上短後綴完成掛載予以保留。此外,自託管環境停滯警告的連結現在會優先選取並具名指出組織預設或具有運作中執行器的環境。
官方原文
Fixed /permissions in cloud sessions replying only that it isn't available; it now says where the session's rules live and how to change them
Fixed cloud sessions losing session-scoped deny and ask permission rules, such as those a PermissionRequest hook adds, when the session moves to a new worker
Changed cloud sessions to drop session-scoped allow rules at a move to a new worker when their deny and ask rules can't all be kept, so you may be asked again
[Cloud sessions] Fixed scheduled tasks silently dropping a connector named memory: runs now keep it, mounted under that name plus a short suffix
[Cloud sessions] Fixed Send now on a waiting message in cloud sessions ending running background agents; they now keep running
[Cloud sessions] Improved the stalled-setup warning on self-hosted environments: its link now prefers your organization's default or an environment with a live runner, and names it
清除畫面保留運作中背景任務,同步網頁任務清單與斜線選單
當你想在終端機整理視野時,輸入 /clear 清除對話畫面不再誤殺正在運作的任務。背景代理、協作隊友、持續運行的工作流程,以及背景代理與協作隊友所屬的前景子代理,其正在執行的指令都會安全保留。在網頁端介面上,背景任務於 /clear 後從清單消失、直到另一項任務開始或結束才恢復的問題已修好。在行動版與網頁版的雲端工作階段中,原本不應公開的隱藏指令不再錯誤出現在斜線選單裡。此外,在無法直接顯示方案限額的雲端工作階段中輸入 /usage,現在會主動提供前往網站設定頁面檢視用量的超連結。⟦好比擦拭辦公室白板時只抹除過期筆記,後方工廠正在運轉的生產線與儀表監控依然持續作業,看板清單也與各部門同步維持連線。⟧
官方原文
Fixed /clear killing running commands of background agents, teammates and workflows that keep running, and foreground subagents of background agents and teammates
Fixed background tasks that keep running after /clear disappearing from the task list in Claude Code on the web until another task started or ended
Fixed hidden commands appearing in the slash command menu of cloud sessions on mobile and web
Improved /usage in cloud sessions: it now links to Settings → Usage on claude.ai in a case where plan limits can't be shown
解除 GitHub 組織連結會關閉「所有儲存庫」審查設定
針對企業方案的管理者後台,權限保護與設定介面獲得多項強化。在程式碼審查服務中解除與 GitHub 組織的連結時,該組織底下的「所有儲存庫」審查設定會同步關閉,重新連結後也會維持關閉狀態,直到管理者手動開啟為止。在已連接 Claude Tag 的企業後台模型管理頁面中,新增了專屬列位並提供直達預設模型管理處的連結。進行 Claude Tag 初始化設定時,若無法完整載入頻道清單,管理員現在無須選取特定頻道即可直接啟動。此外,在儲存自動模式允許規則時加入了並行衝突防護,若偵測到其他管理員在此期間修改了設定,系統會拒絕儲存並跳出提示,避免設定遭到無聲覆蓋。
官方原文
[Code Review] Changed unlinking a GitHub organization to also turn off its All repositories setting in Code Review; it stays off after you relink until you turn it back on
[Claude Tag] Fixed Claude Tag setup blocking launch when the channel list couldn't fully load; admins can now launch without picking a channel
[Claude Tag] Added a Claude Tag row to the Models admin page for Enterprise orgs with Claude Tag connected, linking to where its model defaults are managed
[Claude Tag] Fixed saving auto mode allow rules in Claude Tag admin settings overwriting another admin's changes; the save is now refused with a message
VSCode 擴充套件視窗重新載入計畫保護,完善工作階段與市集管理
在 Visual Studio Code 中重新載入視窗時,Claude 不再擅自執行未經批准的計畫。若先前在計畫模式中途打斷步驟,當工作階段在其他權限模式恢復時,執行會立刻停止並跳出提醒。從擴充套件的網頁分頁開啟雲端工作階段時,透過 /clear,或對已輸入的提示詞使用 Retry、Edit(重試、編輯)所移除的對話回合不再離奇重現;已刪除的工作階段重新命名時,檔案也不會再度復活。移除外掛市集時,確認畫面會即時清查該市集當前已安裝的外掛。在閘道環境下遇到未登入狀態時,提示訊息會以醒目的錯誤樣式呈現並附上登入連結。此外,回覆中指向 Claude 登入、連接器或 API 位址的連結,改以文字顯示該位址,不再於瀏覽器中開啟。
官方原文
[VSCode] Improved the confirmation for removing a plugin marketplace: it now checks which of its plugins are installed at that moment
[VSCode] Fixed cloud sessions opened from the extension's Web tab bringing back turns that /clear, or Retry or Edit of a typed prompt, had removed
[VSCode] Fixed a deleted session's file coming back when that session was renamed in the extension
[VSCode] Fixed Claude carrying out an unapproved plan after a window reload: a step interrupted in plan mode now stops with a notice when the session comes back in another permission mode
[VSCode] Improved the "not signed in" message behind a Claude apps gateway: it now looks like an error and has a Sign in link
[VSCode] Changed links in Claude's replies that point at Claude sign-in, connector or API addresses to show as text with the address, instead of opening in the browser
修正 15 項
自動模式拒絕動作後修正退出狀態,修復狀態誤報與規則過長拒絕
在指令列以非互動模式執行 claude -p 時,若動作原本已因缺乏安全檢查而遭拒絕,純文字與 JSON 格式輸出的退出狀態代碼現在都會正確設為 1,不再錯誤回傳代表成功的 0。當客戶端連續發送切換模型與啟用自動模式的請求時,過去容易被系統誤判拒絕,這項問題已經排除。如果在大型語言模型閘道背後發生審查無法送達工作階段的情況,輸入 /status 也不再錯誤顯示伺服器端已啟用。當權限規則或 autoMode 設定內容極度龐大時,過去會在沒有說明原因的情況下拒絕執行;現在會明確給出解釋,且除非已明定 autoMode 拒絕規則,否則會在終端機提示詢問你。⟦貨物原本就被海關拒收,以前回條卻誤印「成功」,現在改印「失敗」;退件結果沒變,改的是回條不再報錯狀態。⟧
官方原文
Fixed claude -p exiting 0 in auto mode when its actions were refused because no safety check was available: text and JSON output now exit 1
Fixed a case where auto mode was wrongly refused when a client sent a model change and a request for auto mode back to back
Fixed /status showing "Auto mode server: Enabled" when the server-side review isn't reaching the session, for example behind an LLM gateway that drops it
Fixed auto mode refusing actions without saying why when permission rules or autoMode settings are very large: it now explains and, unless autoMode deny rules are set, asks you in the terminal
修復舊版 MCP 握手協定連線、恢復工作階段後的結果回傳與桌面版規則
當你連線至採用舊版握手協定的外部工具伺服器時,過去可能因為宣告了新伺服器專用的擴充項目而連線失敗或傳回空結果,這個問題已經修復。針對連接 claude.ai 連接器的長時間工具呼叫,過去在恢復工作階段後有時會遺失結果回報,現在已能正常取得。若在執行 claude -p --resume 帶有提示詞時缺少對應的工具伺服器,執行程序會以代碼 1 退出,並保留該次呼叫且拒絕後續輸入,避免延後執行的工具呼叫憑空遺失。在 Claude Desktop,以 mcp__claude_ai_Slack 這類連接器終端名稱撰寫的拒絕與詢問規則、disallowedTools 禁用工具清單及 hook(掛鉤,特定事件發生時被觸發的小程式)匹配器被略過的問題也已修正,但須待桌面版納入此版本才生效。
官方原文
Fixed MCP servers on the older handshake failing to connect, or returning empty results, because Claude Code declared an extension that it only uses with newer servers
Fixed a long-running MCP tool call on a claude.ai connector sometimes never reporting its result after --resume
Fixed claude -p --resume with a prompt losing a deferred tool call when its MCP server is missing: the run now exits 1, keeps the call and refuses later input
Fixed a case where deny and ask rules, hook matchers and disallowedTools entries written with a claude.ai connector's terminal name (mcp__claude_ai_Slack) were ignored in Claude Desktop (takes effect once Claude Desktop includes this version)
修復 Bash 權限檢查引號漏判、環境變數前綴繞過與逾時唯讀確認
當你在安全規則中限制 Bash 指令時,多種指令解析漏洞已獲得修復。過去包含引號字詞的指令可能會脫離拒絕與詢問規則的過濾範圍,精心構造的環境變數前綴也可能將部分指令隱藏起來繞過檢查,這些漏判情況都已修復。在接受編輯模式與自動模式下,先前特定 sed 指令可能跳過權限檢查的漏洞也已補強。同時,唯讀指令外面加上單純的 timeout DURATION,例如 timeout 30 rg foo,不再出現多餘的權限詢問。以前唯讀指令包一層 timeout 就會被多問一次,含引號或帶環境變數前綴的指令也可能溜過拒絕規則;現在這幾個漏洞都已修好。
官方原文
Fixed a case where Bash deny and ask rules missed commands written with quoted words
Fixed needless permission prompts for read-only commands wrapped in a plain timeout DURATION, such as timeout 30 rg foo
Fixed a case where a sed command could skip the permission check in accept-edits and auto mode
Fixed a Bash permission bypass where a crafted environment prefix could hide part of a command from permission checks
代理伺服器支援 TLS 檢驗握手修復,明確限制環境變數宣告位置
在代理後方且本機沒有 DNS(查詢網域位址的服務)時,設定 CLAUDE_CODE_PROXY_RESOLVES_HOSTS 後,Monitor 的 WebSocket 監控不再出現無法解析主機名稱的錯誤。主機管理網路時,該變數須設於處理程序環境,不能由設定檔指定。Monitor 遇到 Bash 拒絕規則就禁止監控;遇到詢問規則,對 Monitor 的允許、略過權限模式及自動模式都不能跳過詢問。在 TLS 檢驗代理後方,設 CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC 時,憑證失敗後會與設定的 API 主機進行 TLS 握手,若有設定 http:// 代理才經由它連線,不發送 API 請求。自動憑證修復不再於僅設 ALL_PROXY 時觸發,須將 HTTPS_PROXY 設為代理的 http:// 位址。
官方原文
Fixed Monitor's WebSocket watch failing with "could not resolve" behind a proxy when CLAUDE_CODE_PROXY_RESOLVES_HOSTS is set and the machine has no DNS of its own
Fixed a case where certificate errors behind a TLS-inspecting proxy persisted when CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC was set. With it set, Claude Code now makes a TLS handshake with the configured API host after a certificate failure, through your http:// proxy if one is set; it sends no API request
Changed Monitor's WebSocket watch to follow a rule on every Bash command: a deny refuses it, and under an ask rule an allow on Monitor, bypass mode or auto mode no longer skips the prompt
Changed CLAUDE_CODE_PROXY_RESOLVES_HOSTS so that settings files can no longer set it where the host manages the network; set it in the process environment
Changed the automatic certificate repair behind a TLS-inspecting proxy: it no longer runs when ALL_PROXY is the only proxy variable set. Set HTTPS_PROXY to the proxy's http:// URL instead
帳號切換自動警示 Console 計費組織,修復 401 憑證刷新連鎖錯誤
當你的個人帳號登入過期時,若系統自動改用 ant auth login 的登入狀態繼續執行,終端機會跳出警示,並在 Claude Code 啟動時指名費用將計入哪一個主控台組織。在登入機制方面,修復了持續遭遇 401 未授權錯誤的請求在每次重試時都會刷新登入,進而導致其他終端機工作階段同步引發 401 錯誤的連鎖問題。在 /login 成功畫面按下確認鍵後的半秒卡頓也已排除,對話框會立即關閉並在背景刷新。此外,若終端機在閘道的登入已過期,不再持續發送會被閘道拒絕並記錄無效權杖(invalid_token)的遙測與受管設定請求。以前一個卡住的請求會讓其他工作階段跟著出現 401;現在這個問題已經修好。
官方原文
Added a warning when your claude.ai login ends and Claude Code continues on the sign-in from ant auth login, which bills usage to your Claude Console organization
Added a line at startup naming the Claude Console organization that is billed in a case where Claude Code uses the sign-in from ant auth login
Fixed a request that kept failing with a 401 refreshing your login on every retry and causing 401s in your other sessions
Fixed a ~0.5s hang after pressing Enter on the /login success screen: the dialog now dismisses immediately and the post-login refresh runs in the background
Fixed a terminal whose Claude apps gateway sign-in had expired sending telemetry and managed-settings requests that the gateway refused and logged as invalid_token
修復目錄包含 HEAD 檔案時的差異比對失敗與多輪編輯空白問題
檢視修改內容時,若 Claude Code 執行所在資料夾有名為 HEAD 的檔案或資料夾,claude.ai 與行動版原本會載不出工作階段的變更;若 Git 儲存庫最上層有這類檔案或資料夾,/diff 則會顯示無法使用。此外,在已有至少 64 個回合編輯過檔案的工作階段中,原本點開 /diff 面板可能呈現一片空白。上述載入失敗與空白面板問題已修好。
官方原文
Fixed a session's diff failing to load on claude.ai and the mobile apps when the folder Claude Code runs in has a file or folder named HEAD
Fixed /diff showing "Diff unavailable" when a git repository has a file or folder named HEAD at its top level
Fixed the /diff pane opening blank in sessions where 64 or more turns edited files
修復程式碼回溯在分支建立前之還原錯誤,堵住目錄符號連結與工作樹漏洞
當你想使用 /rewind 還原程式碼時,版本切換的安全性與穩定度獲得顯著強化。若嘗試將專案回復至執行 /branch 建立分支之前的檢查點,過去容易出現未還原任何檔案的錯誤,現在已能精準還原。在路徑處理上,可能透過目錄符號連結(symlink,指向另一個位置的捷徑檔)還原或刪除檔案的問題已修好。同時,也修復了建立 worktree(工作樹,Git 讓同一專案平行開多份副本的功能)時可能逃逸出安全沙盒的漏洞。以前執行回溯可能卡在分支邊界,現在跨分支還原的問題已經修好。
官方原文
Fixed /rewind failing with "No files were restored" when restoring code to a checkpoint from before /branch
Fixed a case where /rewind could restore or delete a file through a directory symlink
Fixed a sandbox escape when creating a worktree
網路檔案系統啟動掃描修復,完善檔案寫入與背景指令輸出捕捉
在 Linux 平台的網路檔案系統(包含 NFS、SMB 與 Lustre 等)開啟專案時,啟動時無端列出專案所有檔案的異常已經排除。檔案寫入工具在覆寫檔案時,若讀取原檔失敗,不再將該回合直接視為拒絕執行。在指令執行方面,瞬時執行完畢的背景 Bash 指令過去容易在標記完成時丟失輸出內容,以及指令結束前一刻寫入的檔案被變更比對遺漏的問題,皆已獲得修正。使用筆記本編輯工具時,若在權限詢問畫面停留期間筆記本內容發生更動,已修正修改到錯誤儲存格的狀況。此外,claude purge 與舊工作階段清理,都會重試未能完整刪除的資料夾,仍存在時回報錯誤。
官方原文
Fixed a case where Claude Code listed every project file at start on Linux for projects on a network file system (NFS, SMB, Lustre and similar)
Fixed Write ending the turn as a refusal when it couldn't read the file to overwrite
Fixed background Bash commands that finish almost instantly losing their output while being reported as completed
Fixed the Bash tool's diff of changed files missing a file that the command wrote just before it ended
Fixed a case where NotebookEdit changed the wrong cell when the notebook changed while a permission prompt was open
Improved claude purge and the clean-up of old sessions to retry a folder that could not be fully deleted, and to report it as an error if it remains
伺服器拒收回饋後不再跳出問卷,第三方閘道不再草擬回饋
伺服器拒絕接收你所屬組織的意見回饋後,終端機以前仍會持續跳出滿意度問卷、Claude 草擬的回饋以及 /feedback,這個問題已經修好。此外,在第三方閘道上回饋送不出去,Claude 也不再草擬這類回饋。⟦就像大樓門禁已註記謝絕訪客調查,以前各辦公室仍會被塞入問卷單,現在一律在櫃檯全數阻絕,讓工作環境徹底回歸清靜。⟧
官方原文
Fixed Claude-drafted feedback, surveys and /feedback continuing to appear after the server refused feedback for your organization
Fixed Claude drafting feedback on third-party gateways, where it can't be sent
Agent SDK 強化錯誤回報與遙測,中斷後才完成的工具仍觸發掛鉤
使用 Agent SDK 開發自動化應用時,除錯與監控變得更加精準。發送給客戶端的通知訊息不再發生文字丟失,且當主機磁碟已滿時,能直接收到具體的失敗原因,而非籠統的退出代碼。遙測指標也更為準確,預先啟動的處理程序不再預先計入工作階段計數,只有在真正被宣告採用時才計數一次。詳細 beta 追蹤現在會向要求用戶端憑證的收集器提供 CLAUDE_CODE_CLIENT_CERT。新訊息中斷回合後才完成的工具呼叫,仍會執行 PostToolUse 掛鉤(工具完成後觸發的小程式),最多給掛鉤 10 秒完成。若先前在計畫模式中斷執行,當切換至其他權限模式恢復時,環境變數 CLAUDE_CODE_RESUME_INTERRUPTED_TURN 不會再無端重新執行該回合。
官方原文
Fixed a case where text was dropped from informational messages sent to SDK clients
Fixed a case where Agent SDK hosts got a generic exit-code error instead of a failed run's own error message when the disk was full
Fixed CLAUDE_CODE_RESUME_INTERRUPTED_TURN re-running a turn that was interrupted in plan mode when the session resumes in another permission mode
Fixed detailed beta tracing not presenting CLAUDE_CODE_CLIENT_CERT to collectors that require a client certificate
Fixed the OpenTelemetry claude_code.session.count metric counting Agent SDK prewarm() processes that were never claimed; a pre-started process now counts once, when it is claimed
Changed PostToolUse hooks to run, with up to 10 seconds to finish, on tool calls that finish after a new message interrupts the turn
外掛更新自動安裝新相依套件,目錄獲信任後才登記外掛市集
當你安裝的外掛發布新版本時,無論是背景自動升級、手動輸入 claude plugin update,或在 /plugin 選「Update now」,都會安裝新版新增的相依套件。透過 --add-dir 引入的目錄,要先接受它自己的信任對話框,才會登記外掛市集。外掛所提供的子代理狀態列指令現在能正確展開環境變數 ${CLAUDE_PLUGIN_ROOT},方便直接參照外掛本身的腳本。而在執行外掛評估時,針對禁止呼叫的工具,不再建議永遠無法通過的 max: 0。
官方原文
Fixed claude plugin eval warnings suggesting max: 0 for a tool that must not be called, which could never pass
Fixed background plugin auto-update not installing a dependency added by the updated plugin version
Fixed ${CLAUDE_PLUGIN_ROOT} not being substituted in a plugin-provided subagentStatusLine command, which can now reference the plugin's own scripts
Fixed claude plugin update and /plugin "Update now" not installing dependencies added by the new plugin version
Changed --add-dir directories to register plugin marketplaces only once that directory's own trust dialog has been accepted
mod 熱重載修正檔案監聽,沙盒模式限制巢狀目錄載入
開發與除錯 mod(自訂模組)時,檔案剛出現就刪除、之後又放回,原本可能讓熱重載漏看。熱重載是不用重啟就套用變更的機制;在 .claude/skills 中,這兩種檔案變動現在都不再漏判。在雲端工作階段中,若連續發送三則訊息而未回答模組提問,也不會再導致該工作階段的 mod 熱重載意外關閉。另外,在啟用 Bash 沙盒的環境下,位於啟動目錄下層的技能資料夾不再預設自動載入,你必須在該子目錄啟動工具或透過 /cd 指令切換至該處才會載入。
官方原文
Fixed a mod's hot reload in .claude/skills missing a file that was deleted just after it appeared, and missing its return
Fixed mod hot-reloading turning off for the session when you typed three messages instead of answering its question in a cloud session
Changed nested skill loading: with the Bash sandbox on, skills in .claude/skills folders below the starting folder load only if you start Claude Code there or /cd there
代理管理介面保留未送出草稿,修復背景對話回覆與預覽格式
在終端機的多代理管理檢視中,切換與操作不同工作階段的體驗獲得改善。當背景工作階段正停留在權限詢問提示時,在管理檢視發送回覆不再誤以為已經送出;你的輸入內容會保留在文字框中,並主動提示你切換進入該工作階段進行回覆。多個管理檢視視窗在同目錄執行時,其中一個視窗離開或因更新而重啟時,不會再誤刪或載入其他視窗儲存的草稿文字。在指令預覽方面,過長的指令、執行結果與狀態列(statusLine,顯示在終端機最底下的狀態列)在截斷時會加上省略號,等待核可指令中的粗體、反引號與標籤格式也獲得完整保留。上述回覆、草稿與預覽問題已修好。
官方原文
Fixed the agents view appearing to send a reply to a background session waiting on a permission prompt; the reply now stays in the box with a hint to open the session and answer
Fixed agent view removing a draft saved by another agent view in the same directory when exiting
Fixed a case where agent view came back with another agent view's input text after restarting itself for an update
Fixed the agents view preview cutting off long commands, results and status lines without an ellipsis, and dropping **, backticks and tags from commands waiting for approval
遠端控制初次啟動互動判斷,無換行管線支援與額度解除同步
透過終端機執行 claude remote-control 進行遠端連線時,腳本與自動化整合的錯誤處理獲得補強。在初次啟動遇到提問卻未獲得回應時(例如在背景服務、批次作業或按下中斷鍵中執行),工具不再靜默退出且傳回代表成功的 0,而是會清楚說明原因並回傳錯誤代碼 1;若透過管線輸入未附帶換行符號的字母 y,現在也能正確視為同意確認。在跨裝置體驗上,當用量限制在外部解除後,其他裝置上的遠端工作階段不再持續卡在「達到限制」狀態;Claude 傳送單一檔案時,iOS App 偶爾缺少檔案卡片的問題已修好。此外,修復了透過環境變數導向閘道啟動的閒置背景工作階段,在更新後意外脫離閘道連線的狀況。
官方原文
Fixed Remote Control sessions still showing "Limit reached" on other devices after a usage limit was lifted outside the session
Fixed the file card sometimes missing in the Claude iOS app when Claude sent a single file
Fixed a case where idle background sessions started through a shell-exported LLM gateway left the gateway after an update
Fixed claude remote-control exiting silently with status 0 when a first-run question gets no answer (scripts, services, batch jobs, Ctrl+C); it now says why and exits 1
Fixed claude remote-control ignoring a piped y that has no newline after it at the first-run question; it now counts as a yes
VSCode 擴充套件輸入框長提示詞保護,修復聽寫與聊天面板效能
在 Visual Studio Code 編輯器中使用 Claude 擴充套件時,聊天面板的互動效能獲得全方位改善。當輸入超過 50,000 個字元的超長提示詞時,內容不再遭到無聲截斷,而是會保留在對話框並給出提示,貼上超量文字時也會明確拒絕。點擊問卷或回報問題按鈕時,不再意外將未完成的草稿送出。執行聽寫指令 claude-vscode.toggleDictation 只會作用於目前使用的 Claude 檢視,再次按下即可關閉。拖曳路徑含有非常長的連續 / 的檔案時不再導致面板凍結,且回覆串流含大量未閉合、每個都比前一個短的 $$ 數學區塊時也不再卡頓。此外,大型工作區的診斷工具現在會自動略過無問題檔案,支援指定嚴重程度門檻並回傳精簡 JSON 格式。
官方原文
[VSCode] Fixed prompts over 50,000 characters being cut off silently: the prompt now stays in the chat box with a notice, and a paste over the limit is refused with a notice
[VSCode] Fixed a click on the survey or "Report a problem" buttons sending the unfinished prompt
[VSCode] Fixed a possible chat panel freeze when a dropped item's path contains a very long run of "/" characters
[VSCode] Fixed the claude-vscode.toggleDictation command starting dictation in every open Claude view at once; it now acts only in the view you are using, and a second press stops it
[VSCode] Fixed the chat panel slowing down while a reply with many unclosed $$ math fences, each shorter than the last, streams in
[VSCode] Improved the chat panel's diagnostics tool for large workspaces: it leaves out files with no problems, returns compact JSON, and accepts an optional minimum severity