Antigravity 1.4.1
新功能 2 項
agy plugin validate 擴充檢查範圍,把關技能、子代理與規則設定
打包套件最怕設定缺漏。現在 agy plugin validate 會把關技能、子代理與規則。⟦跟遠行清單一樣,以前只看外觀,現在連證件效期都逐項核對,有疏失立刻示警。⟧
SKILL.md 缺標頭(frontmatter,檔首宣告)會報錯;缺 name、description、資料夾名不符、逾 24 KB 或同名略過則警告。
子代理標頭錯誤、缺欄位、agent.json 解析失敗或用保留名報錯;重複名稱、無標頭檔或被忽略的 agent.json 則警告。
規則標頭無效或缺 trigger 報錯(略過 README.md);缺描述、globs、逾 24 KB 或根目錄誤放 AGENTS.md、GEMINI.md 則警告。
官方原文
Improved agy plugin validate to also check a plugin's skills, subagents, and rules: for skills, it errors on a SKILL.md with missing or invalid frontmatter and warns when name or description is missing, when name doesn't match its folder, when the body is over the 24 KB limit, or when a skill in skills/ is skipped because an earlier skill has the same name; for subagents, it errors on an agents/ Markdown file with invalid frontmatter or a missing name or description, an unparseable agent.json, or a name reserved for a built-in agent, and warns on duplicate agent names, Markdown files in agents/ without frontmatter, and agent.json files, which the CLI ignores; and for rules, it errors on a rule with invalid frontmatter or without a valid trigger (skipping a README.md in rules/ without frontmatter), and warns on a model_decision rule without a description, a glob rule without globs, content cut to fit the 24 KB limit, or an AGENTS.md or GEMINI.md at the plugin root instead of in rules/.
檔案行內差異預覽對齊檢視樣式,支援語法高亮與增刪襯色
收到代理人請求編輯或建立檔案的確認提示時,你現在能在對話區直接看清每一處改動細節。行內差異預覽(inline diff preview,在對話中直接顯示檔案修改對照的畫面)現在對齊 /diff 檢視風格,支援當前配色方案的語法高亮。⟦如同在合約草稿上使用雙色螢光筆批註,以前確認改動只有單調的黑白純文字,現在新增與刪除的行別會以專屬襯色清晰標記,行號欄也保持乾淨不被色彩干擾。⟧
新渲染方式為新增與刪除的程式碼行加上背景襯色。若選用 Terminal 配色方案,介面會根據終端機的淺色或深色背景,挑選對比最適當的底色。
畫面左側的行號欄則維持無襯色,避免色塊延伸到邊欄而干擾視線,讓你審查程式碼時更容易對齊行數。
官方原文
Improved the inline diff preview when the agent asks to edit or create a file so it renders like the /diff file view, with syntax highlighting for your color scheme, background tints on added and removed lines (picked from your terminal's light or dark background when using the Terminal color scheme), and an untinted line-number gutter.
效能 1 項
終端機渲染機制調整,降低打字與執行時的 CPU 消耗
頻繁在終端機輸入長篇文字或等待背景運算時,你的電腦不會再莫名感受到風扇狂轉的散熱壓力。現在提示區在每個影格只渲染一次,跨影格時也會直接重用未變更文字列的測量寬度。⟦好比翻閱逐格動畫冊,以前每翻一頁就把整面黑板全擦乾淨、逐字重新測量重寫,現在沒變動的段落直接保留,動態跑馬燈也整段套色,不再一個字一個字慢慢畫。⟧
底端的動態狀態列(status line,終端機底端提示執行進度的橫列)過去是一次渲染一個字元,現在改為依相同樣式區段批次繪製。
排版優化減少了重繪時的重複計算,使你在終端機打字或等待回覆時的 CPU 使用率顯著降低。
官方原文
Improved CPU usage while typing and while the agent is working by rendering the prompt area once per frame, reusing measured line widths for unchanged rows across frames, and rendering the animated status line in styled runs instead of one character at a time.
修正 6 項
企業帳號鎖定遙測為關閉,初次設定移除一般遙測勾選框
如果你平時使用企業帳號或 Google Cloud 專案登入工具,設定介面現在會明確反映資料隱私政策。企業帳號與透過 AGY_ADC_AUTH 登入的環境本就絕不收集提詞、檔案內容或模型回覆,但先前在 /config 設定選單裡,遙測開關(telemetry,軟體回傳診斷與使用數據的機制)卻仍處於可切換狀態。⟦就像公務用車配有不可關閉的資安規格,以前面板開關還能隨意撥動讓人困惑,現在直接固定在關閉檔位並貼上說明,交車時也不再附上一般民眾的意向調查表。⟧
現在 /config 中的 Enable Telemetry 列已改為顯示 off (disabled),並附帶文字說明鎖定原因。
初次執行並透過 AGY_ADC_AUTH 初始化設定時,畫面僅會顯示 Google Cloud Platform 服務條款,直接移除一般消費者的遙測授權核取方塊。
官方原文
Fixed Enable Telemetry in /config remaining editable for Business accounts (such as Google Cloud project and Application Default Credentials sign-in via AGY_ADC_AUTH), where prompts, content, and model responses are never collected: the row now shows off (disabled) and explains why, and first-run setup with AGY_ADC_AUTH now shows the Google Cloud Platform Terms of Service without the consumer telemetry opt-in checkbox.
舊版 Windows 遇沙盒限制改為執行前確認,設定面板隱藏不相容選項
在 Windows 10 或尚未升級至 24H2 的 Windows 11 電腦上操作時,指令執行不再因為作業系統缺少沙盒支援而動彈不得。以前若在此類系統選取了沙盒權限模式,終端機隔離防護(terminal sandbox,將指令限制在受控邊界內執行的安全環境)會因環境不支援而導致代理人指令啟動失敗。⟦與遊樂設施的安全門檢驗相似,以前遇到感測器規格不符的舊閘道會直接卡死鎖上,現在設施會自動切回人工驗票口,購票面板也不再列出無法支援的感應手環選項。⟧
現在命令列會自動關閉終端機沙盒,啟動備援措施,改為在執行各項指令前先跳出確認提示。
遠端控制(Remote Control)在瀏覽器中的設定彈窗,也會直接在此類系統上隱藏沙盒權限選項,避免誤選無效設定。
官方原文
Fixed agent commands failing to start on Windows versions that don't support the terminal sandbox (Windows 10 and Windows 11 before version 24H2) when a sandboxed permission mode was selected: the CLI now turns off the terminal sandbox and falls back to asking before running commands, and the Remote Control browser Settings modal hides sandboxed permission options on those systems.
網路斷線改為自動重試,筆電休眠或換網不再中斷工作
帶著筆電在不同會議室間移動,或是闔上螢幕喚醒電腦後,交給代理人執行到一半的任務不會再輕易中斷。以往當系統碰上網路連線端點(socket,程式之間建立連線傳輸資料的介面)斷線,例如筆電休眠或切換 Wi-Fi 後觸發的 broken pipe、software caused connection abort、network is down 或 http2: client connection lost,對話會直接以錯誤訊息終止。⟦遇上長途通話訊號不穩時,以前只要路過隧道斷訊一瞬間電話就直接被掛斷,現在通話軟體會先在背景自動重新撥號嘗試接回,真的連不上才會跳出撥打失敗的警示。⟧
現在工具遇到此類斷線錯誤時,會在背景自動展開重新連線重試。
只有在重試依然無法建立連線時,代理人才會回報網路錯誤,不再因為短暫的網路波動而拋棄整輪進度。
官方原文
Fixed socket disconnect errors such as broken pipe, software caused connection abort, network is down, and http2: client connection lost (for example after laptop sleep or a Wi-Fi change) stopping the turn with Agent execution terminated due to error. instead of retrying automatically and reporting a network error if retries fail.
修復 MCP 工具管線:當機即時標示錯誤,大筆資料不再繞過上限
串接服務或查詢大筆資料時,現在連線防護與記憶管理更穩固。使用 MCP 工具(Model Context Protocol,讓 AI 連接外部工具的協定)時,過去伺服器行程意外終止,/mcp 仍顯示為 Ready,導致後續工具呼叫失敗跳出 client is closing: EOF;現在會標記為 Error 並清除已關閉的工作階段。⟦比照工廠外接儀器,跳電時控制板亮故障燈並切斷線路,不再假裝正常;傳送超長數據時也依規矩截切,不再塞爆暫存區。⟧
針對大型 JSON 等結構化資料,過去即便計為截斷,仍繞過單步計費單位(token,AI 處理與計費的文字單位)限制,導致長對話在自動壓縮前就塞爆模型視窗;現在已嚴格遵守單步上限。
官方原文
Fixed an MCP server continuing to show as Ready in /mcp after its process exited unexpectedly, which left later tool calls failing with client is closing: EOF; the server is now marked as Error and its closed session is removed.
Fixed large structured tool outputs (such as JSON results from MCP tools) bypassing the per-step token limit while still being counted as truncated, which could push long conversations past the model's context window before automatic compaction ran.
回覆中含分號的超連結不再被截斷,點擊可開啟完整網址
點擊終端機回覆中的網頁超連結時,網址參數不再因為包含特殊符號而意外遺失。以前在部分終端機或終端多工器(terminal multiplexer,能在單一視窗切割管理多個工作階段的工具)中,若代理人提供的網址包含分號 ;,點擊後網址常在第一個分號處被硬生生截斷,導致瀏覽器開啟無效頁面。這個問題已經修好,現在包含分號的完整網址都能正確開啟。
官方原文
Fixed clickable links in agent responses whose URL contains ; opening a URL cut off at the first ; in terminals and multiplexers that split link sequences on semicolons.
/title 與 /remote-control 支援大寫開關指令,輸入 ON 不再報錯
隨手在終端機輸入斜線指令調整功能時,你不再需要小心翼翼確認大小寫鎖定鍵。以前使用 /title 設定標題,或是使用 /remote-control 開啟遠端控制時,若輸入了大寫的開關參數(例如輸入 /title ON 或 /remote-control Off),指令會直接判定無效並拒絕執行。這個問題已經修好,現在無論輸入大寫或小寫的開關文字,指令都能正確識別並順利切換。
官方原文
Fixed /title and /remote-control rejecting on and off when typed with uppercase letters, such as /title ON or /remote-control Off.