Antigravity 1.5.7
新功能 1 項
代理人預設改為自動模式,嚴格權限優先守護檔案修改
打開終端機請代理人處理工作時,若你還沒儲存過模式設定,啟動方式就會受這次調整影響。尚未儲存模式的工作階段,包含使用 -p 參數的無頭模式(沒有終端機畫面的執行模式),只要環境支援 Auto 就會預設自動啟動,其餘則維持 Default。⟦相機以前開機預設選一般模式,現在支援自動模式的機型會預設選自動模式,其餘仍選一般模式;改的是開機時先選哪個模式。⟧若想維持過去習慣,可在 /config 將 Agent Mode 選為 Default,設定會儲存到 settings.json:
```json { "agentMode": "" } ```
另外,Tool Permission 的 strict 嚴格權限優先於 Auto 與 accept-edits 模式,修改檔案前依然會主動詢問並等待你同意。
官方原文
Changed the default Agent Mode from Default to Auto: sessions with no saved mode, including headless -p runs, now start in Auto wherever Auto mode is available and in Default elsewhere; to keep the previous behavior, choose Default for Agent Mode in /config, which saves "agentMode": "" to settings.json. A Tool Permission setting of strict now also takes precedence over Auto and accept-edits modes, so file edits still ask for approval under strict.
修正 7 項
終端機長行折行不再卡住,工具群組重繪時步驟持續顯示
在終端機執行會印出大量記錄的指令或呼叫工具時,畫面有時會突然整面卡住。以前如果某個指令印出一整行完全沒有空格的超長字串,會直接引發數秒的介面凍結,連帶讓文字串流與視窗縮放跟著動彈不得。現在文字折行所花費的時間會與該行長度成正比,不再長時間卡死。另外,當一組輸出很長的工具呼叫正在以動畫跳動顯示記號(token,AI 處理文字的計算單位)數量時,代理人的回覆以前會停頓 20 秒以上。現在該工具群組重新繪製時,後續串流的執行步驟依然會持續顯示。以前遇到無空格長文字或工具輸出動畫會卡死畫面,現在介面縮放與步驟串流都能即時反應。
官方原文
Fixed multi-second UI freezes, which also stalled streaming and window resizing, when a command printed a very long line without spaces; line wrapping now takes time proportional to the line's length.
Fixed agent replies stalling for 20 seconds or more while a group of tool calls with long output was still animating its token counts; streamed steps now keep appearing while the group re-renders.
背景指令等待密碼或確認提示時,代理人主動接收通知
交辦代理人跑耗時較長的工作時,你可能遇過整個流程突然無聲卡住。以前當移至背景的指令正在等待輸入,例如指令轉入背景前印出密碼或 y/n 確認提示,代理人不會察覺並只會靜默等待。現在只要輸出內容穩定下來,代理人就會收到通知,不再無聲乾等。現在輸出穩定下來後,代理人會收到等待輸入的通知,不再無聲乾等。
官方原文
Fixed the agent not noticing that a command it moved to the background was waiting for input, such as a password or y/n prompt printed before the command went to the background; the agent is now notified once that output settles instead of waiting silently.
Windows 版瀏覽器登入同時支援 IPv4 與 IPv6 回傳
在 Windows 系統透過瀏覽器進行帳號登入時,偶爾會碰上網頁跳轉後終端機卻沒有反應的狀況。以前指令列工具的本機登入回呼只監聽 IPv4 或 IPv6 其中一種協定,若瀏覽器透過另一種協定重新導向,登入就無法順利完成。現在本機回呼會同時監聽這兩種協定。以前登入容易因為網路協定不一致而卡在驗證畫面,現在瀏覽器重新導向後便能正常完成登入流程。
官方原文
Fixed browser sign-in on Windows sometimes failing to complete because the CLI's local sign-in callback listened on only IPv4 or IPv6 while the browser redirected over the other; the callback now listens on both.
企業閘道請求 Gemini 4 Carbon 調整參數,排除 HTTP 400 錯誤
當你在企業環境透過模型閘道使用 Gemini 4 Carbon 時,發送請求可能曾遇到連線失敗。以前請求會跳出 HTTP 400 錯誤,提示 Thinking budget is not supported for this model。現在指令列工具會改向 Gemini 4 Carbon 發送思考層級(thinking level),發給閘道的模型識別碼也不再殘留 Low、Medium 或 High 後綴。以前發送請求會被閘道直接退回,現在格式修正後便能正常呼叫。
官方原文
Fixed Gemini 4 Carbon requests through an enterprise model gateway failing with an HTTP 400 Thinking budget is not supported for this model error; the CLI now sends Gemini 4 Carbon a thinking level and no longer leaves the Low, Medium, or High suffix in the model ID it sends to the gateway.
企業安全政策強化審核機制,並恢復無系統沙盒時的自訂規則
在受組織管理政策管制的環境下執行指令或存取檔案時,審核機制迎來了兩項修正。以前若設定了回傳 auto_approve 的 PreToolUse 掛鉤(特定事件發生時被觸發的小程式),或使用 command(*) 萬用允許規則,會意外略過管理員強制要求的審查。現在跳脫終端機沙盒的指令、管理員政策保留審查的指令,以及「一律詢問」政策下讀寫工作區外的操作,一律會向你要求確認。當組織政策要求在終端機沙盒內執行指令,但電腦缺少系統沙盒時,以前會忽略已儲存的允許與拒絕規則,導致每條指令都反覆跳出確認。現在儲存的允許與拒絕規則會正常套用,未列出的指令執行前仍會詢問。以前容易因規則漏洞略過公司審核,或在缺少系統沙盒時被繁瑣提示打擾,現在審查嚴謹且自訂名單正常生效。
官方原文
Fixed a PreToolUse hook returning auto_approve, or a wildcard command(*) allow rule, bypassing an organization's admin-enforced review: commands that would leave the terminal sandbox, commands the admin policy holds for review, and file reads or writes outside the workspace under an "always ask" file-access policy now always ask for your approval.
Fixed saved command allow and deny rules being ignored, so that every command asked for approval, when an organization's admin policy requires commands to run in the terminal sandbox but the machine has no OS sandbox; your saved rules now apply and unlisted commands still ask before running.
檢視背景任務詳情時,保留程式碼區塊與反引號格式
當你透過 manage_task 工具查看背景任務的執行狀態時,文字排版可能曾出現錯亂。以前如果任務近期的輸出內容,或是傳送給任務的輸入包含 Markdown 程式碼區塊或連續反引號,任務詳情的排版格式會跑版損毀。這個問題現在已經修好,相關內容會完整保留原有排版。以前閱讀包含程式碼的任務資訊容易版面混亂,現在都能維持工整外觀。
官方原文
Fixed background task details from manage_task losing their formatting when the task's recent output, or input sent to the task, contained Markdown code blocks or runs of backticks.
遠端操控介面隱藏無效連結,不再顯示無法開啟的網址
使用遠端操控(Remote Control)功能查看代理人回覆時,結尾可能曾出現點不開的連結。以前在部分回覆末端,例如多代理人群組協調員(swarm coordinator)連往群組介面的連結,遠端操控會顯示無法開啟的網址。現在遠端操控會直接略過這些連結。以前在遠端介面常看見無法點擊的網址,現在遠端操控會略過這些無法開啟的連結。
官方原文
Fixed Remote Control showing a link that could not be opened at the end of some agent replies, such as the swarm coordinator's link to the swarm UI; Remote Control now leaves these links out.