usage

Claude Code 2.1.295

工具與目錄
在這頁

新功能 10 項

01

模組介面按鈕更豐富,通知優先權與編寫引導升級

開發或使用自訂介面模組時,資訊排版與提醒層級現在更有彈性。模組現在可透過 $.ui.notify 發送符合系統設定的原生桌面通知,並明確標記發送來源。按鈕元件支援放入文字子節點,方便在單一可點擊按鈕內呈現標籤或次要細節。由所屬組織發布的彈出提示(toast)會排在其他模組前面優先顯示。內建的外掛編寫技能在沒有終端機的工作階段中不再要求執行指令,並僅在被詢問時才解說分享流程;Workflow(工作流程工具)拒絕 scriptPath 時,會提示改用 script 行內傳入腳本,這種方式可在沒有 Read 讀取工具的工作階段使用。

官方原文

Added $.ui.notify for mods: raises a native notification through your own notification setting and says which channel sent it

Added children to a mod's Button: strings and Text, so a row of a list is one pressable with a chip or a dim detail inside

Improved the built-in plugin-authoring skill: it no longer tells a session with no terminal to run terminal commands, and explains sharing a mod only when asked

Improved the Workflow tool's scriptPath refusal: it now says to pass the script inline via script, the route that works in sessions without a Read tool

Changed toasts from your organization's mods to show ahead of other mods' toasts instead of waiting behind them

02

企業閘道支援串流逾時控制,模型清單也限制備援轉送

企業透過閘道轉送雲端模型請求時,可以限制等待與模型去向。timeouts.upstream_ttfb_ms 可設定 Bedrock、Vertex、Foundry 等上游的串流開始等待毫秒數,逾時就切換備援(主通道失敗時接手的替代方案)或回傳 502。每個上游可設 models 清單,只轉送列出的模型,備援轉送也受限制;每個項目中的一個 * 可作萬用字元。Amazon Bedrock 位於 AWS 美國地理區域以外時,未列於 models: 的模型請求原本會被 AWS 拒絕;閘道現在會嘗試你自己的區域,若仍遭拒,會指出需加入的模型。背景請求優先使用 Haiku 4.5,閘道未提供時才退回工作階段原本的模型。⟦物流中心以前改走備用線可能漏查貨物名單,現在換線也得照名單分派。⟧

官方原文

Added support for timeouts.upstream_ttfb_ms on the Claude apps gateway's Bedrock, Vertex, Foundry and other cloud upstreams: a value you set now limits how long a stream may take to start there, after which it fails over or gets a 502

Added an optional models list to every Claude apps gateway upstream: only the listed models are sent there, on failover too, and one * in an entry is a wildcard

Improved background requests behind a Claude apps gateway to use Haiku 4.5 instead of the session's model, falling back to the session's model where the gateway does not serve Haiku 4.5

Improved how the Claude apps gateway handles models not listed under models: in Amazon Bedrock regions outside AWS's US geography. AWS always refused those requests; the gateway now tries the model in your own region, and a refusal names the model to add

03

企業閘道強化登入強制導向,審計紀錄精準串聯雲端請求

如果企業需要集中管控員工的登入管道與使用軌跡,可以設定登入去向並比對請求紀錄。沒有託管設定的機器,可在使用者設定加入 forceLoginMethod: "gateway" 與 forceLoginGatewayUrl,讓 /login 開啟指定閘道。模型推論的審計紀錄新增 upstream_request_id,成功回應標頭加入 request-id,方便對照雲端上游、閘道日誌與 Claude Code 遙測。機器已設定 OpenTelemetry(收集監控資料的標準),或工作階段已登入閘道時,登入驗證事件能正確匯出。若遇到內附 Claude Desktop 結構定義尚不認識的 desktop 原則鍵,閘道會帶著警告啟動並提供該設定,不必為這類新桌面設定升級閘道。

官方原文

Added support for forceLoginMethod: "gateway" and forceLoginGatewayUrl in your own user settings on machines with no managed settings, so /login opens on that Claude apps gateway

Added upstream_request_id to the Claude apps gateway's inference audit event: the request ID from Amazon Bedrock, the Anthropic API or another upstream, for support cases

Added a request-id header to the Claude apps gateway's successful inference responses, so request_id in Claude Code telemetry matches the gateway's audit log

Fixed the claude_code.auth OpenTelemetry login event not being emitted on Claude apps gateway sign-in. The event is exported when OpenTelemetry is configured on the machine or the session is already signed in to the gateway

Changed the Claude apps gateway to start with a warning and serve a desktop policy key its bundled Claude Desktop schema doesn't know, so new Desktop settings need no gateway upgrade

04

基礎工具參數解析更寬容,權限受限模式嚴格受控

讓 AI 執行命令或讀取檔案時,參數小差異不再直接卡住工具。Bash(執行終端機命令的工具)收到 command_description 而非 description 時不再失敗;Read 收到空的 pages 參數會視為未填。Grep 搜尋支援附帶 -l、-c、-r 旗標,不再因此呼叫失敗。--tools 與 --restricted 的限制會套用到啟動後才註冊的內建工具,已棄用的工具名稱也不再繞過呼叫者的工具集合。Bash 對萬用字元迴圈的權限檢查已修正。無法取得功能旗標(控制功能是否開啟的開關)時,Claude 3 Opus、Claude 3.x Sonnet 工作階段不再被提供它們會拒絕的工具搜尋。

