usage

Antigravity 1.5.4

工具與目錄
在這頁

新功能 2 項

01

agy acp 支援 Auto 模式,沙盒外指令審查改用輕量模型加速

如果你習慣在編輯器裡透過 agy acp 協同編輯程式碼,現在也能享受到自動執行的便利。只要命令列介面有提供 Auto 模式,編輯器就能將目前的工作階段切換至 auto。開啟後,工具會自動核准工作區內部的編輯,並在終端機沙盒內執行指令。如果指令打算脫離沙盒,除非審查判定通過,否則依然會先停下來徵求你的許可。⟦就像聘請駐點秘書處理公文一樣,以前每份單據都要親筆簽名;現在辦公室內的常態開銷直接放行,跨部門的特殊款項才交由主管快速過目。⟧針對脫離終端機沙盒的指令審查,現在改由思考負載較輕的 Gemini Flash 模型負責,讓審查判定更迅速,也降低了逾時的發生機率。

官方原文

Added Auto mode to agy acp sessions, so editors can switch a session to auto wherever the CLI itself offers Auto mode; it approves edits inside the workspace and runs commands in the terminal sandbox, and still asks before commands that would leave the sandbox unless Auto mode's review clears them.

Improved Auto mode's review of commands that would leave the terminal sandbox so it decides faster and times out less often, by using a lighter-thinking Gemini Flash model for the review.

02

掛鉤輸入資料擴充,單一指令即可識別事件、目錄與工具調用

當你編寫自訂腳本來監聽 AI 的各種操作時,現在能直接取得更豐富的當下情境。掛鉤(hook,特定事件發生時被觸發的小程式)接收的 JSON 輸入資料中,新增了 hookEventName、cwd 與 toolCall.id 三個欄位。這讓單一掛鉤指令就能同時處理多種不同事件,而且隨時知道代理目前的工作目錄。當工具執行完畢發出 PostToolUse 調用時,也能藉由編號精準對應到執行前的 PreToolUse 調用。⟦跟快遞收發室登記單一樣,以前回執聯只蓋單一戳章,分不清送達哪一棟樓;現在單據印上事件類別、辦公室位置與追蹤碼,同一名管理員就能把派件前後的簽收完整串聯起來。⟧

官方原文

Added hookEventName, cwd, and toolCall.id to the JSON input that hooks receive, so a single hook command can handle several events, knows the agent's working directory, and can match a PostToolUse call to its PreToolUse call.

修正 4 項

03

agy acp 工作階段修復:重載保留自訂模式,二次授權不再停擺

透過編輯器重新連線或接續既有對話時,操作模式與授權詢問現在能順暢延續。

以前當編輯器重新載入或恢復已開啟的工作階段時,會退回預設模式。即使你先前已切換至自動接受修改的 accept-edits 模式,寫入檔案時依然會重新要求確認權限。現在工作階段會完整保留原本的設定,不再重複發出詢問。

當工具調用需要第二次授權批准時(例如某道指令在首次核准後又再次要求確認),過去對話輪次會直接卡死並無止境等待。現在編輯器會正常收到新的權限請求,讓你順利完成授權。

官方原文

Fixed agy acp sessions dropping back to the default mode when an editor reloaded or resumed an open session, so a session in accept-edits no longer starts asking for permission on file writes again.

Fixed agy acp turns hanging when a tool call needed a second permission approval, such as a command that asks again after its first approval; the editor now receives a new permission request instead of the turn waiting forever.

04

子代理視窗與互動修復,窄螢幕提問不再崩潰或畫面凍結

當你委派子代理(在背景獨立執行分工任務的輔助代理)協同工作時,各項視窗互動現在更加穩定。以前若終端機視窗過窄,或是尺寸尚未偵測完成,繪製子代理的提問與核准提示會導致工具當機。你正在回答問題時提示框也可能自行關閉,切換檢視畫面甚至會偶爾凍結終端機。現在這些異常都已修復,操作流程不再無故中斷。

官方原文

Fixed crashes and freezes with subagents: the CLI no longer crashes when a subagent's question or approval prompt is drawn in a very narrow terminal or before the terminal size is known, a subagent's question no longer closes by itself while you are answering it, and opening a subagent's view no longer occasionally freezes the CLI.

05

對話瀏覽與展開視圖修復,翻頁不漏行且思考區塊正確對齊

在終端機上下翻閱長篇對話時,畫面不再莫名跳行或排版錯置。

以前按下 PgUp 與 PgDn 翻頁時,若頁面底端剛好停在訊息邊界,向下翻頁會直接跳過整則訊息。在全螢幕(altscreen)渲染模式中,被置頂提示標頭遮住的文字行也會在捲動時被略過,完全沒有顯示在螢幕上。

另外在按下 Ctrl+O 切換至展開視圖時,緊接在工具結果行(例如 Read 22 lines)後方的思考區塊,先前會被額外縮排,導致看起來像屬於該工具調用的一部分。現在排版與捲動都已修復,瀏覽完整歷史紀錄時不會再漏看訊息。

官方原文

Fixed PgUp and PgDn in the conversation skipping text: paging down could jump past an entire message when a page ended exactly on a message boundary, and in full screen (altscreen) rendering mode the lines hidden under the pinned prompt header were scrolled past without ever being shown.

Fixed a thought that follows a tool's result line, such as Read 22 lines, being indented as if it were part of that tool call in the expanded view (Ctrl+O).

06

遠端連線與登入憑證修復:排查開機斷線、金鑰容量上限與權限更新提示

在跨裝置連線或管理帳號憑證時,各項開機連線與授權更新的異常問題均已修復。

若 remote-control 背景服務在網路就緒前啟動(例如剛開機時),過去會永久斷線且印出無效登入連結,現已修復。

當存放在 Windows 認證管理員或 macOS 鑰匙圈等憑證庫(存登入證明的地方)的資料過大時,過去會遺失 Gemini Enterprise 方案並引發權限錯誤,受影響資料下次載入時會自動修復。

提示執行 /logout 重新登入的 Sign-in update needed 警告,過去在 --remote-agent 工作階段中會被漏掉,現在已會正確顯示。

官方原文

Fixed the remote-control background service staying disconnected for good when it started before the network was up, such as right after a reboot, and stopped it from printing a sign-in link it could not complete when checking the saved sign-in only hit a network error.

Fixed the selected Gemini Enterprise plan being lost, and requests failing with permission errors, when the stored sign-in grew too large for the Windows Credential Manager or macOS Keychain; sign-ins that were already affected are repaired automatically the next time they load.

Fixed the Sign-in update needed warning, which asks you to run /logout and sign in again when your sign-in is missing a newly required permission, not appearing in --remote-agent sessions, where only a cloud conversations are not enabled error was shown.