usage

Claude Code 2.1.281

工具與目錄
在這頁

新功能 19 項

01

Claude 應用程式閘道支援 Bedrock 角色切換與安全護欄

企業在雲端集中控管模型流量時,閘道在上游設定中新增了 assume_role 欄位。這讓閘道能透過 STS 取得臨時憑證呼叫 Amazon Bedrock,甚至跨到其他 AWS 帳號,並支援為每位開發者提供獨立的工作階段。同時上游也支援配置 guardrail: {id, version},強制所有請求通過指定的安全護欄檢查。⟦如同總部派出專車前往各分部載貨時,能換上該廠區的專屬通行證,且出發前一律通過安檢門過濾違規物品。⟧

官方原文

Added assume_role on Claude apps gateway Bedrock upstreams: the gateway calls Bedrock as an IAM role it assumes through STS, in another AWS account if needed, optionally one session per developer

Added guardrail: {id, version} on Claude apps gateway Bedrock upstreams to apply an Amazon Bedrock guardrail to every request sent through them (set it on all Bedrock upstreams or none)

02

Claude 應用程式閘道擴充桌面端原則與固定遙測標籤

公司統一配置開發環境時,閘道的桌面端原則區塊新增了多項控管鍵。管理者能設定禁止讀取工作目錄外的檔案(blockReadsOutsideWorkingDirectories)。同時也支援強制停用略過權限模式(disableBypassPermissionsMode)。閘道設定檔還可透過 telemetry.resource_attributes 為登入與工作階段加上固定遙測標籤。若受管 MCP 伺服器的路徑包含目前桌面端不支援的開頭格式,閘道會直接拒絕啟動以確保安全。

官方原文

Added Claude apps gateway support for newer Claude Desktop keys in desktop policy blocks, including blockReadsOutsideWorkingDirectories and disableBypassPermissionsMode

Added telemetry.resource_attributes to the Claude apps gateway config, to put fixed labels on the telemetry of Claude Desktop and /login sessions

Changed Claude apps gateway to refuse to start when a managedMcpServers entry's envHelper path starts with \??\ or /??/, a path form current Claude Desktop refuses to run

03

新增 attribution 設定,可隱藏提交與 PR 的署名資訊

想要讓程式碼版本庫的歷史紀錄保持純淨,現在可以在設定檔中加入 "attribution": false 來關閉所有 Commit 與 Pull Request 的工具署名。若是團隊多人共用設定檔,請務必保留完整的大括號物件格式,避免舊版 CLI 遇到未知格式時直接略過整份設定檔。⟦跟寄出公文時拿掉編輯軟體的浮水印一樣,讓產出的紀錄完全只保留你的工作成果。⟧

```json { "attribution": false } ```

官方原文

Added "attribution": false in settings.json to hide all commit and PR attribution; older CLI versions skip a settings file that holds it, so keep the object form in files shared across versions

04

MCP 支援 URL 模式引導,伺服器可請求開啟瀏覽器流程

當外部服務需要你透過網頁完成登入或授權時,採用 2026-07-28 協定版本的 MCP(Model Context Protocol,讓 AI 連接外部工具的協定)伺服器現在能主動要求 Claude Code 開啟瀏覽器畫面。如果伺服器本身無法確認後續的完成狀態,終端機也不會留下一直卡住的等待對話框。⟦好比點餐機顯示網頁付款連結,手機直接跳出結帳畫面,櫃檯螢幕不會一直轉圈等待。⟧

官方原文

Added MCP URL-mode elicitation on 2026-07-28 protocol connections, so servers can ask Claude Code to open a browser-based flow; no waiting dialog is left on screen when the server has no way to confirm completion

05

立即發送改將執行中工具轉入背景,不再中斷對話輪次

當你發現 Claude 還在執行耗時的指令,但你手邊已經想好後續的追問或新任務時,只要按下快捷鍵(Ctrl+Enter 或 Ctrl+X Ctrl+S),正在跑的工具就會被平順轉移至背景默默運作。你不需要等它完全跑完,也不會因為搶先輸入而把先前的對話輪次強行中斷,讓工作節奏更為順暢。⟦彷彿在廚房燉湯的同時走進客廳交代同事下一份報表,瓦斯爐照常慢火細熬,你也不用站在爐邊乾等。⟧

官方原文

Changed send now (ctrl+enter or ctrl+x ctrl+s) to move running tools to the background instead of cancelling the turn

06

自動模式審查擴及唯讀指令,並提供權限節省推薦

想要放手讓工具自動執行任務,自動模式(auto mode)在啟用伺服器端分類器時,現在連唯讀與沙盒內的指令也會經過伺服器審查,只要被標記有疑慮就會主動阻擋。直接連線 Anthropic API 的使用者能透過環境變數 CLAUDE_CODE_AUTO_MODE_SERVER=1 加入審查。此外在終端機輸入 /insights 能估算自動模式近期為你的工作階段省下了多少次手動確認。

官方原文

Added an auto mode recommendation to /insights that estimates how many permission prompts auto mode could have handled in your recent sessions

Changed auto mode so that, where its classifier review runs server-side, read-only and sandboxed shell commands also wait for that review and are blocked when it flags them

Changed CLAUDE_CODE_AUTO_MODE_SERVER to also apply on a direct Anthropic API connection: 0 opts out of the server-side auto mode classifier (the local classifier then counts toward usage), 1 opts in

07

自動模式改進重啟快取複用與拒絕意圖理解

在中斷後重新接續工作階段(session)時,自動模式的權限分類器現在會直接重複使用先前的 Prompt 快取。這項機制把算過或查過的結果暫存起來直接使用,省下重複計算的等待時間。此外當你拒絕某個危險動作時,Claude 現在會理解你拒絕的是「該項結果」而不只是那一行特定字眼,不會換個同義指令又重複嘗試相同的操作。⟦像吩咐管家不要買某款點心,他明白你的意思是別吃那道甜品,而不是換一間超商再去買回來。⟧

官方原文

