Antigravity 1.4.7
新功能 3 項
掛鉤指令接收使用者最新輸入,可在代理動作前過濾提示詞
你在編寫自訂安全規範或自動流程時,常希望在 AI 真正開始動手前先確認剛送出的內容。現在傳遞給掛鉤(特定事件發生時被觸發的小程式)指令的標準輸入 JSON 資料中,正式加入了 lastUserInput 欄位。⟦郵件收發室的分揀員拿到的清冊上,現在多了一欄最新信件內容,可以在送交專員處理前先檢查這封信。⟧這個欄位記錄了你剛發送的最新訊息。掛鉤可直接讀取 lastUserInput,檢查最新訊息並在代理處理前篩選提示詞。
官方原文
Added lastUserInput to the JSON that hook commands receive on stdin, so a hook can inspect the latest message you sent, for example to screen prompts before the agent acts on them.
推出萬聖節限定主題,開機橫幅與月相動畫換上應景外觀
萬聖節主題開放期間,你也能為日常開發環境換上濃厚的節慶氛圍。只要在終端機輸入 /config,就能在設定清單中看見僅在節慶期間出現的 Seasonal Themes 選項。⟦如同街角咖啡館限時換上南瓜燈飾與限定杯套,原本的迎賓招牌與隨行杯身,也暫時換上應景的特殊圖樣。⟧開啟這項功能後,工具啟動時會顯示萬聖節開機橫幅,等待回應時的旋轉指示燈會變換為月相週期動畫,同時還會點綴主題跑馬燈與專屬的提示框邊框。這項外觀純屬季節限定的選用項目,節慶檔期結束後設定選項就會自動隱藏,平時完全不影響簡潔的介面風格。
官方原文
Added a temporary opt-in Halloween theme: turn on Seasonal Themes in /config, a row shown only while the theme is in season, for a Halloween startup banner, a moon-phase spinner, and a themed running light and prompt box borders.
自動模式減少例行確認,無頭執行與介面反應更流暢
在讓 AI 自動處理專案或透過背景腳本批次執行時,你往往希望工具能安靜執行,不要頻繁被瑣碎中斷或耗盡電腦資源。
在 Auto 模式下,工具現在會減少針對例行指令的授權確認次數,包含清理暫存檔、結束本機行程,或是執行程式碼排版工具,都不會再頻繁跳出視窗要你逐一確認。
以 -p 參數執行無頭模式(沒有視覺介面的執行模式)時,處理器佔用顯著降低,在輸出長篇回覆或累積大量歷史紀錄時特別明顯。由於列印模式無需顯示畫面,因此不再建置搜尋索引與螢幕逐字稿,也不會再觸發自訂狀態列(終端機底部的即時資訊列)與視窗標題指令。
在日常互動介面中,無論是模型正在串流輸出文字、畫面跳出權限請求,或是手動縮放視窗大小,畫面更新速度都更快。以前跑背景批次常遇到處理器過載,現在資源消耗明顯降低,操作過程也少了不必要的打擾。
官方原文
Improved Auto mode to ask for approval less often on routine commands, such as cleaning up temporary files, stopping a local process, or running a code formatter.
Improved headless -p runs to use much less CPU, especially for long answers and when you have many saved conversations: they no longer build the conversation search index or render the transcript for display, and no longer start your custom status line and window title commands, none of which print mode shows.
Improved rendering speed while a response streams, when a permission prompt appears, and when you resize the window.
修正 3 項
單一內容超出容量上限時,不再陷入反覆壓縮對話的迴圈
當你讓代理處理超大檔案或工具輸出巨量文字時,可能會遇到對話停滯。以前只要單一訊息、工具輸出或附加文件大到無法放進上下文(模型一次能讀取的對話範圍),對話就會陷入反覆壓縮的無限迴圈。這個問題現在已經修好,遇到超長內容時不會再卡在連續壓縮的狀態。
官方原文
Fixed conversations compacting over and over when a single message, tool output, or attached document was too large to fit in the context.
外掛與 MCP 擴充功能修復憑證儲存,隨選工具回傳上限放寬至 10 KB
串接外部工具與外掛時,你可能遇過登入狀態沒存下來,或切換帳號後連線沒跟著換。
隨選載入的 MCP(讓 AI 連接外部工具的協定)工具可直接向代理回傳最多 10 KB 結果;以前超過 4 KB 就得寫入檔案再額外讀取一次。
使用應用程式預設憑證(AGY_ADC_AUTH)登入時,技能、規則、自訂代理、外掛、外掛 MCP 伺服器與掛鉤無法載入的錯誤已修復。
在 macOS 與 Windows 上,外掛與 MCP 伺服器的權杖(授權令牌)過大、無法存入系統金鑰鏈時,會改存到本機私密檔案以保留登入狀態。
透過 OAuth 登入的外掛 MCP 伺服器權杖改為綁定登入者,修好了共用電腦帳號時誤用他人權杖的問題。先前切換帳號或登出後,仍可能保留前一位使用者的連線,這個問題也已修好。伺服器在切換帳號時會自動重連,可能需重新登入。
官方原文
Improved MCP tools that are loaded on demand to return results of up to 10 KB directly to the agent; previously anything over 4 KB was saved to a file that the agent had to read in an extra step.
Fixed skills, rules, custom agents, plugins, plugin MCP servers, and hooks not loading when you sign in with Application Default Credentials (AGY_ADC_AUTH).
Fixed plugin and MCP server sign-ins not being saved on macOS and Windows when the token was too large for the system keychain; such tokens are now stored in the CLI's private secrets file.
Fixed plugin MCP servers that sign in with OAuth being able to use a token saved by another user of the same computer account, or keeping the previous user's connection after you switch accounts or sign out. Their tokens now belong to the signed-in user and these servers reconnect when the user changes, so you may need to sign in to them again.
終端機排版與文字複製多項修復,說明清單精簡常用快速鍵
在終端機內瀏覽輸出結果、複製程式碼或編輯文字時,細節排版直接左右閱讀與操作的流暢度。
輸入 /help 查看快速鍵分頁時,清單移除了方向鍵等基礎導覽鍵,方便你更快找到真正實用的進階快速鍵。
在表格呈現上,預設的 Terminal 配色改用框線繪製字元取代 ASCII 直線符號。儲存格內折行的長網址先前只有第一行附帶截斷的超連結,現在整段網址都能完整點擊與複製。
複製程式碼區塊或行內程式碼中折行的長指令時,貼上會合併為單行,不會在折行處夾帶多餘換行。程式碼區塊內的長行也會在單字之間折行,並保留區塊縮排。
在 Vim 模式的 Normal 與 Visual 模式下使用 r 替換文字時,先前會殘留部分摺疊的貼上標記,現在會乾淨取代整個預留位置。
官方原文
Improved the /help shortcuts tab by leaving out basic navigation keys such as the arrow keys, so the more useful shortcuts are easier to find.
Fixed long links that wrap inside a Markdown table cell being linked only on their first line, to a truncated URL, so the whole link can now be clicked or copied. Tables in the default Terminal color scheme now use box-drawing borders instead of ASCII |, matching the other color schemes.
Fixed copying a long command that wraps across rows in a code block or inline code, which now copies as a single line instead of with a line break at each wrap point; wrapped code-block lines also now break between words and keep the block's indentation.
Fixed Vim mode's r replace, in Normal and Visual mode, leaving part of a collapsed [Pasted text #N] placeholder behind; the whole placeholder is now replaced.