官方原文

Fixed Bash tool calls failing when the model passes command_description instead of description

Fixed --tools and --restricted not applying to built-in tools that register after launch, and deprecated tool names reaching tools outside the caller's tool set

Fixed Bash permission checks for for-loops over glob patterns, improving permission-check accuracy

Fixed Claude 3 Opus and Claude 3.x Sonnet sessions being offered tool search, which those models reject, where feature flags are unavailable

Fixed the Read tool rejecting calls with an empty pages parameter instead of treating it as omitted

Improved Grep input handling: a search sent with grep's -l, -c or -r flag now runs instead of failing the call

05

百萬上下文請求智慧降級,檔案變更偵測不再誤判已讀

當處理龐大程式碼庫或超長上下文時,系統與模型之間的溝通更加穩健。使用標記百萬上下文([1m])的模型時,若雲端平台拒絕該測試旗標,系統會自動移除旗標並重新發送請求,避免整批請求直接失敗。在檔案讀寫方面,即使檔案修改時間未更新但內容已變動,或是終端機指令未印出內容,編輯工具都不會誤以為檔案已經完整讀取過。大型檔案上傳失敗且未提供原因時,Claude 得到的說明已改善,會回報失敗而不縮小檔案。xhigh 與 max 思考力度下,網路搜尋及 agent 掛鉤(特定事件觸發的小程式)評估耗時過長的問題已修好。

官方原文

Fixed every request failing on a [1m] model when a gateway, Bedrock, Vertex or Foundry refuses the context-1m beta; Claude Code now resends without it

Fixed a file being treated as already read after a Bash command such as cat ran without printing it

Fixed Edit treating a file as fully read when its contents changed without its modification time advancing

Improved what Claude is told when a large file it sends fails to upload with no reason given, so it reports the failure instead of shrinking the file

Fixed web searches and agent hook evaluations taking much longer at xhigh and max effort

06

背景任務取消操作分清楚,服務停止時告知收尾

按 ← 將工作移到背景、還在等工具完成時,停止與繼續工作的操作有不同結果。停止回合會顯示「Backgrounding cancelled」;輸入文字取消背景化,Claude 則繼續在前景工作。CLAUDE_AUTO_BACKGROUND_TASKS 不再於子代理後方仍有編輯或命令排隊時搶先背景化,避免後方呼叫過早開始。macOS 或未安裝服務的 Linux 上,claude agents 與背景服務一起停止時,執行中的工作階段約一分鐘後停止並顯示通知;期間再次執行 claude agents 可避免停止。兩者退出時不再意外啟動新服務,拖延關機或重啟中斷的工作階段。恢復時也不再誤告知 Claude 未完成的背景工作流程可能遭 TaskStop 停止。

官方原文

Added a "Backgrounding cancelled" message when you stop the turn while ← is waiting for the current tool to finish

Fixed CLAUDE_AUTO_BACKGROUND_TASKS moving a subagent to the background while an edit or shell command waited behind it, which started that call before the subagent finished

Fixed Claude stopping at the end of the current tool when text typed in the prompt cancelled backgrounding with ←; Claude now keeps working in the foreground

Fixed claude agents starting a new background service as it exited when both were stopped with a session open (for example at a reboot), which could delay shutdown and restart an interrupted session

Fixed Claude being told on resume that an unfinished background workflow may have been stopped by TaskStop, which can never be the cause

Changed claude agents stopped with its background service (macOS, or Linux without the service installed): running sessions now stop in about a minute unless it is run again, and a notice says so

07

循環排程快捷鍵明確分工,無人看守重試支援時間上限

使用 /loop 定時檢查時,離開連線畫面與停止循環是兩件事。連接背景工作階段,在閒置提示字元按兩次 Ctrl+C 只會離開連線,待執行的喚醒仍保留;按 Esc 才停止循環,取消待執行喚醒也會顯示通知。用 ← 移到背景的自定步調 /loop,Esc 無法停止的問題已修好。若下次喚醒在程序停止期間到期,循環會停止;現在工作階段會顯示通知,Claude 也會得知。無人看守的重試模式 CLAUDE_CODE_RETRY_WATCHDOG 可用 CLAUDE_CODE_RETRY_WATCHDOG_MAX_WAIT_MS 環境變數(啟動程式前提供的設定),限制遇到 429 用量限制或 529 伺服器超載時的最長等待毫秒數。

官方原文

Added CLAUDE_CODE_RETRY_WATCHDOG_MAX_WAIT_MS to limit how long unattended retry mode (CLAUDE_CODE_RETRY_WATCHDOG) waits out 429 and 529 errors

Fixed Esc not stopping a self-paced /loop that was moved to the background with ←; cancelling a pending wakeup now shows a notice

Fixed a background session's /loop stopping without notice when its next wakeup came due while the session's process was down; the session now says so and Claude is told

Changed Ctrl+C at the idle prompt of an attached background session to leave a pending /loop wakeup alone, so pressing it twice detaches and the loop keeps running; press Esc to stop it