Improved auto mode after resuming a session in a new process: the permission classifier can now reuse its earlier prompt cache instead of rewriting it

Improved the auto mode denial message so Claude treats a denial as covering the outcome, not only the exact command

08

加強刪除指令防護,新增變數路徑檢查與自動逾時拒絕

當工具在自動模式或略過權限模式下準備執行帶有變數替換的刪除指令時(例如 rm -rf "$(pwd)"),現在一律會停下來向你確認,不再直接放行。如果目標路徑是變數接頂層目錄或純反斜線,安全防護也會主動攔截。在無人看守的工作階段中,確認視窗等待 2 分鐘後會自動拒絕並附上改寫提示,避免整台工作站因為等待使用者按鍵而永久卡死。

官方原文

Fixed a recursive rm whose target is only command-substitution output, such as rm -rf "$(pwd)", running unprompted in auto and --dangerously-skip-permissions mode; it now asks even with a Bash allow rule, unless run with CLAUDE_CODE_DISABLE_SUBSTITUTION_RM_PROMPT=1

Improved the dangerous-rm check to also flag a removal at a shell variable followed by a top-level directory name, at a variable derived from the working directory, or at a backslash-only target

Changed the dangerous rm prompt in --dangerously-skip-permissions and auto mode to wait 2 minutes for an answer, then deny the command with a rewrite hint so unattended sessions keep going (CLAUDE_CODE_DISABLE_DANGEROUS_RM_TIMEOUT=1 turns this off)

09

自託管執行器改用檔案傳遞系統提示詞,並加強指令檔統計

在自動化流水線中自建執行器時,極長的系統提示詞現在能改用 --system-prompt-file 傳遞私有檔案路徑,解決文字過長導致啟動失敗的問題。同時啟動時的提示詞大小警告會將 @ 引入的所有關聯說明檔案一併合計。而在無頭模式(沒有終端機視覺畫面的模式)下,透過 --add-dir 額外掛載的資料夾也不會再把規則檔案重複傳送給模型。

官方原文

Fixed CLAUDE.md and rules files from an --add-dir directory inside the working directory being sent to the model twice in headless and SDK sessions

Improved the large CLAUDE.md startup notice to also count instruction files together, so many mid-sized files and @-imports are caught

Changed self-hosted runners to pass system prompts to Claude Code as private files instead of command-line text, so large prompts no longer fail the launch; a wrapper or command hook that appends --system-prompt or --append-system-prompt must switch to --system-prompt-file or --append-system-prompt-file

10

改善長工作階段與已壓縮對話的恢復速度與快取還原

處理大型專案與長篇對話時,工作階段(session)的載入效率獲得了顯著提升。重新打開讀取過大量檔案的紀錄時,還原檔案快取(把先前讀過的檔案內容暫存起來直接使用)的速度明顯加快,且內容與先前讀取時完全相符。在 Agent SDK 與桌面端中恢復已經過壓縮的超長對話也更加順暢。若開頭的第一則提示詞極長導致超出長度上限,系統現在會將該則提示詞獨立進行摘要修復。

官方原文

Improved the time to resume long sessions that read many files; the restored file cache now matches the files as they were read

Improved the time to resume very long sessions that have been compacted, most noticeably through the Agent SDK and Claude Desktop

Improved "Prompt is too long" recovery in sessions dominated by one very large first prompt: that prompt is now summarized on its own instead of being left out of the summary

11

Plugin 錯誤時顯示所屬名稱,加強掛鉤路徑與市集快取

在外掛生態系中除錯與管理套件時,錯誤回報機制變得更加明確。當外掛中的掛鉤(hook,特定事件發生時被觸發的小程式)執行失敗時,錯誤訊息現在會明確點名是哪一個外掛出問題。驗證工具也會在指令未替路徑加上雙引號時發出警告,避免路徑含有空白字元時壞掉。此外市集在連線失敗並保留本機副本時不會誤記為已重新整理,解除安裝時若檔案因其他外掛使用而保留也會清楚說明。

官方原文

Fixed known_marketplaces.json recording a marketplace as refreshed when its remote could not be reached and CLAUDE_CODE_PLUGIN_KEEP_MARKETPLACE_ON_FAILURE kept the existing clone

Improved plugin hook-failure errors to name the offending plugin, and added a claude plugin validate warning when a shell-form hook leaves ${CLAUDE_PLUGIN_ROOT} unquoted (it breaks on plugin paths with spaces)

Changed claude plugin uninstall --json and the /plugin dialog to say a plugin's data was kept when its folder stays because another installed plugin uses it or install records cannot be read

12

工作階段成品收納為底部按鈕,並改進頁面文案與壓縮上傳

對話中產生的所有成品現在會在輸入框下方整合為單一膠囊按鈕(例如 ⧉ name)。點擊該按鈕即可打開 /artifacts 清單查看本次工作階段的所有產出。成品設計技能現在會要求 Claude 生成更精準直白的說明文字;在慢速網路發布較大成品時會自動啟用壓縮傳輸,並允許載入外部公開腳本,在遠端控制工作階段中也不會再遺失成品工具。

官方原文

Fixed the Artifact tool missing from Remote Control sessions that claude remote-control starts for you to open from Claude Desktop, claude.ai or the mobile app

Improved the writing in published artifact pages: the bundled artifact-design skill now asks Claude for plain, direct prose

Improved artifact publishing on slow connections: large page uploads are now sent compressed

Changed the session artifact links under the prompt into one footer pill (⧉ name or ⧉ N) that opens /artifacts, which now lists this session's artifacts first

Changed the Artifact tool to let Claude load scripts from unpkg.com in artifact pages

13

多代理支援讀取 JSON 檔案,批次執行支援自訂工作樹掛鉤

使用 --agents 啟動多代理時,現在能直接指定 JSON 檔案路徑並允許空白提示詞。打 /batch 時即使不在 Git 倉庫內,只要有工作樹(worktree,平行開啟多份副本的功能)建立掛鉤提供目錄也能正常執行。此外從網頁端同步的技能清單會以簡短名稱顯示,深度研究(/deep-research)在長篇摘要上的穩定度也獲得提升。

