usage

Claude Code 2.1.289

工具與目錄
在這頁

新功能 3 項

01

支援隊友動態派工,外掛事件全程掌握代理身分

當你需要讓多個 AI 代理分工處理專案時,現在系統新增了隊友可呼叫的派工函式 agent.spawn。在外掛掛鉤(特定事件發生時被觸發的小程式)接收各項事件的過程中,同一位代理的識別碼會全程維持一致,不會中途跳號。查詢清單 $.agent.list() 現在也會清楚列出閒置與等待中等狀態。⟦跟工地主任調派支援人員一樣,每位工人都持有固定的識別證,看板上也能隨時看清誰正在待命或等候材料。⟧這讓你在編寫多代理協作流程時,能精準追蹤每一位助手的進度。

官方原文

Added agent.spawn for teammates, one agent id across plugin hook events, and idle and waiting states in $.agent.list()

02

VSCode 已還原可能增加登出頻率的改動

在 VSCode 編輯器中使用 Claude 時,你可能曾遇到帳號無故被登出、寫程式寫到一半被打斷的困擾。2.1.288 版本對檢查登入狀態的指令 claude auth status 所做的改動,可能讓登出變得更頻繁;現在已還原那項改動,避免使用時被無故登出。⟦大樓門禁若因一次調整變得過度敏感,撤回那次調整,就是撤回可能讓人反覆重新刷卡的變動。⟧

官方原文

[VSCode] Reverted a 2.1.288 change to claude auth status that may have made sign-outs more frequent

03

大檔檢視加速開啟,升級載入與錯誤訊息更清楚

當你在外掛面板中開啟龐大程式碼檔案,或剛完成版本升級時,系統反應變得更俐落。程式碼面板現在會直接以最終寬度完成語法標亮排版,縮短開啟大檔案的等候時間。升級後的首個工作階段(session,一次使用中的連續互動期間)不會再遺漏載入已安裝的模組,全螢幕背景工作對話框開啟時,提示列上方的殘留列也不再卡住。外掛元件繪製失敗且沒有附帶錯誤訊息時,原因欄不再只顯示「Error」或留白。外掛的橫條或面板繪製失敗時,外掛作者看到的錯誤說明會標明模組名稱,並指出沒有繪製任何內容。

官方原文

Improved how quickly large files open in a plugin code pane by laying the highlighted view out once at its final width

Fixed installed mods not loading in the first session after an upgrade

Fixed a plugin's rows above the prompt showing a stale row while the Background tasks dialog was open in fullscreen

Fixed a failed plugin component showing Error or nothing as its reason when the failure carried no message

Improved the line a mod's author sees when its band or pane fails to draw: it names the mod and says nothing was drawn

修正 5 項

04

指令與檔案防護更嚴密,權限檢查不再被繞過

在受管制的環境或沙盒中操作檔案與執行終端機指令時,安全把關變得更周延。在受管機器上,複合指令內部的阻擋或詢問規則,以前可能會被使用者自行安裝的模組覆蓋,現在安全規則能確實維持效力。透過符號連結(指向另一個位置的捷徑檔)在編輯器中以 @ 提及、變更或選取檔案時,讀取阻擋規則現在會正常發揮作用。當指令前綴帶有變數賦值或展開環境變數時,沙盒的自動放行機制不再漏掉後方的阻擋與詢問指令。使用者安裝的外掛也不再能竄改組織託管的 MCP(讓 AI 連接外部工具的協定)登入工具說明。這些安全邊界問題都已修復,讓各項存取限制徹底落實。

官方原文

Fixed a deny or ask rule on a nested part of a compound shell command not holding over a user-installed mod's approval on managed machines

Fixed Read deny rules not applying to files @-mentioned, changed, or selected in the IDE through a symlink

Fixed a user-installed plugin being able to rewrite the descriptions of an organization-managed MCP server's sign-in tools

Fixed Bash deny and ask rules missing a command behind an environment variable prefix with an expanded value (e.g. TZ="$HOME" rm -rf build) when the sandbox auto-allows commands

Fixed a Bash deny or ask rule being skipped under sandbox auto-allow when a bare variable assignment came before the command

05

程式碼標籤解析不再當機,終端機與成果網頁順暢載入