08

終端機支援狀態通訊協定,管線輸出與文字複製更乾淨

與 Claude 互動或將輸出交給其他程式時,狀態與回覆不該漏掉。支援程式狀態協定 OSC 7501 的終端機,能在分頁或狀態列顯示 Claude 正在工作、等你輸入或已完成。/copy 可選取引言文字,複製時不帶 >。管線(將輸出接給另一個程式)中緊接淡色字的粗體字,不再被畫成淡色。背景工作階段的命令與掛鉤不再繼承 FORCE_COLOR=3,避免 Claude 讀到顏色跳脫碼。claude -p 若因背景工作開啟新回合,每回合回覆會在回合結束時印出,不再丟失早先回覆。最後回合結束後仍保持開啟時,只有標準錯誤輸出 stderr 連到終端機,才會印出正在等待什麼的說明。

官方原文

Added Program Status Protocol (OSC 7501) support: terminals that implement it can show whether Claude Code is working, waiting on you, or done

Added quoted text to the /copy picker, so a drafted message copies without its > markers

Added a line on stderr, when it is a terminal, that says what a claude -p run is waiting for when it stays open after its last turn

Fixed claude -p text output dropping earlier responses when background work started another turn; each turn's response now prints when the turn ends

Fixed commands and hooks in background sessions inheriting FORCE_COLOR=3, which put color escape codes into the output Claude reads

Fixed bold text being drawn faint in piped output when it directly follows dim text

09

成果頁面底色更清晰,關閉遙測時的權限確認精簡

瀏覽 Claude 產出的互動式成果(Artifact,產出的獨立網頁或程式成果預覽)時,視覺與操作體驗更加流暢。未自訂背景顏色的成果頁面現在改以純白底色呈現,取代以往偏灰的米白色。在關閉診斷遙測傳輸的環境下,成果工具的權限確認對話簡化為與一般環境相同的五個核心問題,不再於每次讀取他人成果或修改資料時反覆打斷;在關閉遙測的安裝中,排程與 Run now(立即執行)例行工作可免詢問發布新的私有成果,或更新自己的成果。

官方原文

Changed Artifact pages with no background of their own to show on white instead of off-white

Changed the Artifact tool's permission prompts with telemetry disabled to the same five questions other installs get, instead of asking before each read of someone else's artifact and each data edit

Changed scheduled and Run now routine runs in installs with telemetry disabled to publish new private artifacts, and update your own, without asking, as in other installs

10

自託管大型儲存庫抓取不再中斷,程式碼複審遺留問題如實回報

在企業自託管環境執行任務或自動程式碼審查時,大型專案曾因等待限制或規則檔太大而出問題。大型 Git 儲存庫抓取期間,伺服器仍回報進度卻被中斷的問題已修好;環境變數(啟動程式前提供的設定)CLAUDE_RUNNER_FETCH_SERVER_PROGRESS_CAP_MS 可調整或關閉等待限制。執行器不再將 CCR_AUTO_MODE_ALLOW、CCR_AUTO_MODE_ENVIRONMENT、CCR_AUTO_MODE_SOFT_DENY 傳入工作階段環境。重新審查時,先前發現的問題仍未解決,評論會指出剩餘數量,不再誤報零問題。合併請求修改大型 CLAUDE.md 專案規則檔時,程式碼審查仍跳過其中規則的問題也已修好。

官方原文

Self-hosted runner: Changed the runner to stop passing CCR_AUTO_MODE_ALLOW, CCR_AUTO_MODE_ENVIRONMENT and CCR_AUTO_MODE_SOFT_DENY into a session's environment

Self-hosted runner: Fixed git fetches being cut off while the git server was still reporting progress on a large repository; CLAUDE_RUNNER_FETCH_SERVER_PROGRESS_CAP_MS tunes or turns off the wait

[Code Review] Fixed Code Review re-reviews saying no issues were found while earlier findings were still open; the comment now says how many remain open

[Code Review] Fixed Code Review still skipping a large CLAUDE.md's rules when the pull request edits that file

修正 18 項

11

掛鉤阻擋失敗動作,修正重新載入時的防護漏洞

當你加上自訂掛鉤(hook,特定事件發生時被觸發的小程式)時,啟動失敗也能阻擋動作。命令與 HTTP 掛鉤支援 onFailure: "block",啟動失敗、逾時或傳回非預期結束碼就阻擋後續動作。深層巢狀工具輸入不再被截斷而漏掉防護。外掛掛鉤背景工作單元重新啟動、模組重新載入期間,原本會繞過另一模組帶有 .catch 的防護掛鉤的呼叫,現在會被拒絕。非同步掛鉤分多行印出的 JSON 也能正確讀取;雲端工作階段不再因 session.receive 掛鉤先請求權限而卡住。工具執行後若遭外掛拒絕,Claude 與你會得知工具已執行,但結果被攔截。⟦大樓門禁重開機時,以前可能漏查另一道關卡,現在這類通行會被拒絕。⟧

官方原文

Added onFailure: "block" for command and HTTP hooks: a hook that can't start, times out, or exits with an unexpected code blocks the action instead of letting it through