官方原文

Improved --agents to accept the path to a JSON file (with -p) as well as inline JSON, and to allow an empty prompt

Improved /batch to run where a WorktreeCreate hook provides the agent worktrees, not only inside a git repository

Improved the / menu, /skills, /context and the /plugin Installed list to show skills synced from claude.ai by their short name when no other command uses it, not anthropic-skills:<name>

Improved /deep-research reliability on long research briefs by removing unused required fields from the scope step's output

Removed the leftover "(removed)" /agents entry from the command menu and /help; typing /agents still explains where the wizard went

14

改進代理面板操作提示與焦點,更新背景工作列進度顯示

在終端機查看多代理面板時,底部提示鍵現在會如實反映自訂鍵盤對應,且不會在當前檢視的代理上重複提示切換按鍵。滑鼠點擊代理列會同步更新鍵盤游標,按下 Esc 鍵只會取消選取而不會誤中斷正在進行的對話。輸入框下方的背景工作列則新增了進度條、耗時與文字單位(token,AI 處理與計費的文字單位)統計,掌握背景任務的即時進度變得更加一目了然。

官方原文

Fixed the agent panel's footer hint ignoring keys rebound in keybindings.json, and showing a stray · when the stop-all-agents shortcut is unbound

Fixed the agent panel footer offering "Enter to view" and "x to stop" on the agent you are already viewing (where x types into its input), and "Enter to view" on the main row when main is already shown

Fixed a mouse click on an agent-panel row leaving the keyboard cursor on the previously selected row

Fixed Esc interrupting the running turn instead of deselecting the selected agent-panel row

Improved the background workflow row below the prompt: it now shows the name, a progress bar, the agent count on wide terminals, elapsed time, total tokens, and the large-workflow warning

15

改進工作流程清單排版,終止重大檢視前新增防誤觸確認

打 /workflows 查看工作流程時,每一列改為以狀態圖示與耗時開頭,在窄終端機中會優先保留名稱與時間。當有新任務在背景啟動時,選取游標也不會突然跳移導致誤停其他任務。此外在 /tasks 清單中對正在執行的重大審查按下 x 鍵時,現在會先跳出確認提示,避免辛苦進行的任務進度被意外中斷,提供更安心的後台管理體驗。

官方原文

Fixed /workflows moving the pointer to a different run, and x stopping it, when a new run started while the list was open

Changed /workflows: each run's row leads with its status icon and elapsed time, and a narrow terminal keeps the run's name and time, dropping the agent and token counts first

Changed the background tasks list (/tasks): pressing x on a running /ultrareview now asks for confirmation before stopping the review

16

統一對話框雙擊取消機制,加強權限確認與爆衝按鍵防護

在終端機打開各類彈出選單(如 /hooks、/mcp、/memory)時,連續按兩次 Ctrl+C 或 Ctrl+D 現在只會關閉當前對話框,不再直接退出整個程式。遠端輸入或快速切換視窗時的連發按鍵不會再誤觸上一個舊選項。修復了權限刪除確認中按下數字 1 誤刪目錄,以及連按 Shift+Tab 跳至錯誤權限模式的問題。

官方原文

Fixed 1 answering Yes in /permissions' delete and remove-directory confirms while the pointer is on No, which let a held 1 remove one workspace directory after another

Fixed pressing Shift+Tab twice quickly landing on the wrong permission mode