當你檢視含有特殊標籤的簡短程式碼片段時,畫面不再莫名卡死或崩潰。以前只要程式碼中包含大量未閉合的 <script> 標籤,或是層層巢狀的 ${ 變數代換,終端機就會直接凍結。發布到線上的產出頁面(artifact)在瀏覽器分頁開啟時,過去也會因為這些未閉合標籤陷入卡死甚至崩潰。⟦好比碎紙機遇到夾帶特殊膠帶的短紙條,以前容易卡住齒輪停擺,現在能順暢吞吐不再噎住。⟧這項解析問題現在已修復:終端機不再因上述未閉合標籤或巢狀代換而凍結,產出頁面也不再因上述未閉合標籤卡住或讓瀏覽器分頁崩潰。

官方原文

Fixed the terminal freezing on short code blocks with many unclosed <script> tags or deeply nested ${ substitutions

Fixed published artifact pages freezing or crashing the reader's browser tab on short code blocks with many unclosed <script> tags

06

外掛清單更新即時生效,驗證指令不再誤判

當你自行開發或測試外掛套件時,相關管理與驗證指令現在運作得更準確。從本機資料夾市集安裝外掛時,plugin list、plugin eval 與 plugin update 過去常抓到舊版本,使用符號連結(指向另一個位置的捷徑檔)搭配 --plugin-dir 指定外掛目錄時的即時重載也曾失效。驗證指令 claude plugin validate 以前遇到市集清單時會直接略過外掛,還可能誤判官方市集自家的外掛。⟦宛如庫存盤點機更新了讀卡程式,掃描本機貨架不再讀取舊標籤,驗收表格也能精準列出每件商品。⟧現在這些問題皆已修復;使用 --json 時,也不再把沒有問題的 plugin.json 列為問題。

官方原文

Fixed plugin list, plugin eval and plugin update showing a stale copy of a plugin installed from a local folder marketplace, and hot reload for a symlinked --plugin-dir

Fixed claude plugin validate skipping the plugin when the folder also holds a marketplace manifest

Fixed claude plugin validate failing an Anthropic marketplace's own plugin and listing a clean plugin.json in --json

07

外掛介面出錯不再拖垮工作階段,故障元件單獨隔離

在背景或受控模式下執行任務時,畫面上的小外掛即使發生異常,也不會讓整個工作階段(session)直接終止。以前外掛的非同步常式報錯、零高度區域異常擴張,或是 ui.render 掛鉤寫入的值引發錯誤時,整個對話都會因介面崩潰而被迫結束。現在引擎會自行繪製替代列;若外掛的客戶端元件繪製失敗,也只會獨立回報 ui.fault 故障事件。失敗的元件不再拖垮周圍畫面,也不會在接下來的時間裡一直處於壞掉狀態。

官方原文

Fixed supervised and background sessions ending when a plugin's on-screen handler threw asynchronously

Fixed sessions ending with an interface error when a plugin region with no height kept growing

Fixed sessions ending with "unrecoverable interface error" when a value a mod's ui.render hook wrote made a row throw while drawn; the engine now draws its own row instead

Fixed a mod's Client that fails while drawn taking down everything the mod drew around it; it now fails alone and raises ui.fault

Fixed a mod's Client region staying failed for the whole session after the terminal threw while drawing it

08

終端機排版重疊修正,特殊連結與自訂框線正常繪製

在終端機裡查看外掛面板與文字版面時,文字重疊與元件破圖的狀況都已改善。以前遇到包含本機網址、@ 符號、大寫網域名稱或 file: 路徑的連結時,面板會呈現一片空白。若外掛使用了終端機不支援的邊框樣式,甚至可能在啟動時直接卡死或閃退。含跳位字元(tab)、多餘的跳脫碼與 C1 控制字元的文字,過去會覆蓋下方文字列。短文字同時含有 tab 與 CRLF 換行時,也會發生相同問題。面板右側對齊的內容也會被關閉標記或 [-] 遮蔽。繪製失敗的頂部橫條不會再短暫擠壓下方的卡片。現在這些繪製問題都已修正,關閉標記與 [-] 也會離終端機邊緣一欄。

官方原文

Fixed plugin panes drawing nothing when a link used a localhost address, an @ in its path, an uppercase host or a file: path

Fixed a freeze or forced quit at launch when a plugin drew a Box with a border style the terminal does not know

Fixed text with a tab, a stray escape and a C1 control, or a short text with a tab and CRLF line endings, drawing over the rows below it

Fixed right-aligned content in a mod's pane or band drawing under the close mark or [-], which now also keep one column in from the terminal's edge

Fixed a mod's band that fails to draw briefly telling the cards under it to step aside