Fixed a mod's hook being handed a deeply nested tool input cut short with no error, so a guard could pass content it never saw

Fixed calls a mod makes while it reloads during a plugin hooks worker restart getting past another mod's guard hook that has a .catch; such calls are now refused

Fixed an async hook's JSON output being ignored when it is printed over several lines

Fixed cloud sessions hanging when a mod's session.receive hook asked for permission before passing a message on

Changed what Claude and you read when a mod denies a tool call after the tool ran: it now says the tool ran and a plugin withheld its result

12

外掛市集安裝與驗證補上警告,誤刪問題修好

管理擴充工具時最怕設定檔載入失敗卻毫無動靜。執行 claude plugin install、enable、disable 或新增市集時,若要寫入的設定檔無法載入,會發出警告。在 /plugin 錯誤分頁按 Enter,不再未經確認就移除市集及其外掛。新增市集若名稱無法用於安裝外掛,會直接拒絕;新增或重新整理含大型 Git 子模組的市集時,只抓取含外掛檔案的子模組。子模組是儲存庫內連結的另一份儲存庫。claude plugin validate 遇到 README 缺少安裝指令,會印出可貼上的建議,不影響結束碼,即使使用 --strict 也一樣。掛鉤模組因頂層 var 重新綁定遭拒時,錯誤會指出行號、原因與修法。⟦逛軟體商店時,以前按 Enter 可能誤刪商店與已裝商品,現在會先問你。⟧

官方原文

Added a warning to claude plugin install, enable, disable and marketplace add when the settings file they write to does not load

Added advice to claude plugin validate when a plugin's README has no install line: it prints the line to paste and never changes the exit code, even with --strict

Fixed /plugin's Errors tab removing a marketplace that failed to load, and uninstalling its plugins, on Enter without asking first

Fixed claude plugin marketplace add reporting success for a marketplace whose name no plugin can be installed under; such an add is now refused

Fixed plugin marketplaces whose repository has large git submodules failing to add or refresh: only the submodules that hold plugin files are now fetched

Improved claude plugin validate and plugin loading: when a hooks module is refused over a rebound top-level var, the error now names the line that rebinds it, the cause, and a fix

13

外掛熱重載補上漏接存檔,不再反覆跳出確認詢問

在修改擴充模組並即時查看效果時,漏接存檔可能讓你仍看到舊版本。熱重載(hot reload,修改程式碼後不重啟即時生效的技術)已修好兩種漏接:/reload-plugins 或工作階段啟動正在讀取模組檔案時存檔,以及上次重載後幾毫秒內再次存檔。重載詢問直接放行但未選答案後,不再每回合重複出現;SDK 宿主若在回答前關閉詢問,詢問最多會出現三次,不再整個工作階段都關閉熱重載。外掛選項命名為 constructor 或 prototype 時,不再一直讀到預設值,編輯後也能重新載入。加入大型介面的外掛,在外掛掛鉤背景工作單元停滯時,不再使另一個外掛被卸載。

官方原文

Fixed plugin options named constructor or prototype always reading as their default and never reloading the plugin when edited

Fixed a mod's hot reload missing a save made while /reload-plugins or session start was reading the mod's files

Fixed the mod hot-reloading question being asked again every turn for the whole session when it is approved without picking an answer

Fixed a mod's hot reload missing a save made within a few milliseconds of its last reload, which left the mod on its old version until the next save

Fixed mod hot-reloading turning off for the whole session when an SDK host closed its enable question before anyone answered; the question is now asked up to three times

Fixed a plugin that adds very large interfaces getting another plugin unloaded when the plugin hooks worker stalls

14

外掛設定變更嚴格受檢,提示詞歷程不再殘留無效內容

透過外掛管控對話設定或改寫輸入時,設定與記錄應該反映外掛的決定。使用 /model、/fast、/output-style 或在 /config 切換自動更新管道,會先詢問 config.set 掛鉤(特定事件觸發的小程式),再儲存設定。prompt.submit 掛鉤改寫或捨棄輸入後,提示詞歷程與對話記錄中的待發送提示詞紀錄,不再保存改寫或捨棄前的原始輸入。claude plugin test 不再錯誤放行會移除工具呼叫、工具結果或思考區塊的 session.append 掛鉤,這些區塊在真實工作階段會保留。-p 與 SDK 工作階段不再把產生的型別檔寫入 --plugin-dir 外掛資料夾,只寫到正在開發模組的位置。掛鉤模組程式碼巢狀數千層時,載入或驗證失敗並只顯示堆疊溢位訊息的問題也已修好。

官方原文

Fixed plugins whose hooks module nests code thousands of levels deep failing to load or validate with a bare stack-overflow message

Fixed claude plugin test passing a session.append hook that removes tool call, tool result or thinking blocks that a real session keeps

Fixed /model, /fast and /output-style saving their setting without asking a plugin's config.set hook

Fixed generated type files being written into a --plugin-dir plugin's folder in -p and SDK sessions; they are now written only where a mod is being developed

Fixed a prompt that a mod's prompt.submit hook rewrote or dropped still being saved as typed to prompt history and to the transcript's queued-prompt records