Fixed Ctrl+C or Ctrl+D pressed twice quitting Claude Code instead of closing the dialog in the remaining dialogs and pickers, such as /memory, /hooks, /mcp (including a server's sign-in screen), /export, /copy, /theme, and /teleport's uncommitted-changes and login prompts (where Esc also quit)

Fixed keys that arrive in one burst of input (e.g. over Remote Control), such as an arrow key followed by Enter, x or s, acting on the previous selection: a stale effort level in /effort and the model picker, and the previously highlighted row in /skills, the background task rows under the prompt, MCP server prompts and /install-github-app

Improved /install-github-app, /desktop, the /permissions auto mode environment prompts, and the /plugin "Add marketplace?" and "Run this command?" prompts: they now use the standard dialog frame with key hints, and Ctrl+C or Ctrl+D cancels them on the second press like other dialogs

Improved the Remote Control confirmation: its options are briefly inactive again after the terminal window regains focus, so a key pressed while switching back cannot answer it

17

全螢幕清單新增捲軸,支援翻頁快捷鍵與滑鼠懸停

在終端機裡安裝了許多套工具或外掛時,檢視畫面往往會超出單一螢幕高度。現在切換至全螢幕模式開啟 /skills、/mcp 或 /plugin 安裝清單時,右側會出現能用滑鼠直接點擊與拖拉的專屬捲軸,並支援 PgUp、PgDn、Home、End 與 j/k 鍵順暢翻頁。滑鼠游標移開後懸停亮色會即時淡出清除;在寬度受限的狹窄視窗中,長標籤也會自動以省略符號截斷以防版面錯位。

官方原文

Added a scrollbar to the /skills, /mcp and /plugin Installed lists in fullscreen mode, like the one /workflows now has: it appears while the mouse is over the list and can be clicked or dragged

Fixed PgUp and PgDn doing nothing in a dialog's list (for example /skills) in fullscreen mode

Fixed the hover highlight lingering on a list row in fullscreen mode after scrolling or filtering moved it away from the mouse

Fixed long list rows, such as in the /remote-control menu, wrapping onto a second line in narrow terminals; they're now cut with …

Improved the /workflows and /mcp lists: they page (PgUp/PgDn, Home/End) and take j/k and the mouse like other lists, their arrows follow select:previous/select:next rebinds, and x in /workflows stops the run the pointer is on

Improved the /plugin plugin and marketplace details menus and the /remote-control already-connected menu: they now support Home/End and clicking a row

18

改進分頁對話框鍵盤導覽,最佳化技能與掛鉤詳細資訊

在 /permissions 或 /usage 等多分頁對話框中,按上下鍵可自如地在上方分頁列與下方內容區切換焦點,停用終端機顏色時選中分頁依然保有醒目標示。/skills 清單改為名稱開頭並以圖示清楚標明開關狀態。查看 /hooks 詳細畫面時會直接說明掛鉤(hook,特定事件發生時被觸發的小程式)類型與修改位置,不再一律指向 settings.json 造成困惑。

官方原文

Fixed the selected tab in tabbed dialogs (/config, /plugin, /permissions) showing no highlight while the tab bar has focus when color is off (NO_COLOR)

Improved keyboard navigation in tabbed dialogs such as /permissions and /usage: ↑/↓ move focus between the tab row and the content, and a list responds to keys only while it has focus

Improved /help and /sandbox: ←/→ and Tab switch tabs from inside a tab's list, and ↓ on an empty Custom commands tab in /help no longer leaves the keys stuck until Esc

Improved /skills: each row now leads with the skill's name, with ✔ or ◯ alone showing on or off, and stays on one line in narrow terminals

Improved narrow list rows (/skills, /workflows, /feedback): a name keeps 20 columns beside its first detail, and details are shown whole or not at all

Improved /hooks: a hook's detail screen now says what kind of hook it is and where to change it, instead of always pointing at settings.json, and the hooks-disabled, safe mode and managed-hooks-only notices each say what is happening in one plain sentence

19

Web 雲端工作階段新增快速模式開關,改進 GitHub 流程與錯誤提示

在瀏覽器中操作對話時,輸入區的模型選單新增了快速模式(Fast mode)切換開關。只要方案支援且模型具備對應能力,就能在雲端工作階段(session)中隨時切換。倉庫選擇器中新增了 GitHub 連線疑難排解連結。當 Pull Request 轉為草稿時能正確觸發定時排程,非 GitHub 倉庫會自動隱藏建立 PR 按鈕,開啟檔案失敗時的卡片也會清楚說明是檔案已不存在還是被權限規則封鎖。

官方原文

[Claude Code on the web] Added a Fast mode switch to the composer's model menu in cloud sessions, shown when your plan includes fast mode and the selected model supports it

[Claude Code on the web] Added a settings shortcut on the GitHub setup tip and a "Troubleshoot GitHub connection" link in the repository pickers, both opening your GitHub connection page

[Claude Code on the web] Fixed routines with a GitHub trigger for a pull request being converted to draft never firing; they now start a run when the pull request is converted

[Claude Code on the web] Fixed cloud sessions on a repository that isn't hosted on GitHub showing a Create PR button that could never work; the button is now hidden there

[Claude Code on the web] Fixed the GitHub setup tip on claude.ai/code covering the repository picker's search box and rows while the picker is open; it now steps aside until the picker closes

[Claude Code on the web] Improved the file card shown when a cloud session can't open a file: it now says whether the file no longer exists or the session's permission settings block reading it

效能 1 項

20

過濾 MCP 應用程式介面資源,並改善附件重複下載與螢幕報讀

在終端機中透過 @ 提及或列出 MCP(Model Context Protocol,讓 AI 連接外部工具的協定)資源時,清單會主動略過純 UI 專用的應用程式資源,避免干擾主要提示詞。在遠端控制連線中,工作階段內已下載過的附件會直接重複利用連線與暫存檔,不再浪費頻寬重複抓取。而在使用螢幕報讀軟體瀏覽 /mcp 清單時,停用的伺服器狀態會明確朗讀為關閉而非等待中。

官方原文

Improved screen-reader output in /mcp: a disabled server is read as "off" instead of "pending"

Changed Remote Control attachment downloads to reuse connections and to skip files already downloaded in the session

Changed MCP resource lists (the resource list tool and @-mention suggestions) to skip MCP Apps UI resources; reading one by URI still works

修正 22 項

21

修復恢復工作階段時格式變更導致先前推理遺失的問題

接續先前未完成的對話時,多項恢復工作階段(session)的邏輯獲得了徹底修正。以前平行工具呼叫、MCP 重新連線或中斷載入時,容易重複傳送格式變形的對話紀錄,導致 API 丟失先前的推理脈絡。現在超大工作階段不會再只恢復最後幾則訊息,在權限確認中途重啟也不會破壞快取暫存,而在工具執行中斷時手動恢復更不會偷塞隱藏訊息。這些損壞的歷史紀錄在啟動時都會自動修復完成。

官方原文

Fixed resumed sessions re-sending earlier turns in a changed form (a parallel tool-call turn, an MCP tool call's input or a tool-search result while its server was still reconnecting, or a tool-search result whose loading turn was interrupted), which could make the API drop the conversation's prior reasoning

Fixed resuming a very large session sometimes restoring only its last few messages

Fixed a session resumed after a restart during a pending permission prompt sending a different history than before, which broke the prompt cache from that point

Fixed resuming a session that ended during a tool call: Claude now sees the call and is told its outcome is unknown, and a manual resume no longer adds a hidden "Continue" message

Fixed sessions with an earlier advisor result the API could no longer read failing one request every turn and repeatedly losing earlier reasoning; the history is now repaired once

22

修復串流中斷與代理伺服器提早關閉連線時的重試與狀態遺失

連線經過企業代理伺服器或閘道時,串流傳輸的容錯機制更加健全。以前串流連線正常關閉時可能被誤判為已完成回應,重複事件甚至會導致工具被重複執行兩次;現在中途掉包時會妥善保留已抵達的部分內容與搜尋結果。此外修復了 API 請求重試期間介面當機、讓整個工作階段(session,一次連續的對話作業)被迫結束的問題,以及斷線後重複發送空白請求、結尾附帶純用量資訊時遺失結束原因的錯誤。

官方原文

Fixed a crash ("unrecoverable interface error") that could end a session while an API request was being retried

Fixed the prompt cache being lost when an MCP server disconnects mid-conversation, or is still connecting after a resume, while tool search is off (for example behind a proxy or gateway)

Fixed responses cut short by a proxy or gateway that closes the stream cleanly being shown as complete with no warning, and tool calls running twice on duplicated stream events

Fixed responses failing with "Content block not found" when a proxy drops a stream event mid-response; the partial response is now kept, and web search keeps results that already arrived

Fixed an empty completed response being requested twice when the connection dropped before the stream's final event

Fixed the stop reason being lost when a proxy sends a trailing usage-only frame

23

修復 API 重試循環、限流等待與 HTML 錯誤頁面解析

遇到模型輸出截斷與工具呼叫解析失敗交替出現時,對話輪次不再無視最大輪數限制無休止重試。重試看門狗機制在工作階段遭遇伺服器錯誤時不會再無限制靜默等待。快速模式收到 Retry-After: 0 時也不會緊接著瘋狂重發。此外代理伺服器回傳 HTML 格式的 429 或 502 錯誤頁面時,終端機會正確提取狀態碼,不再整段印出原始標記語法。

官方原文

Fixed a turn that could retry indefinitely, ignoring --max-turns, when the model alternated unparseable tool calls and output-limit truncation

Fixed CLAUDE_CODE_RETRY_WATCHDOG sessions failing on the first 5xx or dropped connection after a run of 429/529 waits, and sleeping uncapped and silently on a long Retry-After from a 5xx

Fixed fast mode retrying rate-limited requests back to back when the server sent Retry-After: 0

Fixed /model showing the raw API error JSON and request ID when the API refuses the picked model; it now shows the server's message and says the model was not changed

Fixed API errors from an HTML error page (such as a proxy's 429 or 502 page) printing the page's raw markup or leaving out the HTTP status, and error messages breaking onto a second line when the server's error text ended in a newline

24

修復工具回傳超大圖片、過長名稱與記憶體讀取失敗的卡住問題

呼叫外部工具處理多媒體或繁重工作時,多項邊界情況的穩定度獲得了加強。當執行的工具回傳超大尺寸圖片時,修復了導致同批次其他工具無人回應且持續空轉的問題。同時解決了模型呼叫超過 200 字元的工具名稱造成對話永久卡死、系統檔案描述符耗盡時因無法讀取記憶體用量而誤報工具失敗,以及讀取或提及大於 3 MB 的 PDF 檔案時延遲甚至背景渲染無法中斷的情況。

官方原文

Fixed a tool that returned an oversized image leaving sibling tool calls unanswered and still running, or ending the turn with no final message

Fixed conversations getting permanently stuck on "tool_use.name: String should have at most 200 characters" after the model called a tool by an overlong name

Fixed tool calls failing with "Failed to get memory usage", or being reported as failed after they ran, when Claude Code cannot read its own memory usage, for example when it has run out of file descriptors

Fixed a delay of up to two minutes before responding when reading or @-mentioning a PDF larger than 3 MB

Fixed an interrupted Read of specific PDF pages leaving its page render running for up to two minutes

25

修復檔案工具包含空字元路徑與重複參數名稱時的處理錯誤

在程式碼編輯過程中呼叫各類檔案處理工具時,多項參數驗證邏輯得到了修正。在使用讀取、寫入或編輯檔案工具時,如果路徑中意外混入了空字元(null byte),現在會明確回報工具執行失敗,不再直接中斷整個對話輪次。此外寫入工具在收到以不同參數名稱傳入但內容與路徑完全相同的呼叫時,也不會再直接拒絕執行。⟦宛如郵差看到寫錯格式的信封時會退件說明原因,而不是直接罷工回家。⟧

官方原文

Fixed Read, Write, Edit and NotebookEdit: a file path containing a null byte now fails that tool call with a clear error instead of ending the whole turn

Fixed Write refusing a call that gives the file path or content twice under two parameter names with identical values

26

修復沙盒排除指令比對錯誤,並指引本機網路連接埠綁定

在 macOS 沙盒環境中開發時,如果本機開發伺服器無法綁定通訊埠,Claude 現在會主動引導設定 sandbox.network.allowLocalBinding。同時修復了沙盒排除指令無法正確比對特定 Git 指令與帶有標籤的提交訊息、自訂暫存路徑時沙盒內無法寫入的問題,以及權限規則中包含空字元被誤展開為萬用字元與存取特定網路掛載路徑的安全性問題。

官方原文

Fixed permission dialogs and attachment checks reading a path under macOS's /.vol, /.nofollow or /.resolve (which can reach a network mount) before approval

Fixed a permission rule containing a NUL byte being expanded into a wildcard match; such a rule now matches nothing

Fixed sandbox excludedCommands entries not matching git rev-parse --git-dir, programs named like shell builtins, and commit messages containing [WIP] or # lines

Fixed sandboxed Bash commands being unable to write to $TMPDIR when CLAUDE_CODE_TMPDIR is set

Improved sandbox guidance on macOS: when a local dev server can't bind a port, Claude now points to sandbox.network.allowLocalBinding

27

修復 MCP 伺服器重複連線、掛鉤等待與無頭模式握手停滯

在無頭模式(沒有終端機視覺畫面的模式)下與主機端 MCP 伺服器連線時,若主機在握手中途無回應,遠端工作階段現在最多只會等待數秒便自動恢復。同時掛鉤(hook,特定事件發生時被觸發的小程式)遇到阻塞事件時會確實等待伺服器連線。並修復了相同伺服器因網址大小寫或結尾斜線不同而連線兩次,以及另一個行程登入後狀態列未同步的問題,進一步提升連接工具時的可靠度。

官方原文

Fixed headless sessions with host-side (SDK) MCP servers stalling on the first message when the host stops responding mid-handshake; remote sessions now wait a few seconds at most

Fixed the "Not logged in · Run /login" footer and missing claude.ai connectors persisting in a session after logging in from another Claude Code process

Fixed mcp_tool hooks on blocking events (PreToolUse and similar) being skipped while their MCP server was still connecting; they now wait for it, up to the MCP connect timeout

Fixed the same MCP server being connected twice when a plugin or claude.ai connector and a configured server spell its URL differently (host letter case, default port, trailing slash)

Fixed MCP_CONNECTION_NONBLOCKING=0 giving up on claude.ai connectors after 1s instead of honoring MCP_CONNECT_TIMEOUT_MS

28

Plugin 新增 MCP 驗證檢查,並修復專案範圍管理指令

開發或安裝擴充外掛時,執行 claude plugin validate 現在會主動檢查 .mcp.json 中被略過的項目、未宣告的使用者設定變數與不安全網址,且不再將隱私權或支援網址誤判為未知欄位。同時修復了解除安裝專案範圍外掛時誤報啟用中、更新時省略 --scope 誤用使用者範圍,以及從含有市集檔案的目錄載入外掛時載入空白外掛的問題。

官方原文

Added MCP server checks to claude plugin validate: it reports .mcp.json entries that would be silently dropped at load, undeclared ${user_config.*} references, and insecure URLs

Fixed --channels plugin entries being checked against the installed plugin's marketplace alone; the installed plugin's name must now match the entry as well

Fixed --plugin-dir on a folder of plugins that also has a .claude-plugin/marketplace.json loading one empty plugin instead of the plugins in it

Fixed claude plugin uninstall refusing to remove a project-scope plugin that isn't enabled, saying it is "enabled at project scope" while claude plugin disable says it is already disabled

Fixed claude plugin update failing for project-scoped plugins when --scope is omitted — it now resolves the scope the plugin is installed at instead of assuming user

Fixed claude plugin validate reporting privacyPolicyUrl, supportUrl and other listing metadata keys in plugin.json as unknown fields

29

改進 Plugin 清單排版與捲動,修復市集更新與錯誤頁面確認

在終端機打開 /plugin 管理介面時,已安裝外掛清單現在會依狀態、名稱、類型與詳細資訊分欄整齊對齊,方便你一眼看清各個套件的狀態。滑鼠滾輪能正確捲動清單內容而不影響底層畫面。同時修復了連按 Enter 觸發兩次更新或解除安裝、按住 y 鍵瞬間誤加市集,以及錯誤分頁在排除所有問題後沒有顯示確認提示的狀況,讓管理與瀏覽擴充套件時的操作更加順暢安定。

官方原文

Fixed the /plugin Errors tab showing no confirmation after its last error is resolved

Fixed /plugin starting a second uninstall or update of the same plugin when Enter was pressed again while the first was still running

Fixed a y held while /plugin checks a marketplace source adding the marketplace the instant the "Add marketplace?" question appears, before it can be read

Fixed the mouse wheel over the /plugin Installed list scrolling the pane behind it instead of the list

Fixed lists such as a skill's state options in /plugin not being answerable by typing a number in screen-reader mode

Improved the /plugin Installed list: rows now line up in columns (status, name, type, details) across every section

30

修復雲端與遠端工作階段的背景代理回報、定時任務與重試迴圈

遠端執行長任務時,修復了背景代理剛完成就遇到工作單元重啟導致結果未告知 Claude 的問題。同時排程任務與 /loop 在派送失敗時不會再每秒無休止重試導致程式結束。修復了權限確認重疊時介面卡在待核准狀態、定時輪次在第一個工具呼叫前遺失開頭通知,以及遠端控制在組織原則載入中誤報已停用的情況,保障長時無人值守任務順利推進。

官方原文

Fixed remote sessions staying on "needs approval" with a stale prompt after a permission prompt and a sandbox network-access prompt overlapped and both were answered

Fixed cloud sessions not telling Claude about background agents that finished just before a worker restart

Fixed scheduled routine and notification turns in remote sessions not receiving turn-start notices (newly available tools, MCP changes, date, todos) until after the first tool call

Fixed scheduled tasks and /loop wakeups being fired again every second when their delivery failed, which could make Claude Code exit at the end of a turn

Fixed Remote Control reporting "disabled by your organization's policy" when the org policy simply hadn't loaded yet; it now retries the fetch and says it couldn't verify

31

修復 macOS 鑰匙圈鎖定時遺失憑證,並最佳化互動式啟動耗時

在 macOS 睡眠喚醒或登入鑰匙圈鎖定時,寫入新憑證不再會意外遺失既有的 MCP 授權令牌(token,用來驗證身分的授權憑據)或刪除項目。雲端身分更新背景程序結束時會確實釋放通訊埠。啟動時也將 Git 讀取與模型升級檢查移至首格畫面渲染之後,並停止對無法成功的原則請求進行無效重試,讓終端機工作階段更快進入可用狀態,有效減少開機等待時間。

官方原文

Fixed macOS credential writes dropping stored MCP OAuth tokens or deleting the keychain entry when the login keychain was locked (e.g. right after wake)

Fixed gcpAuthRefresh/awsAuthRefresh login processes being left running (and holding their localhost callback port on Windows) when Claude Code exits or the refresh times out

Improved Claude Desktop sign-in and usage-limit error messages to point at the app instead of terminal commands

Improved startup: managed settings and policy fetches no longer retry requests that can never succeed

Improved interactive startup time: git reads, startup telemetry and the Bedrock/Vertex model-upgrade checks no longer run before the first frame

Improved debug logs to name settings env variables ignored because the session's launch environment already sets them

32

修復子工作階段繼承設定來源,並加強背景工作區信任檢查

透過 claude --bg 啟動背景工作階段時,如果目錄尚未通過工作區信任確認,現在會主動要求確認而非直接執行專案掛鉤。透過 --setting-sources 指定的設定限制現在會完整傳遞給衍生出的隊友與背景工作階段。同時修復了非互動模式下工作目錄被刪除引發的錯誤,以及未設定外掛時啟動不必要等待受管設定網路請求的問題。

官方原文

Fixed --input-format stream-json sessions (Agent SDK, VS Code extension) and scheduled cloud sessions failing every turn with an error when an earlier assistant message had plain-string content

Fixed non-interactive sessions (-p, Agent SDK) failing on the next turn after the directory they were started in was deleted mid-session

Fixed interactive startup waiting on the managed-settings network request (about 80 ms, 17+ seconds when the network is unreachable) when no MCP servers or plugins are configured

Fixed claude --bg starting a background session, and running its project hooks, in a directory that had not passed the workspace trust prompt; it now asks for trust first, or exits when not run interactively

Fixed --setting-sources (and SDK settingSources) not being forwarded to spawned sessions: teammates, /bg, claude agents sessions and --worktree --tmux now start with the parent's restriction

33

修復 Vim 模式按鍵動作,改進排隊訊息與文字貼上呈現

在終端機使用 Vim 編輯模式時,修復了 dj、cw、1G 與點號重複插入等多項游標與按鍵行為異常,避免帶有驚嘆號的文字誤切換至 Shell 模式。在 Claude 思考中途排隊送出的訊息現在會固定顯示在載入動畫上方並保留編輯器選取範圍。單行文字貼上在多數情境下也不會再被意外換行打散,讓命令列輸入體驗更加順暢自然。

官方原文

Fixed one-line pastes showing on their own lines in the sent message for prompts from VS Code or Remote Control and for expanded paste placeholders

Fixed a message queued while Claude is working losing or changing the IDE selection it was written with, and queued messages not showing their selection

Fixed vim mode: dj/dk/dG/dgg and their c/y forms acting on part of a line; 1G going to the last line; d0/c0/y0 doing nothing; the cursor being off by one after . repeats an insert; and o/p on a !-prefixed line switching to shell mode

Fixed vim mode cw on a space, an empty line, a word's last letter or a one-letter word also changing the next word; word motions stopping inside words in Hindi, Bengali and other scripts; and ., p or P that inserts text starting with ! switching to shell mode, losing text or editing the wrong character

Fixed the prompt cursor moving one character too far after an accent typed as its own key

Changed queued messages to show in the conversation above the spinner instead of under it

34

修復反饋回報取消、環境重啟與多選提問工作階段名稱

在傳送 /feedback 或 /bug 回報中途取消時,不會再把已取消的報告偷偷送出。修復了 /setup-bedrock 重新啟動以套用設定時導致終端機輸入錯亂或當機、設定檔中含有空值造成 /config 閃退、已啟動的編輯器被 /ide 誤判為未偵測到,以及 Claude 提出多選題時自訂的工作階段名稱意外消失的問題。

官方原文

Fixed /feedback, /bug and /share still sending your report after you cancelled it while it was being sent

Fixed /feedback, /bug and /share failing every send with "Couldn't send feedback" after a Remote Control Stop arrived while the dialog was open

Fixed /ide showing "No available IDEs detected" while also listing a running IDE

Fixed the terminal being left in a broken state (crash or garbled input) when /setup-bedrock or /setup-vertex restarts Claude Code to apply new settings

Fixed /config exiting when respectGitignore or copyFullResponse in ~/.claude.json holds null

Fixed the session name from /rename disappearing while Claude asks a multiple-choice question, so side-by-side sessions stay identifiable

35

修復模型思考開關顯示、上下文統計與暫存快照清理

在無法關閉思考的模型上,按 Alt+T 或打開 /config 不再提供無效的思考開關,而是顯示單行說明保留開啟。打 /context 查看上下文用量時會將剛送出的最新訊息計入總額。安裝 GitHub 應用程式時若選擇略過更新不會再重複執行,執行 Bash 工具產生的暫存比對快照也會在結束時徹底清理乾淨,不再佔用硬碟空間。

官方原文

Fixed Alt+T and /config offering to turn thinking off on models that can't; thinking now stays on there, with a one-line reason in place of the switch

Fixed /context total leaving out messages added since the last response; it now matches its categories and can read higher than the status line

Fixed /install-github-app updating the workflow after "Skip workflow update" was chosen, running setup twice on a repeated Enter, and ↑ on the repository step blocking a typed repository name when no repository was detected

Fixed /heapdump summary saying most memory is native when it is in the JS heap snapshot

Fixed Bash edit-diff snapshot directories piling up in the temp folder: abandoned ones are now deleted right away and the rest when Claude Code exits

36

修復清單數字編號與項目空行,改進檔案差異與伺服器列

在終端機顯示純數字開頭的清單項目時(如 - 316.),不再被誤轉為羅馬數字或錯誤字元;螢幕報讀與長清單中項目上方也不會再出現多餘空行。打 /diff 查看長變更清單時新增了位置捲軸且長路徑不換行。全螢幕模式下懸停清單列改為柔和底色調亮,/mcp 伺服器列則以專屬圖示開頭並精簡多餘資訊,整體終端機畫面呈現更乾淨清爽。

官方原文

Fixed an extra blank line above a list item whose text starts on the line after its bullet, in screen-reader mode, quoted lists and long lists

Fixed bulleted lists of plain numbers (like - 316.) showing as letters, roman numerals or the wrong numbers

Fixed /hooks and /mcp detail views printing a long value over the row below it in narrow terminals

Improved /diff: a scrollbar shows where you are in a long list of changed files, and long paths no longer wrap their rows

Changed hovering a list row in fullscreen mode, including in /config, to tint the row instead of drawing a second ❯ pointer beside the focused row's

Changed /mcp: each server's row now starts with its status icon and name, says its state once, and in a narrow terminal drops trailing facts like "managed" before shortening the name

37

修復 Windows 環境下暫存目錄寫入權限與更新備份衝突

在 Windows 系統上使用 Bash 執行指令時,修復了寫入 $TMPDIR 暫存目錄時跳出權限不足(Permission denied)的錯誤。同時解決了多個 Claude Code 工作階段在同一瞬間進行版本自動更新時,因競爭條件互相刪除彼此的 claude.exe 備份檔,導致更新後執行檔遺失的問題。⟦好比兩位清潔人員在同一秒打掃置物櫃,一人清空回收桶卻不小心倒掉另一人剛放進去的備用鑰匙。⟧

官方原文

Windows: Fixed Bash commands that write to $TMPDIR/… failing with "Permission denied"

Windows: Fixed a race in which Claude Code sessions updating at the same moment could delete each other's claude.exe backup, which could leave no claude.exe behind

38

VS Code 擴充套件新增自動模式繼續提示,並修復工作階段開啟

在 VS Code 與 JetBrains 側邊欄中,當自動模式遇到計費分類器備援(fallback)時,現在會提供明確的 Continue 與 Stop 按鈕供你選擇。同時修復了開啟網頁版空白工作階段產生無法恢復的本機複本、伺服器未回傳歷史紀錄時工作階段無報錯空白開啟、擴充套件重啟後編輯器分頁無聲卡住,以及側邊欄中用量與費用文字折行被切斷的問題。

官方原文

[VSCode] Added a Continue/Stop prompt in the VS Code and JetBrains panels when auto mode falls back to billed classifier requests, replacing the unanswerable warning line

[VSCode] Fixed opening a Web session with no messages saving an empty local copy that could not be resumed; an error now says where to continue it

[VSCode] Fixed a claude.ai/code session opening empty or with only part of its conversation, with no error, when the server failed to return its history, part of it failed to load, or a network sign-in page answered in its place; it now shows an error and can be opened again

[VSCode] Fixed conversations in editor tabs hanging silently after the extension host restarts; the tab now tells you to reopen it from the session list

[VSCode] Fixed Claude attaching option previews to multiple-choice questions in the chat panel, where the question card never shows them

[VSCode] Fixed the session manager's cost and usage block wrapping mid-text on a narrow side bar, and showing totals from a previous login after an account switch

39

Claude Tag 於 Slack 終止時新增通知,修復回覆停滯與當機自癒

在 Slack 討論串中有人按下 Stop 終止 Claude 的回覆時,討論串會主動留下一行訊息註明是誰叫停並提醒提及 @Claude 即可繼續。同時修復了頻道偶爾完全停止回覆討論串的問題(下次新訊息會自動恢復自癒)、按停後被背景任務喚醒誤重啟、任務中途當機時回覆嚴重延遲,以及工作階段設定過大時自動重啟失敗的說明提示。

官方原文

[Claude Tag] Added a short line in the Slack thread after someone presses Stop, naming who stopped Claude's response and saying to mention @Claude to continue

[Claude Tag] Fixed Slack channels where Claude could permanently stop responding to replies inside threads; affected channels now recover on their own with the next new message to Claude

[Claude Tag] Fixed Claude resuming a stopped request after you press Stop in Slack, for example when a check-in fired or a background task ended; messages sent mid-response are now read

[Claude Tag] Fixed Slack replies arriving many minutes late, or never, after Claude's session crashed mid-task, such as on a failed setup script; it now restarts on its own within minutes

[Claude Tag] Fixed Claude in Slack promising an automatic restart, then failing generically, when a session's configuration is too large to start; the thread now says why and how to retry

40

Claude Tag 改善長討論串上下文保留,修復企業網格頻道存取

在 Slack 的超長對話中,Claude 不會再因為比對數週前的歷史紀錄而默默扣下回覆不發,在討論串深處重啟也不會遺失最近的上下文。同時修復了頻道從企業網格(Enterprise Grid)移至單一工作區或跨工作區共享頻道閒置後出現無法檢查頻道的錯誤。在討論串中詢問排程時,現在預設只列出該討論串專屬的定時任務,減少多餘的資訊干擾。

官方原文

[Claude Tag] Fixed very long Slack threads: Claude could silently withhold a reply after judging it against weeks-old messages, and a restart deep into the thread could lose recent context

[Claude Tag] Fixed Claude answering every mention with "Couldn't check this channel just now" in a Slack channel moved from Enterprise Grid org-wide sharing into a single workspace

[Claude Tag] Fixed very large Enterprise Grid workspaces reached mostly through channels shared across workspaces getting "Couldn't check this channel" again after a quiet hour

[Claude Tag] Changed the routine list Claude gives when asked in a Slack thread to show that thread's own scheduled tasks by default instead of every routine in the channel

41

修復 Claude Tag 推論掛鉤拒絕訊息、模型限制與雲端外掛設定

當 Slack 中的請求被組織設定的推論掛鉤(hook,特定事件發生時被觸發的小程式)阻擋時,討論串現在會直接印出掛鉤的具體拒絕原因且不再無效重試。切換模型時只會列出組織允許使用的模型清單。修復了連線 AWS 時 DynamoDB 與 Kinesis 帳號端點的驗證錯誤,管理員後台的外掛清單也會如實顯示外掛名稱而非原始代碼。

官方原文

[Claude Tag] Fixed a Slack request blocked by your organization's inference hook showing a generic retry notice; the thread now shows the hook's deny message and Claude doesn't retry

[Claude Tag] Fixed Claude in Slack offering to switch to models your organization can't use; it now lists and offers only models the switch will actually accept

[Claude Tag] Fixed requests to DynamoDB and Kinesis account-based endpoints failing to authenticate when sent through an AWS connection in Claude Tag

[Claude Tag] Fixed the Plugins sections in Claude Tag admin settings failing to load for organization admins and listing attached plugins as raw IDs; they now load and show each plugin's name

42

修復程式碼審查重試時因強制推送導致未進行審查的問題

在未設定為每次推送都觸發審查的儲存庫中,先前如果審查失敗重試期間發生了強制推送(force-push),該次 Pull Request 可能會被系統直接略過。現在這個問題已經修好,確保重試流程仍會如實完成審查,不會因為分支線路被強行覆蓋而漏掉重要的程式碼把關。⟦就像補考到一半考卷換了題目版本,監考老師依然會收卷改完,而不是直接當作這場考試沒發生過。⟧

官方原文

[Code Review] Fixed a pull request getting no review when its reviewed commit was force-pushed away while a failed review was being retried in a repository not set to review every push