Antigravity 1.4.9
新功能 5 項
支援終端機快捷鍵與拖曳貼圖,SSH 遠端連線也能直接傳圖
當你想讓 AI 幫忙分析螢幕截圖或設計稿時,不再需要手動輸入檔案的完整路徑。⟦跟在通訊軟體聊天室傳照片一樣,以前把圖拖進終端機只會留下一串檔案路徑,現在能直接把圖片塞進對話,遠端連線時也能精準送達。⟧只要剪貼簿裡只有圖片,按下終端機自身的貼上快速鍵(如 Mac 上的 Cmd+V 或其他系統的 Ctrl+Shift+V),就能直接貼上圖片。直接把圖片檔案拖曳到輸入框時,終端機會把檔案當成附件加入,不再只是填入檔案路徑。即使透過 SSH 連線並啟用 X11 或 Wayland 轉發顯示,貼圖操作也能照常運作。當剪貼簿沒有可附加的媒體時,按下貼上鍵會看到 No image or video found in the clipboard 提示。若環境缺少剪貼工具,提示更會明確指名該安裝的套件名稱,例如 Wayland 上的 wl-clipboard。
官方原文
Added image pasting through your terminal's own paste shortcut, such as Cmd+V or Ctrl+Shift+V with only an image copied, and by dragging image files into the prompt, which attaches them instead of inserting their paths; image paste now also works over SSH with X11 or Wayland forwarding, and the CLI's paste key now says No image or video found in the clipboard when there is nothing to attach and names the clipboard tool to install, such as wl-clipboard on Wayland, when one is missing.
外掛探索頁依市集分區歸類,發布驗證新增名稱與圖示檢查
想要替終端機尋找擴充功能,或是準備發布自己編寫的外掛,現在能直接對齊官方市集的標準。⟦如同逛百貨商場,以前所有商品全塞在同一份冗長名單,現在依專區分類陳列,同時對準備進駐的專櫃嚴格核對招牌與名稱格式。⟧在終端機輸入 /plugin 切換到 Discover 探索分頁,外掛不再是一整串清單,而是依官方市集分區歸類,跨領域外掛也會出現在所有相關分區。使用 agy plugin validate 檢驗外掛時,若名稱未用全小寫 kebab-case(例如 Neo4j),工具會提出警告並建議合規名稱,搭配 --strict 則中斷失敗。檢驗也納入了圖示檢查,若未設定 logo、路徑指向外部或打包排除的 .github/、或填寫外部網址皆會警告,同樣適用於情境提供者的 iconUri。
官方原文
Improved the /plugin Discover tab to group marketplace plugins into the same sections as the Antigravity plugin marketplace instead of one flat list, listing a plugin under every section it belongs to.
Improved agy plugin validate to warn when a plugin's name isn't lowercase kebab-case, such as Neo4j or foo_bar, which the marketplace can't publish, and to suggest a valid name, failing under --strict; it now also checks the plugin's logo, noting when plugin.json has none and warning when the logo path is blank, uses backslashes, is absolute or points outside the plugin, sits in a folder the marketplace bundle leaves out such as .github/, or is a URL that won't be shown, with the same checks for context provider iconUri values.
長 diff 清單清楚標記統計單位,區分檔案總數與輪次列數
當你在終端機翻閱大量程式碼變更紀錄時,清單底部的導覽數字能清楚看出計算標準。⟦就像翻閱裝訂合冊,以前底部的頁碼沒有說明單位,章節標題和正文混著算,讓人誤以為缺頁;現在明確標出是總篇數還是包含標題的排版行數。⟧在長度較長的 /diff 變更清單下方,位置指示器過去只顯示數字範圍,容易讓人疑惑目前指涉的究竟是檔案還是畫面行數。現在指示器會依據檢視模式明確標記統計單位,在檢視全部變更的 All Changes 模式下會顯示如 [1-44 of 195 files],清楚標示為檔案數量。若切換到依對話輪次呈現的 Per Turn 模式,由於輪次標題也會計入列數,介面便會顯示如 [1-44 of 195 rows]。這樣的區分讓指示器不再與實際的檔案計數產生矛盾。
官方原文
Improved the position indicator under long /diff lists to say what it counts, such as [1-44 of 195 files] in All Changes and [1-44 of 195 rows] in Per Turn, where turn headers count as rows, so it no longer appears to disagree with the file count.
自動模式審查指令跳過無效檢查,非儲存庫目錄不再逾時
使用自動模式(Auto mode)讓 AI 執行可能離開終端機沙盒的指令時,審查流程不再無端卡在逾時中斷。⟦好比社區保全巡檢,以前每到一個空房間都要翻找不存在的訪客登記簿,耗盡巡邏時間;現在先確認門牌是否有管委會編制,沒有就不再白花力氣翻查。⟧當審查機制評估指令是否會脫離終端機沙盒時,現在會先掌握目前工作目錄是否隸屬於 Git 或其他版本控制儲存庫。過去審查機制會在所有目錄盲目分配時間預算執行 git status,在一般資料夾中頻繁引發逾時。現在排除了非儲存庫目錄的無謂執行,指令審查過程中的逾時發生率明顯降低。
官方原文
Improved Auto mode's review of commands that would leave the terminal sandbox: the reviewer now knows whether the working directory is inside a Git or other repository, so it no longer spends its time budget running git status in folders that aren't repositories and times out less often.
execute_url 權限劃分隔離,存取 Google 敏感服務需個別授權
允許 AI 工具存取公開網頁時,私密帳號與雲端主控台不會再被自動放行。⟦宛如訪客換證,以前只要拿到大樓公共大廳的通行證,就能一路刷進私人辦公室與保險庫;現在大廳門票與機要庫房嚴格分開,每間獨立套房都得重新核對許可。⟧在使用 execute_url 呼叫網址時,權限規則縮小了授權的繼承範圍。過去一旦批准了 www.google.com 或 cloud.google.com 這類 Google 站點,工具便會連帶放行同網域下的敏感應用程式。現在包含 mail.google.com、docs.google.com、drive.google.com、accounts.google.com 以及 console.cloud.google.com 等服務皆已獨立列管。其中的每一項敏感服務都必須由你個別審批授權,不再自動繼承一般網站的存取權限。
官方原文
Changed execute_url permissions so approving a Google site such as www.google.com or cloud.google.com no longer also allows sensitive Google apps such as mail.google.com, docs.google.com, drive.google.com, accounts.google.com, or console.cloud.google.com; each of these now needs its own approval.
修正 6 項
多行指令一律允許規則正式生效,不再重複詢問或堆積無效設定
在終端機執行跨好幾行的 python -c 或 node -e 腳本時,即便早就勾選過一律放行,命令列以前每次執行依然停下來要你確認,設定檔裡也塞滿了無法使用的項目。現在這個問題已經修好,先前儲存的多行規則已能正常套用,執行時不再重複跳出確認提示。
官方原文
Fixed always-allow rules for multi-line commands, such as a python -c or node -e script spanning several lines, never taking effect, which made the CLI ask again every time and pile up unusable entries in your settings; existing multi-line rules now apply.
新手導覽頁面自適應小型視窗,按鈕保持可見並支援上下捲動
初次啟動工具並在較小尺寸的終端機視窗查看新手導覽時,以前畫面常被視窗邊界硬生生切斷,導致底部的確認按鈕被隱藏而無法點擊。現在文字與連結會自動配合視窗寬度折行。在極窄的終端機中,色彩預覽會自動裁切或隱藏,橫幅標語也只在畫面能完整容納時才會顯示。若步驟內容依然過長,你可以使用 Shift+↑、Shift+↓ 或 PgUp、PgDn 進行上下捲動,而操作按鈕則全程保持可見。
官方原文
Fixed onboarding screens being cut off in small terminals and hiding their buttons: text and links now wrap to the terminal width, the color preview is cropped or hidden in very narrow terminals, the banner only shows when the whole step fits, and a step that is still too tall scrolls with Shift+↑/Shift+↓ or PgUp/PgDn while the buttons stay visible.
Vim 模式支援空白鍵定位,修正游標誤判與未完成指令殘留
在終端機開啟 Vim 編輯模式時,以前按下 r、f、F、t 與 T 等指令若接續空白鍵,操作會被直接取消。現在 r<space>、f<space> 與 df<space> 等組合皆能正常運作。游標停在最後一行空白列時,指令不再誤套用到上一行。送出提示詞後,未輸入完畢的運算子(如單獨按下的 d)也不會再殘留至下一輪對話。
官方原文
Fixed Vim mode's r, f, F, t, and T canceling when the target character is a space, so r<space>, f<space>, and df<space> now work, commands on an empty last line acting on the line above, and a half-typed operator such as d carrying over after you submit a prompt.
修正折行程式碼周圍的隱藏字元,終端機畫面不再出現方框與殘留字元
當 AI 回覆包含折行程式碼時,以前不可見的特殊字元(U+FFF9 與 U+FFFA)會意外流進終端機,導致部分終端機或終端多工器將其繪製成異常方框,或在螢幕上留下殘留字元。這個問題現在已經修好,畫面上不再出現多餘方塊或殘留字元。
官方原文
Fixed invisible U+FFF9 and U+FFFA characters reaching the terminal around wrapped code in agent replies, which made some terminals and multiplexers draw boxes or leave stale characters on screen.
修復對話持續報錯問題,排除異常圖片、工具失配與過期思考區塊
當對話歷程中出現異常的圖檔、工具結果或思考區塊時,過去幾種會導致後續對話全面卡死的情況已獲得修復。
如果 AI 讀取到損毀圖片,或標頭前方夾雜文字(例如使用 adb exec-out screencap -p > screenshot.png 截圖混入警告),過去會持續遭遇 INVALID_MEDIA 錯誤。現在這類圖片會被直接拒絕,並指出真實標頭起始位置,讓 AI 自行修正指令。
當歷史紀錄遭裁切導致工具結果失去對應呼叫時,過去每輪對話都會卡死報錯。現在送出請求時會主動排除未配對的工具呼叫與結果。
在 Google Cloud 專案使用特定模型時,若思考區塊(thinking block)出現後系統提示、工具或先前訊息變更,對話過去會持續失敗。現在過期的思考區塊會直接捨棄而不再拒絕請求。
官方原文
Fixed conversations failing every later model request with INVALID_MEDIA after the agent viewed a corrupt image or one with text in front of its header, such as a screenshot captured with adb exec-out screencap -p > screenshot.png that also captured a warning; such images are now rejected with an error that says where the real image header starts, so the agent can fix the command.
Fixed conversations getting stuck failing on every turn after a tool result was left without its matching tool call, such as after older history was trimmed; unmatched tool calls and results are now left out of the request.
Fixed conversations with certain models on a Google Cloud project failing for the rest of the conversation once the system prompt, tools, or an earlier message changed after a thinking block; outdated thinking blocks are now dropped instead of rejected.
修復瀏覽器子代理無快照問題,補上 DevTools MCP 必要頁面編號
在搭配 Chrome DevTools MCP(Model Context Protocol,讓 AI 連接外部工具的協定)1.11 或更新版本時,以前 /browser 子代理在每輪對話開始時會無法取得當前網頁的快照畫面。這是因為請求中遺漏了新版所必需的頁面識別碼(page ID),導致快照擷取在背後默默失敗。現在這個問題已經修好,請求已補上必要的頁面編號,子代理在每輪開始時皆能順利讀取網頁快照。
官方原文
Fixed the /browser subagent not receiving the current page's snapshot at the start of each turn with Chrome DevTools MCP 1.11 and later, because the snapshot request left out the now-required page ID and failed silently.