Fixed changing the auto-update channel in /config saving before a plugin's config.set hook was asked

15

Windows 外掛載入與安裝紀錄修正,快取誤判修好

在 Windows 環境或多個連線環境間使用外掛時,可能遇到路徑與管理歸屬判斷錯誤。VS Code 在 Windows 上因磁碟代號大小寫不同而無法載入專案範圍外掛的問題已修好。Windows 的 plugin install、uninstall 在專案或本機範圍操作時,也不再因 C: 與 c: 這類差異漏掉安裝紀錄或新增重複紀錄。長時間運作的工作階段,在另一個工作階段同步 claude.ai 外掛更新後,掛鉤不再錯報「Plugin directory does not exist」。託管設定會列出或啟用外掛的機器上,遭竄改的伺服器託管設定快取(把查過的資料暫存起來直接用)將個人外掛誤判為組織管理外掛的問題也已修好。

官方原文

Fixed a tampered cache of server-managed settings making a person's own plugin count as organization-managed on machines whose managed settings list or enable plugins

Fixed project-scope plugins not loading in VS Code on Windows due to drive-letter casing (anthropics/claude-code#74612)

Fixed plugin install and uninstall at project or local scope on Windows missing the install record, or adding a second one, when only the drive letter's case differs

Fixed claude.ai-synced plugin hooks failing with "Plugin directory does not exist" in long-running sessions after another session synced a plugin update

16

企業閘道改用 AWS CountTokens,花費上限與 Fable 選單修正

管理員查看閘道用量時,工作階段移出群組後不再殘留舊群組與花費上限。Amazon Bedrock 閘道改用 AWS CountTokens API 計算權杖(token,AI 處理與計費的文字單位),取代向模型請求單一權杖的方式,供 /context 與大檔讀取使用;需授予 bedrock:CountTokens 權限。PostgreSQL 資料庫處於唯讀狀態時,每 30 秒記錄警告,說明哪些操作失敗及如何復原。CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC 不再隱藏 /usage 與狀態列的閘道花費上限,花費上限請求會送往目前工作階段登入的閘道。已登入閘道的工作階段,availableModels 中的 Fable 模型現在會顯示於 /model 選單,以內建列取代同模型的 modelPicker 列。

官方原文

Fixed Fable models listed in availableModels not appearing in the /model picker for sessions signed in to a Claude apps gateway; such a model now shows its built-in row in place of a modelPicker row added for the same model

Fixed the Claude apps gateway's admin spend view showing a developer's old groups and group cap after their session stopped carrying groups

Fixed CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC hiding the Claude apps gateway spend limit in /usage and the status line. The spend limit request goes to the gateway the session is signed in to

Improved token counts behind a Claude apps gateway on Amazon Bedrock, which /context and large file reads use: the gateway now gets them from AWS's CountTokens API instead of a one-token model request. Grant bedrock:CountTokens to use it

Improved the Claude apps gateway to log a warning every 30 seconds while its PostgreSQL database is read-only, saying what fails and how to recover

17

外部工具採用退避重連,長時間斷線後可再連線

在無頭模式(headless,沒有終端機視窗的執行模式)或 SDK 程式整合中連接遠端工具時,斷線後不再一直離線。遠端 MCP(讓 AI 連接外部工具的協定)伺服器中斷超過 15 秒後無法重連的問題已修好;反覆連上就斷線時,重連間隔會逐步拉長,最多 30 秒。伺服器錯誤回覆含網路錯誤名稱,不再使連線被誤切斷;分頁指標重複也不再反覆索取同頁。等待資源清單時按中斷鍵,能結束回合而無需等逾時。WebSocket 傳輸收到超過 16 MiB 的訊息,不再解析並會關閉連線,與其他傳輸方式的上限一致。⟦猶如撥打客服專線,以前接通就斷線仍急著重撥,現在會拉長間隔再試。⟧

官方原文

Fixed remote MCP servers in headless and SDK sessions staying disconnected after an outage longer than 15 seconds, or reconnecting in a tight loop to a server that drops each connection right after it connects; repeated drops now back off, up to 30s

Fixed remote MCP connections being dropped when a server's error reply happened to contain a network error name

Fixed MCP servers that repeat a pagination cursor being asked for the same page up to 20 times at every connect

Fixed an interrupt not ending the turn until a timeout while Claude waited for an MCP server's resource list

Changed WebSocket (ws) MCP servers: a message over 16 MiB is no longer parsed and closes the connection, the limit the other transports already have

18

外部工具檔案型別精準辨識,工具說明長度上限放寬

透過外部工具回傳程式碼、樣式或圖示檔案時,檔案格式現在能正確保留。以前 MCP(讓 AI 連接外部工具的協定)工具回傳的 CSS、JavaScript、XML 容易被存成 .bin,使 Read 拒絕讀取;現在這些檔案及字型、圖示都有對應副檔名。工具搜尋載入的說明上限由 2,048 放寬至 16,384 字元。claude mcp serve 的背景 Bash 結果會指出輸出檔名,工具說明也修正了原本承諾會收到、實際卻永遠不會到達的通知。不取得功能旗標的安裝中,claude.ai 連接器預設協商 MCP 協定版本 2026-07-28;功能旗標是控制功能是否開啟的開關,可用 MCP_PROTOCOL_NEGOTIATION=legacy 退出這項協商變更。

官方原文

Fixed CSS, JavaScript and XML files returned by MCP tools being saved as .bin, which the Read tool refuses; font and icon files now get their own extension too

Fixed claude mcp serve background Bash results not naming the output file, and its tool description promising a notification that never arrives

Changed MCP tool descriptions the model loads through tool search to be cut at 16,384 characters instead of 2,048

Changed claude.ai connectors to negotiate MCP protocol version 2026-07-28 by default on installs that fetch no flags; MCP_PROTOCOL_NEGOTIATION=legacy opts out

19

MCP 工具背景任務狀態透明,非互動模式不再多餘警示

當你將耗時較長的 MCP(讓 AI 連接外部工具的協定)工具呼叫放到背景執行時,任務動態的同步變得更加清晰。如果你在任務面板或連線客戶端中手動中止了執行中的 MCP 工具,Claude 會得知工具已停止。工具轉移到背景時所跳出的系統通知,現在會顯示完整的任務識別碼以利辨識。在自動化無人值守的非互動工作階段中,若任務完全不需要使用特定 MCP 伺服器,不再跳出多餘的登入驗證提示;無頭模式(沒有終端機視窗的執行模式)與 SDK 工作階段中,延遲完成的登入或重連,不再把 setMcpServers() 設定的 MCP 伺服器誤列為使用者自己的伺服器。

官方原文

Fixed Claude not being told when you stop a long-running MCP tool call from the tasks panel or a connected client

Fixed the notification for an MCP tool call that moved to the background showing a shortened task id

Fixed non-interactive sessions telling you about MCP servers that need authentication when your request doesn't use them

Fixed an MCP sign-in or reconnect that finishes late in headless and SDK sessions relisting a server set with setMcpServers() as your own

20

子代理工作環境資訊修正,訊息傳遞與技能預載修好

讓子代理(分頭執行子任務的 AI 助理)在獨立工作樹工作時,不再混入主工作階段的 Git 分支、狀態與近期提交。工作樹是同專案的平行副本。Workflow 子代理的技能結果回給呼叫者;代理夥伴首次 SendMessage 不再因工具未載入而失敗。工作階段遭終止後第二次恢復時,也會提醒 Claude 可用 SendMessage 恢復背景子代理。名為 worker 的自訂代理,不再於自動模式拒絕通知及任務詳情活動清單中誤顯示為「Agent」。Skill 工具先於回應串流結束時,allowed-tools 與 effort 不再遺失;兩欄指定可用工具與思考力度,避免 -p 的 Bash 指令遭拒。子代理從 skills 最多預載 32 個技能、各一次,有 Skill 工具仍可呼叫其餘技能。

官方原文

Fixed subagents in their own linked worktree being shown the parent session's git branch, status and recent commits

Fixed a custom agent named worker being shown as "Agent" in auto-mode denial notices and in the activity lists of task detail views

Fixed forked skills invoked from Workflow subagents delivering their results to the main conversation instead of the invoking agent

Fixed in-process agent teammates failing their first SendMessage call until they loaded the tool through tool search

Fixed Claude not being told it can resume background subagents with SendMessage after a session was killed and resumed a second time

Fixed a skill's allowed-tools and effort being dropped when the Skill tool finished before the response stream ended, which denied the skill's Bash commands in -p runs

Changed subagents to preload at most 32 skills from the skills field, each once; a subagent with the Skill tool can still invoke the rest

21

對話倒帶歷程嚴格同步,環境變數與排程狀態精確還原

使用 /rewind 倒帶對話或分支出新主題時,不會再遺失提示詞或誤重啟已停止的任務。倒帶後送出的提示詞,在工作階段移到背景或遭終止後恢復時不再遺失,被刪除的回合也不再重現。已停止的排程不再於倒帶後恢復時重啟;對話壓縮後按 Esc 或倒帶,再恢復工作階段時遺失排程的問題也已修好。剛按 ← 後,用 ↑ 或 Esc 將待發送訊息拉回輸入框,提示詞歷程會保留它。執行 /resume 或 /branch 後,SessionStart 掛鉤(啟動工作階段時觸發的小程式)寫入 CLAUDE_ENV_FILE 環境檔案的變數能傳給 Bash 工具;未變更的非同步啟動掛鉤上下文,也不再於每次恢復時重複加入對話。

官方原文

Fixed an async SessionStart hook's unchanged context being added to the conversation again on every resume

Fixed variables a SessionStart hook writes to CLAUDE_ENV_FILE not reaching the Bash tool after an in-app /resume or /branch

Fixed a queued message being lost when pulled back into the prompt with ↑ or Esc just after ←: prompt history now keeps it

Fixed a stopped scheduled task coming back on resume after a rewind, and a scheduled task being lost on resume after Esc or a rewind following a compaction

Fixed the prompt sent after a /rewind being lost, and the removed turns coming back, when the session was moved to the background or resumed after being killed

22

終端機游標定位修復,連結安全性與介面互動改善

在終端機打字、貼上特殊字元或點擊超連結時,游標與連結顯示不該誤導你。從 macOS 剪貼簿將帶重音標記的文字貼到提示字元中間,游標不再多跳一格。vim(以按鍵指令編輯文字的模式)的 ~ 不再把游標移過行尾,使後續 x 刪除指令無效;3~ 也不再跨入下一行。回覆或代理夥伴訊息中的原始終端機超連結位元組,不再被畫成隱藏位址的可點連結;文字網址也不再被殘留的顏色或隱藏樣式遮住,包括表格換行與問題預覽。/model 的 Max 思考力度會正確標示只適用目前工作階段。/tui 無法重新啟動 Claude Code 時,無訊息退出或顯示原始系統錯誤的問題也已修好。

官方原文

Fixed /tui exiting without a message, or with a raw system error, when Claude Code could not be started again

Fixed a link address shown as text being hidden by a colour or conceal style a reply left on, including where it wraps in a table or a question preview

Fixed raw terminal hyperlink bytes in a reply or a teammate's message being drawn as a clickable link with a hidden address

Fixed vim mode's ~ moving the cursor past the last character of a line, so x after it did nothing, and 3~ running on into the next line

Fixed the cursor landing one character too far after pasting accented text copied from macOS (such as a file name) into the middle of the prompt

Fixed /model saying a Max effort pick was saved as your default for new sessions; Max applies to the current session only

23

終端機超長回覆凍結修好,語法高亮與排版定位修正

當 Claude 產生數萬行回覆或逐漸加深的巢狀引言時,終端機曾卡到難以操作。數萬行回覆造成畫面凍結、Ctrl+C 失效,以及引言每隔幾行就加深而造成數秒停頓與數 GB 記憶體用量的問題已修好。語法高亮(用顏色區分程式碼)遇到超長行、大量連續空白行、未閉合字串或 heredoc 時,停頓數秒至數分鐘的問題也已修好;heredoc 是標記一整段文字起訖的寫法。含 Tab 或雙向控制字元的文字,不再於螢幕邊緣被截斷或覆蓋鄰近行。Tab 定位從文字起點計算;Windows 換行格式 CRLF 的短輸出不再擠成一行。⟦排版時,以前稿件太長或引言越縮越深就卡住,現在這幾種卡住的情境已修好。⟧

官方原文

Fixed the terminal freezing, with ctrl+c ignored, when a response ran to tens of thousands of lines

Fixed replies whose quotes nest deeper every few lines freezing the terminal for seconds and using gigabytes of memory

Fixed text with tabs or bidirectional control characters losing its end at the edge of the screen or drawing over nearby rows

Fixed short command output with Windows line endings (CRLF) being drawn on a single line

Fixed the terminal freezing for seconds or minutes while syntax highlighting code with very long lines, long runs of blank lines, or unclosed strings and heredocs

Changed tab stops to count from where a text starts instead of from the screen's left edge: an answer indented by 2 has its first stop 8 cells in, where it was 6

24

遠端操控檔案傳輸放寬,macOS 隱私權限誤觸修復

使用遠端操控(Remote Control,從其他裝置操作工作階段)或在 macOS 執行背景任務時,可能遇到不該出現的拒絕或權限提示。遠端一次傳送超過 256 個檔案遭「could not be vouched for」拒絕的問題已修好。claude remote-control 剛收到手機訊息、未用 /config 開關,或從 Claude Code 內啟動時,推播已送出卻誤報未送出的問題也已修好。遠端操控、claude.ai 與桌面介面等待權限確認時,會顯示 MCP 工具的伺服器與好讀名稱,取代內部識別碼。在 macOS 家目錄或其上層啟動時,檔案計數誤觸其他應用程式資料存取提示的問題已修好;更新後一起重啟的背景工作階段,也不再偶爾跑到穩定的應用程式包裝外而再次引發資料夾權限提示。

官方原文

Fixed PushNotification saying a push was not sent in claude remote-control sessions right after a phone message, without the /config toggle, or when started from inside Claude Code

Fixed files sent from remote sessions being refused as "could not be vouched for" when more than 256 were sent at once

Fixed macOS background sessions that restart together after an update sometimes running outside the stable app wrapper, so folder-access prompts could reappear

macOS: Fixed a file count at session start that could reach other apps' data and raise the "access data from other apps" prompt when a session starts in the home folder or above it

Improved the status shown in Remote Control, claude.ai and the desktop app for a session waiting on a permission prompt to name an MCP tool by its server and readable name instead of its mcp__server__tool identifier

25

Chrome 網址規則防護修復,自動模式切換與暫存清理完善

設定網址封鎖規則、自動模式或清理磁碟時,先前幾種不合預期的行為已修好。Chrome 擴充功能的 host:80 封鎖規則,能套用到該主機的一般 HTTP 網頁。移除 disableAutoMode 後,桌面端與 SDK 程式整合不用重新啟動即可切回自動模式。中斷 /ultrareview 上傳後留在 ~/.claude/seed-admin 的暫存檔,會由保留期限清理機制移除。/advisor 保存的顧問模型已不可用時,面板會開在「No advisor」;登入重新整理後,啟動時偶爾載入託管設定失敗的問題也已修好。無頭模式(沒有終端機視窗的執行模式)的 rate_limit_event 用量上限警告,會說明帳號是否開啟額外用量。

官方原文

Fixed Claude in Chrome not applying a site deny rule written with port 80 (host:80) to plain http:// pages on that host

Fixed a rare failure to load managed settings at startup right after a login refresh

Fixed the /advisor dialog showing a checkmark on a saved advisor model that is no longer available; it now opens on "No advisor"

Fixed temporary files left under ~/.claude/seed-admin by an interrupted /ultrareview upload never being removed by the retention cleanup

Fixed Desktop and SDK sessions refusing to switch back to auto mode until restart after disableAutoMode was removed from settings

Improved headless rate_limit_event usage-limit warnings to say whether the account has extra usage turned on

26

[VSCode] 聊天室支援點擊開啟檔案,分岔對話與快捷鍵修復

在 VS Code 編輯器內與 Claude 協作時,檔案查閱與多視窗切換不再互相干擾。聊天室會將 Claude 傳送的檔案獨立列出一行,點擊檔名即可在編輯器開啟,下方附有說明,專注檢視中也保持可見。在背景代理活動或面板自身狀態列之後,使用「從此處分岔對話」或倒帶而恢復失敗、顯示「Message not found in session」的問題已修好。輸入框的 Ctrl+Shift+Tab、Cmd+Shift+Tab、Alt+Shift+Tab 不再誤切換權限模式,Ctrl+Tab 也不再誤接受建議提示詞。兩個 Claude 視窗同時可見時,鍵盤焦點不再來回跳動,導致文字送到錯的對話。

官方原文

[VSCode] Added a chat row for files Claude sends you: click a file's name to open it in the editor; Claude's caption shows underneath, and the row stays visible in Focus view

[VSCode] Fixed "Fork conversation from here" and Rewind's conversation restore failing with "Message not found in session" after a background agent's activity or one of the panel's own status lines

[VSCode] Fixed Ctrl+Shift+Tab, Cmd+Shift+Tab and Alt+Shift+Tab in the chat input also switching the permission mode, and Ctrl+Tab accepting the suggested prompt

[VSCode] Fixed keyboard focus bouncing between two Claude views visible at once, which could send typed text to the wrong conversation

27

[Cloud sessions] 重連紀錄整批顯示,解除封存後漏回覆修好

在雲端工作階段中運行長時任務或排程時,斷線重連與設定體驗均有感提升。解除封存後立即傳送訊息,偶爾因無法啟動容器(執行工作的隔離環境)而沒有回覆的問題已修好,舊版例行排程也會如實帶入預存的提示詞。當網路連線短暫中斷後重新連上時,漏掉的對話紀錄會整批一次性呈現在畫面上,不再逐行緩慢爬出。雲端環境設定表單中的安裝腳本輸入框預設高度增加,不僅能隨內容自動擴展,也支援自由拖曳調整大小。⟦看漏播的節目紀錄時,以前得等畫面一格格補上,現在漏看的活動會一次呈現。⟧

官方原文

[Cloud sessions] Fixed a message sent right after unarchiving a cloud session sometimes getting no reply because no container could start for it

[Cloud sessions] Fixed some older routines starting their runs without ever giving Claude their saved prompt; those routines now run their prompt again

[Cloud sessions] Improved how quickly a cloud session catches up after its connection drops: activity you missed now appears all at once instead of row by row

[Cloud sessions] Improved the setup script box in the cloud environment form: it starts taller, grows with your script, and can be resized by dragging

28

[Claude Tag] Slack 協同卡片停留時間延長,頻道轉發與重啟修復

在 Slack 團隊頻道用 @Claude 協作時,確認卡片與通知有幾項調整。設定確認卡片從 10 分鐘延長至 30 分鐘。Enterprise Grid(Slack 的多工作區企業方案)跨工作區共享頻道使用組織預設設定的通知,只在有人標記 Claude 時發送,每月至多一次。分岔討論串承接卡片的頻道連結與成員標記,不再顯示原始 Slack 碼。@Claude !restart 確認重啟後,運算中旋轉圖示不再持續轉動;忙碌頻道停止讀取未標記訊息後,其他應用程式或機器人的 @Claude 不再漏回覆。管理員新增頻道管理者時,若會將成員移至 Custom roles(自訂權限角色),可能移除其他存取權,操作前會先確認。

官方原文

[Claude Tag] Changed the settings confirmation cards Claude posts in a Slack channel to stay open for 30 minutes instead of 10

[Claude Tag] Changed Claude's notice that a channel shared across Enterprise Grid workspaces uses organization defaults to post only when someone mentions Claude, at most once a month

[Claude Tag] Fixed channel links and @-mentions in a forked thread's "Continued from" card showing as raw Slack codes

[Claude Tag] Fixed Slack's Working status spinning on under a thread after @Claude !restart had already confirmed the restart

[Claude Tag] Fixed another app's or bot's @Claude going unanswered in a busy channel where Claude had stopped reading untagged messages

[Claude Tag] Added a confirmation in Claude Tag admin settings before adding a channel manager moves that member to Custom roles, which can remove their other access