Claude Code 2.1.314
新功能 12 項
嚴格限制寫入目錄,防止修改專案範圍外的檔案
在終端機授權 Claude 修改專案時,若沒有特別劃定邊界,工具可能會不小心碰到其他資料夾。現在新增了 permissions.blockWritesOutsideWorkingDirectories 設定。只要在設定檔中啟用,無論目前處於哪種權限模式,Write、Edit 與 NotebookEdit 等所有寫入工具,都會直接拒絕修改工作目錄外的路徑。
```json { "permissions": { "blockWritesOutsideWorkingDirectories": true } } ```
⟦猶如在木工工作台上加裝安全擋板,以前工具運轉時容易削到桌緣外的雜物,現在所有切削刀具都被硬性限制在桌面範圍內。⟧當你要讓工具自動修改大量檔案時,開啟這項設定就能確保專案以外的個人檔案不會被意外改動。
官方原文
Added permissions.blockWritesOutsideWorkingDirectories: Write, Edit and NotebookEdit refuse paths outside the working directories in every permission mode
閒置對話自動整理摘要,支援主流雲端平台與掛鉤防護
把長對話擱置在編輯器一旁後,重新提問時往往會因為超出長度而耗費額外的處理資源。VS Code 與 Claude Desktop 新增了閒置壓縮機制。只要對話超過 20 萬個 token(AI 處理與計費的文字單位)且處於閒置,系統便會預先產出摘要。⟦宛若會計事務所利用午休裝訂憑證,以前案卷散落會拖慢查帳,現在趁離席空檔將過期單據濃縮成總表,回到座位便能直接對帳。⟧一旦快取(cache,把算過的結果暫存起來直接用)過期,下一次送出訊息就會直接使用這份摘要。這項機制現在也開放給關閉遙測的使用者,以及開啟一小時快取的 Bedrock、Vertex、Foundry 與各大閘道。壓縮前掛鉤(hook,特定事件發生時會觸發的小程式)輸出若過大,內容會硬性截斷在 10,000 字元以內,避免對話壓縮失敗。
官方原文
Added idle compaction to VS Code and Claude Desktop's Code tab: a 200K+ token conversation left idle is summarized, and the summary is used on your next message if the prompt cache has expired
Fixed a PreCompact hook with very large output making compaction fail or repeat; each hook's output is now cut at 10,000 characters
Changed idle compaction to also run for subscribers with telemetry turned off, and on Bedrock, Vertex, Foundry and LLM gateways once the one-hour prompt cache is on
擴充工具憑證過期自動轉為訪客,加速查詢上萬工具
專案若串接了大量外部擴充套件,過期的登入憑證常會讓原本公開可用的功能無法調用。現在即使 MCP(Model Context Protocol,讓 AI 連接外部工具的協定)伺服器儲存的登入狀態失效,只要該伺服器支援免登入,就會自動以訪客身分繼續運作,不再卡在需要身分驗證的錯誤提示。在 SSH 連線導致鑰匙圈鎖定而無法移除憑證時,執行 claude mcp logout 不會再虛報登出成功。⟦跟參觀開放展覽館一樣,以前會員卡過期就連大門都不准進,現在驗證失效時會引導你換發一般訪客手環,照樣能瀏覽常設展區。⟧此外,當工作階段掛載上萬個擴充工具時,輸入 /context 檢查環境的載入速度顯著提升。
官方原文
Fixed MCP servers that also work without sign-in showing "needs authentication" after their stored sign-in stopped working; they are now used signed out
Fixed claude mcp logout reporting success when the MCP sign-in was not removed, for example while the macOS keychain is locked over SSH
Improved /context speed in sessions with ten thousand or more MCP tools
嚴格執行工作區信任檢查,修改組織託管設定主動確認
自動化整合流程或團隊協作中,若工具隨意讀取不受信任的程式碼,可能帶來嚴重的資安威脅。在帶有終端機的持續整合環境中,若環境變數偵測到 CI,執行審查或遠端操控時只要目錄未獲信任便會立刻中止,不再跳出詢問提示。在終端機輸入 /ultrareview 時,也會在執行 Git 指令前先確認工作區是否獲得信任。⟦猶如自動化無人哨所執勤,偵測到非授權訪客時直接拉下閘門,而遇到維修總部機密控制台時也必須先核驗操作員密碼。⟧此外,當檔案工具嘗試修改本機快取的組織伺服器託管設定時,必須先獲得你的確認同意,比照一般個人設定檔的嚴格標準處理。
官方原文
Fixed claude ultrareview and claude remote-control asking the workspace trust question in a CI job that has a terminal; with CI set they now refuse an untrusted folder at once
Changed Claude's file tools to ask before editing the local copy of your organization's server-managed settings, as they do for your settings files
Changed /ultrareview to check workspace trust before it runs git, as claude ultrareview does
妥善處理多工作階段憑證鎖定,行動訂閱升級精確引導
本機若同時開啟多個工作階段,或者透過不同管道訂閱方案,帳號驗證一旦衝突便會中斷手邊工作。現在當多個工作階段共用同一個登入設定檔時,即使憑證鎖定正忙碌,也不會再觸發不必要的重複換發手續。對於透過行動應用商店扣款的訂閱方案,輸入 /upgrade 不會再開啟瀏覽器強制重新登入,而是直接說明應前往何處變更方案。⟦跟持專案工作證進出管制大樓一樣,同組人員共用憑證不再重複在門口換證,由特殊通路簽約的成員也能獲得正確的續約指引。⟧雲端工作階段遇到帳號存取被拒時,錯誤提示會主動建議執行 claude auth login 重新驗證。針對企業行動裝置管理與遠端設定網址不一致的狀況,也優化了儲存憑證的套用行為。
官方原文
Fixed extra sign-in renewals when several sessions share an Anthropic profile login and the credentials lock is busy
Fixed /upgrade opening the browser and starting a new login for plans billed through the App Store or Google Play; it now says where to change the plan
Improved the cloud session error shown while a request refused for your claude.ai login is still being retried: it now also suggests claude auth login
Improved the behavior of stored claude.ai, Team, and Enterprise logins when MDM and remote settings differ on base URL or apiKeyHelper
自動模式清楚標示被攔截指令,未完成安檢不誤報封鎖
讓工具在自動模式下自主執行任務時,若遇到指令被攔截,清楚明瞭的狀態提示才能幫助你快速排除障礙。以前被規則或掛鉤阻擋的指令,容易在收折清單中看起來像已經執行完畢,現在會明確標示未曾運行。當安全檢查未給出明確結論時,自動模式不會再直接判定為封鎖並塞入權限清單中。在指令被阻擋時,提示訊息會清楚點名該指令,說明助手可能會重試且會再次檢查,並引導你輸入 /permissions 進行審查。在 Cowork 雲端環境中,掛鉤放行外部工具時改為由分類器或確認視窗接手把關。以前指令被阻擋時介面資訊容易混淆,現在攔截狀態一目了然,使用者能精確掌握每道指令的審查結果。
官方原文
Fixed shell and MCP calls that auto mode, a deny rule or a PreToolUse hook blocked, or that otherwise did not run, reading as if they ran in a collapsed tool group
Fixed auto mode reporting a call as blocked, and listing it in /permissions, when its safety check gave no verdict
Improved auto mode's blocked calls: messages name the command, say Claude may retry and auto mode checks again, and point to /permissions to review
Changed auto mode in Cowork cloud sessions: a hook's allow of an MCP tool call now counts as no answer, so the classifier or a permission prompt decides
設計同步預覽增減檔案,資料視覺化改用長條圖呈現
呼叫專屬技能產生圖表或同步專案設計時,更清晰的提示與更專業的圖表能節省反覆確認的時間。輸入 /design-sync 同步設計時,確認提示會詳細列出目標資料夾、專案名稱以及即將上傳或刪除的檔案清單。內建的資料視覺化技能在面對圓餅圖或甜甜圈圖需求時,改為建議使用排序長條圖或帶有數值的堆疊長條圖呈現,且在數字長度允許時建議完整標示座標軸刻度。⟦跟裝修工程進場施工一樣,開工前在清單上清楚勾選拆除與進場物件,設計圖改用直觀的刻度尺規,避免了圓盤圖表的判讀誤差。⟧此外,API 技能更新了 Datadog 追蹤標頭使其與主控台一致,並簡化安裝步驟,且在調整受管代理前會主動要求先讀取完整工作流程。
官方原文
Improved the /design-sync upload prompt to show the folder, the project and the files it will upload or delete
Updated the /claude-api skill: its Datadog setup for API tracing now sends the dd-llmobs-enabled: true header, as the Console does, and its ant install instructions drop the outdated macOS xattr step
Updated the bundled dataviz skill to advise printing y-axis tick labels in full under 10,000, and horizontal ones in full under a million where they fit
Updated the bundled dataviz skill to answer donut and pie chart requests with ranked bars or a segmented bar that prints its values
Changed the claude-api skill to ask to read a Managed Agents workflow run's workflow before changing the agent to improve that run
權限清單標示快捷鍵行為,視窗太小直接拒絕盲目批准
審核工具即將執行的敏感指令時,若畫面空間不足或快捷鍵作用不明,容易引發誤批的安全風險。在 /permissions 審查頁面中,分頁正式定名為「最近被封鎖」,底部列會明確說明按下 Esc 鍵對已勾選項目的影響。當終端機視窗過小導致無法完整閱讀指令內容時,系統會直接拒絕審批,防止在資訊不全的情況下盲目放行。⟦如同主管在公文簽核時查驗單據,以前表格字體過長會將關鍵金額擠出紙外,現在頁面重新排版,遇有裁剪缺漏的附件一律退回要求補齊。⟧此外,權限請求提示也精簡了長理由的行數占用,在較矮的終端機螢幕中能保留更多空間完整顯示待核准的指令。
官方原文
Improved /permissions review tab, now called Recently blocked: the footer says what Esc will do with marked rows
Improved permission prompts: a long reason takes fewer rows, so it pushes the command being approved off the screen on fewer terminals
Changed /permissions Recently blocked to refuse approving a call you can't read in full, including one the terminal is too short to show
VS Code 擴充套件錯誤主動跳出通知,保留錯過的單次排程
在 VS Code 編輯器中使用 AI 助手管理各項排程或分組時,若背景操作失敗卻靜默無聲,會造成設定狀態不同步。當清除 MCP 伺服器的驗證憑證失敗時,不會再誤報為清除成功。當工作階段分組無法成功儲存(例如刪除分組失敗)時,系統會主動跳出錯誤通知,不再靜默失敗。此外,在沒有開啟聊天對話的情況下啟動擴充套件時,先前錯過執行時間的單次排程任務不會再被擅自刪除,完整保留待辦項目。以前編輯器內的狀態變更若發生失敗容易讓人誤以為已生效,現在各項異動都有精準回報,且排程任務更有保障。
官方原文
[VSCode] Fixed "Clear authentication" for MCP servers reporting success when the saved sign-in could not be removed
[VSCode] Fixed session group changes that cannot be saved, such as a delete, failing silently; an error notification now appears
[VSCode] Fixed missed one-time saved scheduled tasks being deleted without asking when the extension opened without a chat
VS Code 支援非拉丁鍵盤語音聽寫,計畫預覽啟用搜尋快捷鍵
在 VS Code 開發環境中與助手協作時,各項常用快捷鍵若無法正常運作,會嚴重打斷流暢的開發節奏。在計畫預覽分頁中,現在按下 Cmd+F 或 Ctrl+F 能順利開啟搜尋列。在使用俄文、希臘文或希伯來文等非拉丁鍵盤配置時,語音聽寫快捷鍵(Ctrl+D)也能如常觸發錄音。排隊訊息執行掛鉤時,介面會正確顯示旋轉圖示與停止按鈕。另外,設定 CLAUDE_CODE_DISABLE_CFC_PROMPT 時,能停止將瀏覽器擴充提示注入工作階段的訊息中,同時完整保留瀏覽器工具的使用權利。以前多語系鍵盤或計畫分頁中的操作容易卡關,現在各項輔助輸入與畫面控制項都能正常回應。
官方原文
[VSCode] Fixed missing spinner and Stop button while a queued message's hooks run
[VSCode] Fixed Cmd+F / Ctrl+F not opening the find widget in the plan preview tab
[VSCode] Fixed the voice dictation shortcut (Ctrl+D) doing nothing under non-Latin keyboard layouts such as Russian, Greek or Hebrew
[VSCode] Changed CLAUDE_CODE_DISABLE_CFC_PROMPT to also stop the extension adding the Claude in Chrome instructions to a session's messages; the browser tools stay available
排程任務快速顯示已完成項目,自託管環境清單支援滾動
在雲端管理平台監看大量自動化排程與自託管環境時,操作介面的易用性直接影響設定效率。在排程任務頁面中,當畫面僅隱藏已結束的單次任務時,現在可以直接點擊新按鈕來包含已完成項目,不必再特別點開排序選單。建立新工作階段時,最近使用過的自託管環境會確實出現在推薦卡片中。管理設定內的環境詳情對話框支援了滾動捲軸,在小視窗或高縮放比例下也不會將內容擠出可視範圍。⟦跟物流調度中心查閱派工單一樣,不必翻開深層歸檔選單就能直接展開歷史紀錄,螢幕縮小也能輕鬆滾動檢視每台車輛的詳細配置。⟧在雲端執行的排程任務會自動載入帳號啟用的外掛程式,且測試企業版 GitHub 連線時也會模擬雲端環境進行二次驗證。
官方原文
[Cloud sessions] Added an Include completed button to the Scheduled tasks page when finished one-off tasks are the only ones hidden, so you can show them without opening the Sort menu
[Cloud sessions] Fixed recently used self-hosted environments never appearing among the recent environments on the new session card
[Cloud sessions] Fixed the self-hosted environment details dialog in admin settings squeezing its content out of view in very short windows or at high zoom; the dialog now scrolls
[Cloud sessions] Improved scheduled tasks: runs in Anthropic's cloud now load the plugins enabled on your claude.ai account
[Cloud sessions] Improved Test connection for GitHub Enterprise in admin settings to also connect the way cloud sessions do, and to warn you when that second test fails
Claude Tag 管理後台提供文件連結,重試載入保留未存編輯
管理員在 Slack 整合環境中為團隊配置標記工具時,管理後台的表單穩定性至關重要。現在已串接 Slack 的企業組織,會在管理後台的分頁看見可關閉的 API 文件連結,方便隨時查閱整合規範。在技能與外掛程式設定頁面中,若載入失敗並點擊重試,先前尚未儲存的權限異動會完整保留在輸入框中,不再因重新載入而被強制清空。此外,儲存庫控制項修復了選單重複列出相同操作項目的問題,現在選單只會列出主要按鈕尚未涵蓋的功能。以前在後台設定權限若遇連線重試容易遺失手動填寫的內容,現在表單狀態更加穩固,選單指示也更為精準。
官方原文
[Claude Tag] Added a dismissible link to the Claude Tag API docs on the Bundles and Channels tabs in admin settings, for Enterprise organizations with Slack connected
[Claude Tag] Fixed Retry on plugin and skill pages in Claude Tag admin settings discarding unsaved access changes after a failed load; your edits now stay in place
[Claude Tag] Fixed the repositories control in Claude Tag admin settings showing the same action twice; its menu now lists only what the button doesn't already do
修正 18 項
應用程式閘道支援群組分流,完善防護紀錄與逾時修復
企業內部透過應用程式閘道派發請求時,往往需要依據開發團隊的身分劃分不同線路。現在閘道上游新增了選填群組名單,只有在身分提供者群組內的開發者才會被導向指定上游,發生備援切換時也維持相同規則。針對 Amazon Bedrock 上游新增了防護追蹤設定,會記錄觸發了哪一項安全過濾機制而不會印出比對文字。此外修正了 Vertex 上游遇到 Google 憑證端點無回應而卡住數分鐘的問題,過期金鑰的啟動警告文字也一併修正。⟦彷彿機場海關依護照類別分流通道,指定身分的旅客才能走專屬查驗線,遇到轉機換櫃也維持相同安檢標準。⟧
官方原文
Added an optional groups list to Claude apps gateway upstreams: only developers in the listed IdP groups are sent to that upstream, on failover too
Added guardrail_trace to Claude apps gateway Bedrock upstreams, to log which Amazon Bedrock guardrail filter fired on a request, without the matched text
Fixed a Claude apps gateway Vertex upstream hanging for minutes when a Google token endpoint accepts the connection and never answers
Fixed the Claude apps gateway's start-up warning for a deprecated Claude Desktop key that it still serves as written saying "stops being accepted" after the key's end date
調適組織思考強度上限,遇部署缺漏自動切換相容模型
團隊若對模型存取設有限制,工作階段常因為參數超標或缺少部署而突然中斷。若組織管理員限制了思考強度上限,現在遇到參數無效時會自動調降強度、重新嘗試並告知使用等級。在 Microsoft Foundry 缺少預設模型部署時,會自動切換至同系列的舊版模型作為備援。受管設定釘選模型後,Bedrock 與 Vertex 不會再於每次啟動時跳出升級提示。即使個人外掛程式清單損壞,也不再阻擋模型切換。此外,復原或繼續工作階段時會保留原本未知的自訂模型名稱,而遇到要求被標記時,若設定允許也會嘗試改用其他可用模型重送。以前在嚴格受管的環境下切換或復原模型容易直接報錯卡死,現在系統會自主尋找相容配置維持對話順暢。
官方原文
Fixed sessions failing turn after turn with "Invalid effort level" when an organization's admin caps a model's effort: Claude Code now lowers the effort, retries, and says which level it uses
Fixed Microsoft Foundry sessions failing when the resource has no deployment for the default Sonnet, Opus or Haiku model: Claude Code now falls back to an older model of that family
Fixed model switching being refused on machines with managed plugin settings when one of your own --plugin-dir or --plugin-url plugins had a broken manifest or failed to download
Fixed the Bedrock and Vertex model upgrade offer coming back at every start when managed settings pin the model
Fixed --resume, and rewinding past a switch to another model after a refusal, moving a session on a model name Claude Code doesn't recognize to a different model
Changed flagged requests to retry on another model, not end in a refusal, when ANTHROPIC_DEFAULT_OPUS_MODEL, availableModels or deniedModels leaves only an older Opus model, or none
修正命令列非零結束代碼,強化憑證驗證與背景執行
在腳本或自動化管線中呼叫指令列工具時,若錯誤沒有正確回報,常會導致除錯方向徹底偏差。現在使用 claude -p 啟動失敗時,會印出錯誤原因並以結束代碼 1 離開,不再靜默回傳成功。當系統憑證庫(certificate store,存放根憑證的地方)中更新後的根憑證由前一版根憑證交叉簽署時,TLS 連線不再因找不到簽發者而中斷。背景常駐程式啟動失敗時,也不再誤報成執行檔已被刪除。另外,包含指令輸出標籤的提示能正確向本機回應,而將 FORCE_HYPERLINK 設為 false、no 或 off 都會關閉終端機超連結。
官方原文
Fixed claude -p exiting with code 0 and no output when startup failed; it now prints the error and exits 1
Fixed TLS connections failing with UNABLE_TO_GET_ISSUER_CERT when the system certificate store holds a renewed root certificate that is cross-signed with its predecessor
Fixed prompts containing tags such as <bash-stdout> or <local-command-stdout> not being acknowledged to a local stream-json host
Fixed background sessions that fail to start being reported as a deleted daemon binary when the binary is still on disk
Changed FORCE_HYPERLINK=false (also no and off) to turn hyperlinks off instead of on
改善長篇文件與多圖處理,長度超標主動提示未讀範圍
對話中一旦傳送大量截圖或長篇文件,輸入內容過大常會讓遠端工具無聲無息地遺漏資訊。現在在 Bedrock 工作階段中堆積過多圖片時,執行壓縮會主動移除舊圖片來順利縮減長度,不再每次回覆都卡在輸入過長的錯誤。在遠端 Linux 主機透過 SSH 連線時,若嘗試直接貼上圖片,提示框會明確指引你將檔案複製到主機並貼上路徑,不再毫無反應。⟦恰似快遞收發中心處理超重包裹,以前遇到箱子塞不下便直接拒收或偷偷扣件,現在會主動分裝打包並在清單上清楚註明未裝入的項目。⟧在 Cowork 雲端工作階段中使用網頁抓取工具讀取 PDF 時,若文字內容超出 10 萬字元,會主動說明有多少內容未被讀取以及如何接續查閱。
官方原文
Fixed Bedrock sessions with many images failing every turn and /compact with "400 Input is too long." instead of removing older images and compacting
Fixed pasting an image over SSH to a Linux machine doing nothing silently; the prompt now says to copy the file over and paste its path
Fixed WebFetch in Cowork cloud sessions silently dropping a PDF's text past 100,000 characters; it now says how much was unread and where to read on
相容企業閘道轉發規則,記住退避設定並正確認知自訂模型
許多團隊透過自建閘道轉發請求,常會因為轉發器不支援部分測試標頭而導致連線失敗。若閘道無法處理工具搜尋中的參考區塊,工作階段會自動略過該區塊重送一次並記住這項偏好,避免反覆被拒。當雲端提供者或閘道明確拒絕特定的測試標頭時,也會自動剔除該標頭並重新發送請求。⟦比照國際包裹在轉運站通關,遇到查驗機讀取不到特殊條碼時,轉運員會撕去附加標籤重新過磅,並在紀錄卡記下該站點的清關慣例。⟧此外,針對名稱中帶有小數點的自訂模型(例如 claude-opus-4.8),也不會再誤判為舊型號,能套用正確的上下文視窗大小、輸出長度與計費設定。
官方原文
Fixed repeated refused requests behind a gateway that doesn't accept tool search's tool_reference blocks: the request is sent again once without tool search, and the session remembers
Fixed requests failing when a gateway or cloud provider refuses one of Claude Code's beta headers by name: the request is sent again without it
Fixed model IDs spelled with a dot behind an LLM gateway, such as claude-opus-4.8, being treated as an older model with the wrong context window, output limit, effort, thinking mode and cost
強化企業受管原則套用,避免無網路時脫離安全政策
管理者為內部成員配置統一的安全原則時,設定不該因為離線或客戶端差異而失效。現在管理者在託管設定中指定的憑證信任原則,會確實套用至 Claude Desktop 的工作階段中。設定了強制遠端重新整理時,即便本機快取過期且無法連上伺服器,也不會再允許工作階段在無防護狀態下啟動。透過 --setting-sources 明確排除的設定檔,其內部的自動模式規則與授權紀錄會被徹底忽略。另外,當組織政策停用雲端工作階段或遠端操控時,相關提示訊息會徹底隱藏。以前設定過期或切換執行環境容易讓政策出現漏洞,現在各項管理邊界無論連線狀態都能完整生效。
官方原文
Fixed an administrator's TLS trust settings in managed settings not being applied in Claude Desktop sessions
Fixed forceRemoteSettingsRefresh set only in remote managed settings no longer applying once the stored copy had expired, which let sessions start without policy when the server could not be reached
Fixed a settings file excluded with --setting-sources still supplying some settings, such as auto mode rules and saved permission consents
Fixed the cloud sessions tip and the Remote Control idle notice showing when an organization's policy turns those features off
限制額度重試次數,手動中斷指令能告知已執行的可能
放手讓排程或背景任務自行運作時,若缺乏適當的剎車機制,系統可能會在耗盡額度時不斷無效空轉。遇到額度上限時,「自動繼續」功能現在嚴格限制在未收到新提示的情況下最多僅能自動重試三次,防止目標檢查或背景任務無限重啟。如果在背景或雲端工作階段關閉了 Ultracode,下次啟動時會確實維持關閉狀態,不會再度擅自開啟。此外,當你在雲端或整合開發環境按下 Esc 或停止按鈕中斷指令時,通知不會只回報指令被拒絕,而是會明確提醒可能已經有部分程式碼實際執行過。以前任務中斷後容易誤判環境狀態或陷入重試迴圈,現在系統既能嚴守重試上限,也能讓助手更真實地掌握指令執行進度。
官方原文
Fixed "Continue automatically at usage limit" continuing more than three times without a prompt from you when a task restarted itself between waits (a /goal check-in, a background or scheduled task)
Fixed background and cloud sessions started with Ultracode turning it back on at their next start after it had been switched off
Fixed Claude being told only that a command was declined after you stopped it with Esc or Stop in a cloud session or the IDE; it now also hears that the command may have run
穩定表格即時串流排版,清理對話失敗重試殘留痕跡
在終端機瀏覽助手即時生成的長篇回答時,畫面若頻繁跳動或遺留殘缺內容,非常影響閱讀體驗。當工具呼叫解析失敗且最終放棄時,對話中不再保留破裂的回答與重試提示。現在即時串流輸出 Markdown 表格時,未完成的資料行不會再於格狀與直列排版間反覆跳動,超長表格也不會退回成原始管道符號。⟦如同印刷機在高速打樣時校正滾筒,以前未印完的段落會造成排版錯位與溢墨,現在即時上墨整齊劃一,作廢的校樣也會立刻收納乾淨。⟧程式碼區塊開頭的空行不會在引號內消失,按 Ctrl+O 查看對話紀錄時也不會在折疊符號上方冒出多餘空行。另外,在向上捲動狀態下執行復原對話時,全螢幕紀錄不會再停在半截未完成的位置。
官方原文
Fixed the last broken reply and its retry prompts staying in the conversation after Claude gave up on a tool call that could not be parsed
Fixed markdown tables jumping between grid and stacked layouts on half-typed rows while streaming, and long tables falling back to raw pipes
Fixed blank lines at the top of a code block disappearing when the code block opens a quote
Fixed a blank line appearing above some ⎿ rows in the transcript view (Ctrl+O)
Fixed the fullscreen transcript being left mid-conversation after "Restore conversation" in the rewind menu while scrolled up
避免背景比對鎖死 Git,設定垃圾桶上限並降載檔案監聽
頻繁在大型專案中儲存檔案時,背景工具如果過度占用系統資源,很容易干擾日常的版控操作。以前背景自動整理差異時會短暫鎖定 Git 索引,現在不再與你在終端機執行的 Git 指令搶奪鎖定資源。技能與外掛程式的垃圾桶目錄現在設有約 1024 筆的容量上限,且檔案監聽器不再掃描垃圾桶內的廢棄檔案,能減輕磁碟負擔。⟦宛如清潔人員在後台整理備品,不再霸佔主走道的貨物推車,並定期清空廢棄物暫存區,確保前台物流通行無阻。⟧在啟用換行符號轉換的專案中編輯檔案時,不會再因單行修改而將整份檔案誤判為全部變更。在 macOS 上執行搜尋時也改用 C 語言區域設定,避免正規表達式(regex,用符號匹配字串的語法)函式庫在讀取非 UTF-8 檔案時發生記憶體流失。
官方原文
Fixed background diff refreshes briefly taking the repository's index lock, which could make a git command run at the same moment fail with "Unable to create '.git/index.lock': File exists"
Fixed the skill file watcher checking every removed skill kept in ~/.claude/skills/.trash, which added file system load that grew with each removal
Fixed ~/.claude/skills/.trash and ~/.claude/plugins/.trash growing without limit: each now holds about 1024 entries, whatever cleanupPeriodDays says
Fixed the Bash edit diff listing a whole file as changed when a CRLF file under git's line-ending conversion was re-saved unchanged or had one line edited
macOS: Changed git grep in most commands that Claude runs to use the C locale, to avoid a reported memory leak in macOS's regex library on files that aren't valid UTF-8
智慧生成工作階段標題,修復重命名遺失與清單殘留
平時在多個終端機視窗並行處理任務時,清單若無法清楚辨認每個對話名稱,往往會浪費許多翻找時間。現在以特定技能或指令開頭的工作階段,會自動以該指令命名,即使首則提問失敗也不會再永久顯示為未命名。在執行斜線指令時,工作階段選擇清單不會再錯誤抓取說明檔案內容作為標題。在等待權限確認時,透過 /rename 設定的名稱會持續保留,方便辨識並列視窗。已刪除的紀錄不再異常重新現身,而面對損毀的紀錄檔時,使用 --resume 恢復對話的速度與記憶體表現也顯著提升。以前工作階段清單容易出現空白或錯置的檔名,現在對話命名更加精確,並行作業時不再混淆各個視窗的進度。
官方原文
Fixed the /resume picker showing the text of CLAUDE.md or CLAUDE.local.md as a session's title when the session only ran slash commands
Fixed a rare case where a deleted session could reappear in the resume list as an almost empty entry
Fixed sessions staying untitled when the first prompt failed (for example on a usage limit) and the conversation continued afterward
Fixed the session name from /rename disappearing while Claude asks for permission or a plan decision, so side-by-side sessions stay identifiable
Improved session auto-titles: a session that starts with a skill or a prompt-based command such as /security-review now gets a title from it instead of staying untitled
Improved --resume speed and memory use on damaged transcripts
隔離子代理互動範圍,修正按鍵誤觸並釋放背景記憶體
開啟子代理進行深度除錯或背景研究時,若主畫面與背景工作的控制項交纏在一起,容易誤停正在進行的工作。在子代理檢視畫面中輸入 /btw,會依據該子代理的上下文回答,按下 Esc 鍵也不會誤連帶中斷正在背景執行的子代理。全螢幕頂端會正確顯示該子代理實際運行的模型,而非主對話的模型。代理面板的按鍵選取修復了清單變動時誤點其他成員的狀況。在長耗時的無頭模式(headless,沒有終端機視覺介面的執行模式)與軟體開發套件中,主工作階段不再囤積已結束子代理的工具結果,顯著改善記憶體占用。此外,設定選單也補充了如何取消預設開啟代理檢視的說明。以前同時調度多個代理人容易發生按鍵誤判或記憶體膨脹,現在介面權責劃分清楚,長時間協同運算更為可靠。
官方原文
Fixed /btw answering from the main conversation when asked from a subagent's open transcript
Fixed x and Enter in the agent panel sometimes acting on the wrong agent when another agent started or finished
Fixed Esc on a command's panel, such as /btw, also interrupting the subagent whose transcript is open
Fixed the welcome header in fullscreen mode showing the session's model while viewing a subagent or teammate that runs on a different model
Improved memory use in long headless and SDK turns that run many subagents: the parent session no longer keeps each subagent's tool results until the turn ends
Improved /config in agent view to say how to stop agent view opening by default
強化遠端操控連線重試,開啟即時同步真實權限模式
透過手機或另一台裝置遠端連線回本機工作時,連線若遇延遲或顯示錯誤狀態,會讓人難以放心授權。現在 claude remote-control 啟動工作階段遇到伺服器短暫遲緩時,會採用遞增間隔自動重試註冊,避免連線失敗。切換模型超過 8 秒時,能正常等待最終回覆,不再中途跳出逾時錯誤。客戶端在壓縮對話後不再殘留多餘的摘要提示列,權限模式按鈕更會在連線開啟當下立即顯示真實狀態,不必等到輸入文字才更新。⟦猶如操作遠端無人監控設備,連線不穩時主動拉長間隔重撥,儀表板一連線就精確對齊當前檔位,不再顯示前一次殘留的虛假燈號。⟧此外,當組織關閉遠端操控或推播設定被隱藏時,也不會再跳出推播通知的閒置提醒。
官方原文
Fixed claude remote-control sessions that failed to start when the session service was slow for a moment: the worker's registration is now retried with growing waits
Fixed model switches over Remote Control that take over 8 seconds getting a "still pending" error instead of the final result
Fixed Remote Control clients showing a stray "Compacted (ctrl+o to see full summary)" row after /compact
Fixed the tip and idle reminder about push notifications appearing when the push settings in /config are hidden or your organization has turned off Remote Control
[Remote Control] Fixed the permission mode button in Remote Control sessions showing the wrong mode until you typed; while your computer is online it now shows the real mode on open
沙盒保護涵蓋分支副本,指令掛鉤支援監視工具過濾
在獨立分支中驗證未經測試的腳本時,安全沙盒必須滴水不漏地涵蓋所有衍生的工作環境。現在透過續接參數進入工作樹(worktree,Git 讓同一專案平行開多份副本的功能)時,沙盒防護依然會嚴格套用。設定說明也精準更正為:一次呼叫中的所有指令都必須符合清單,才會在沙盒外執行。監視工具啟動的指令現在能正確觸發 Bash 掛鉤以進行阻擋或確認,掛鉤判斷條件也新增了對監視指令的語法支援。另外,Bash 工具會清除繼承的指令別名與函式。以前在分支副本或特殊工具環境下執行指令容易脫離安全管轄,現在環境隔離更為徹底,避免了自訂別名干擾系統判斷。
官方原文
Fixed the sandbox.excludedCommands setting description saying listed commands always run outside the sandbox; it now says every command in a call must match an entry
Fixed sandbox protections not applying to a worktree entered by claude -p --resume or --continue
Fixed hooks matching Bash not running on shell commands started by the Monitor tool; such hooks can block or ask, but not approve or rewrite those commands
Changed the Bash tool's shell to clear any inherited which alias or function and to stop passing exported which/unsetenv functions to commands, so which is the system command or zsh builtin
Changed hook if conditions such as Monitor(tail *) to match the Monitor tool's shell commands as Bash(tail *) matches Bash's
雲端工作階段腳本報錯仍可啟動,排版呈現環境與儲存庫
透過雲端服務委託任務時,若初始化流程或分支同步稍有異常,工作階段便可能直接中斷而無法檢視。現在即使初始設定腳本回傳錯誤代碼,來自網頁、電腦或行動裝置的雲端工作階段依然能正常開啟以供除錯。復原對話時,不會再因為背景單元先前剛接收檔案就無故觸發非預期的模型呼叫。切換分支時,不會再因其他工作樹的推送而每輪誤報有未提交的變更。權限模式切換被拒絕時,選單會如實顯示目前生效的模式。⟦好比進入工程實驗艙,即使前置通風檢測有警告燈號,艙門仍准許開啟讓工程師進場維修,儀表板也將繁雜的數據排成清楚的表格。⟧此外,紀錄中的重命名會直接顯示新名稱,儲存庫與環境清單也改以整齊表格呈現,取代原本單行混亂的格式。
官方原文
Fixed a resumed claude.ai cloud session making a model call nobody asked for when the previous worker stopped just after receiving a new chat's files
[Cloud sessions] Fixed cloud sessions reporting uncommitted changes every turn after Claude moved a branch to a commit it had pushed from another worktree
[Cloud sessions] Fixed the permission mode picker staying on Auto after a running cloud or Remote Control session refused the switch; it now shows the mode in use and tells you
[Cloud sessions] Improved cloud session transcripts: a rename row now names the new title, and repository and environment lists show as a table instead of one line of JSON
[Cloud sessions] Changed cloud sessions from the web, desktop and mobile apps to start even when a setup script exits with an error, instead of failing to start
修正 Vim 模式行尾越界,精準貼上整行並保留換行符號
習慣使用 Vim 快捷鍵編輯輸入框內容時,游標動作若超出預期邊界,常常會不小心刪改到下一行的文字。現在使用 dw、dW、yw 與 yW 等指令時,動作範圍會嚴格受限在目前行內,不再一路穿透到下一行。按 w 或 W 往前移動時,遇到空白行會正常停住。使用文字物件 aw 與 iw 選取單字時,不會再意外吞掉行尾的換行符號。另外,在字元選取模式下按 p 貼上時,系統會如實辨識剪貼簿內是整行還是局部字元,精準還原整行內容。以前在終端機內以 Vim 模式編輯指令容易誤刪鄰近行,現在字詞邊界與跨行貼上都能完美遵循標準編輯規範。
官方原文
Fixed vim mode dw, dW, yw and yW carrying on past the end of the line, and made w and W stop on empty lines
Fixed vim mode p over a character selection ignoring whether the yanked text was whole lines
Fixed vim mode aw and iw taking the line break at the end of a line
修復輸入框貼上遺失,歷史搜尋支援收折的長文字標籤
遇到要在提示列貼上長篇日誌或拖入檔案路徑的場合,內容若意外消失,就必須回頭重新複製操作。現在在提問互動對話框中,即使焦點沒有停留在其他選項欄位,直接貼上文字或拖入檔案也不會再遺失內容。當游標選取了底部提示列中的特定項目時,貼上的文字也能如實送入輸入框。按下方向鍵往下瀏覽時,不會再選到被說明選單或指令清單遮蔽的隱藏項目。⟦宛如在快捷便條紙夾中查閱歸檔,以前收進封套的長篇草稿在檢索時無法被搜尋,現在不僅隨手夾入不會遺漏,抽查關鍵字時也能透視封套內容。⟧此外,在終端機按 Ctrl+R 搜尋歷史輸入時,也能直接搜尋被折疊在貼上文字標籤內部的詳細內容。
官方原文
Fixed pasted text and dragged-in files being lost in Claude's question dialog unless the "Other" row had focus
Fixed pasted text being lost when a row in the prompt footer was selected
Fixed ↓ selecting footer items hidden by the ? help menu, the command list or a paste hint
Improved prompt history: Ctrl+R now matches text inside collapsed [Pasted text] pills
自託管執行器斷線暫停保護,未推送分支明確指引解法
採用自託管執行器運行工作階段時,網路短暫閃斷或分支未同步,往往會造成除錯上的困難。當閒置工作階段請求暫停時,若執行器在收到官方確認前斷線,系統現在會安全地進入暫停狀態,不再錯誤地將工作階段轉移到其他執行器上。當工作階段指定的分支未在遠端 Git 儲存庫找到時,錯誤提示現在涵蓋了從未推送分支的情境,並給予各個情況對應的修復步驟,不再盲目建議重試。⟦就像工班師傅暫時離開工位,現場會原地保留待命,不再擅自把半成品轉給別組;若施工圖在檔案夾找不到,也直接標明去哪補圖,不再盲目重試。⟧
官方原文
Self-hosted runner: Fixed an idle session moving to another runner instead of pausing when the runner's request to pause it lost its connection before Anthropic answered
Self-hosted runner: Improved the error shown when a session's branch isn't on the git remote: it now covers a never-pushed branch, says how to fix each case, and no longer suggests retrying
修復 Slack 跨工作區重啟,等待執行器主動在討論串發布提示
在 Slack 團隊頻道中直接呼叫 Claude 協作時,跨企業群組的權限與訊息同步若不穩定,容易造成溝通中斷。在跨工作區的共用頻道中輸入 @Claude !restart,遇到檢查失敗時會自動重試一次,並在需要時主動引導你重新執行。短時間內重複透過相同連結綁定帳號時,不會再發送重複的確認私人訊息與頻道通知。⟦宛如跨國視訊會議中的智慧助理,連線不穩時主動重試連線,遇到伺服器排隊會貼心告知目前進度,不再在螢幕前無聲沉默。⟧當工作階段在背景等待自託管執行器時,會在討論串中主動發布等待通知,讓成員知道任務正在排隊而非卡死。在雙方企業皆安裝了 Claude 的外部共用頻道中,也能如常回應專屬討論串中的標記。
官方原文
[Claude Tag] Fixed @Claude !restart giving up after one failed workspace check in channels shared across Enterprise Grid workspaces; it now retries, then asks you to run it again
[Claude Tag] Fixed a second confirmation DM and channel note when you connect your Claude account from Slack twice from the same link within a few minutes
[Claude Tag] Fixed follow-up messages in Slack showing no sign of progress while Claude's session waits for a self-hosted runner; Claude now posts a wait notice in the thread
[Claude Tag] Fixed Claude sometimes not answering a tag in its own thread in Slack Connect channels where both organizations have installed Claude