usage

Antigravity 1.2.16

工具與目錄
在這頁

新功能 5 項

01

設定選單支援左右方向鍵,切換選項立即儲存

當你想調整工具偏好卻不想在一層層下拉選單裡反覆按確認時,現在有更快的改法。在終端機輸入 /config 開啟設定頁面,將游標停在想要修改的項目上,直接按鍵盤的 ← 或 → 鍵,就能立刻切換到上一個或下一個選項數值並直接儲存,不需要再按 Enter 展開下拉清單。畫面最下方的頁尾也會顯示 ←/→ Change 的提示字樣。⟦像在電視選單按左右鍵切換訊號源或音效模式,不用每次都展開整排下拉選單再按確定,手指一撥設定就立刻生效。⟧

官方原文

Added ←/→ shortcuts to /config: on a highlighted setting they switch to the previous or next value and save it right away, without opening the dropdown, and the footer shows a ←/→ Change hint

02

全螢幕對話不再卡頓,滑鼠選取與重繪更流暢

當你在長對話中調整終端機視窗大小或用滑鼠選取文字時,畫面反應現在更加敏捷。在無閃爍的 altscreen(終端機全螢幕顯示模式)與產出物檢視器中,拉動視窗不會再讓介面卡死,系統會優先重繪目前畫面上的訊息,不再卡在舊寬度等待整段對話重繪完畢。按 Esc 中斷代理人或恢復對話時,也不會把螢幕上的所有步驟全部重新繪製一次。使用滑鼠拖曳反白超過頂端或底端時會自動捲動,滾動滾輪或在代理人串流輸出時選取範圍都不會跑位。複製文字還能完整包含捲出畫面的行數,並自動濾除產出物檢視器中的行號與註解預覽。⟦彷彿閱讀排版精美的長卷軸電子書,拉大視窗時眼前文字立刻依新寬度排好,反白選取整段內容往下拉也能順暢捲動,複製時更不會把旁邊的頁碼與輔助備忘一起剪進去。⟧

官方原文

Improved responsiveness in long conversations in no flicker (altscreen) mode: resizing the terminal no longer freezes or lags the CLI, the full-screen view redraws the messages on screen first instead of showing text wrapped for the old width until the whole conversation has re-rendered, and interrupting the agent with Esc or resuming a conversation no longer re-renders every step already on screen.

Improved mouse text selection in the altscreen view and in the artifact viewer: dragging past the top or bottom now auto-scrolls, the selection stays on its text while the agent streams or you scroll with the wheel, and copying includes lines that scrolled off screen, without line numbers or comment previews from the artifact viewer

03

Go 指令授權更省事,編譯與檢查可永久放行

當你頻繁讓代理人編譯或檢查 Go 專案程式碼時,授權流程變得更加省心。批准 go vet 或 go build 等安全指令時,系統現在會提供直接放行該子指令(主指令底下負責特定功能的附屬指令)所有後續參數的選項,日後帶不同參數都不必再次手動按確認。但針對會執行或安裝程式碼的 go run、go test、go generate、go install 與 go tool,這些子指令仍須以完整指令為放行範圍。⟦跟廚房領用食材一樣,拿取安全調味料只要登記一次就能自由取用不同份量,但遇到動用瓦斯爐或刀具等高風險操作,放行時仍須寫明完整操作內容。⟧

官方原文

Improved the always-allow suggestion when approving go commands: approving a command such as go vet or go build now offers to allow that subcommand with any arguments, while go run, go test, go generate, go install, and go tool still require the exact command

04

排隊訊息支援合併即時送出,Vim 快捷鍵不再誤送

當你在代理人忙碌時連續輸入多條指令,訊息的排隊與召回機制現在更為可靠。在 /config 設定中開啟排隊訊息的 Send Immediately(立即發送)時,若前面已有訊息在排隊,新送出的內容會依照先後順序連同排隊訊息一起交給代理人,不再單獨落後排隊。若訊息在回合中途發送失敗,也會自動退回佇列(排隊等候處理的清單)而不會憑空遺失。在 Vim 常規模式的最頂行按下 k 鍵時,現在會如同向上方向鍵一樣將排隊訊息抽回編輯區,修復了以前誤抓歷史紀錄導致排隊訊息重複送出的問題。⟦宛若在郵局櫃台寄信,臨時追加的急件能直接併入當前的包裹一起秤重寄出,如果櫃台忙碌沒收下也會退回你手上,不必重新排隊重填一張單據。⟧

官方原文

Improved the Send Immediately option for Queued Messages in /config: a message you send while earlier messages are still queued now goes to the agent together with them, in order, instead of joining the queue, and a message that fails to send mid-turn goes back to the queue instead of being lost

Fixed k in Vim Normal mode recalling the last history entry instead of your queued messages when pressed on the top line, which could send a queued message twice; k now pulls queued messages back into the editor like the Up arrow does

05

圖片生成改由專屬子代理負責,自動重試並存入產出物

當你請代理人繪製插圖或設計素材時,產圖的工作流程變得更有條理。主代理人現在會將生圖需求轉交給內建的 image-generator 子代理(在背景協助處理特定專門任務的輔助助理)。它會負責撰寫提示詞(引導 AI 生成具體內容的描述句)、檢查每次產生的圖片,且最多會自動嘗試三次直到成功,最後將完成的圖片儲存至對話的產出物中。整個產圖過程也會在對話紀錄中明確呈現為獨立的子代理執行階段。⟦猶如把設計海報的工作交給專門的美編助理,他會自己琢磨提示詞並反覆微調,最多嘗試三次,最後把滿意的圖檔規矩收進專案資料夾,不再需要總指導親自逐筆摸索。⟧

官方原文

Changed how the agent generates images: it now hands image requests to a built-in image-generator subagent, which writes the prompt, checks each result with up to three attempts, and saves the images to the conversation's artifacts, so image generation appears as a subagent run in the conversation

修正 4 項

06

背景指令中斷不再卡死,無頭模式精確等待結果

當代理人在背景執行的耗時指令遭遇系統強制中止或記憶體不足時,處理流程不再停滯。以前代理人等待背景指令時,若指令當機或因記憶體耗盡遭系統終止,代理人會卡在原地等待。現在系統能正確辨識如 137 或 134 等結束代碼(程式執行完畢後回傳給系統的狀態數字)並繼續後續工作。在以無頭模式(沒有終端機視窗或視覺介面的執行模式)使用 -p 參數執行時,也修復了背景指令於第一回合後完成時代理人尚未回應程式就提前結束的問題。⟦就如外送平台派單給外勤騎士,就算路上機車拋錨或意外中斷,系統收到騎士回傳的異常代碼後也能立刻轉派或繼續流程,不會傻等在原地直到整家店打烊。⟧

官方原文

Fixed the agent stalling when a background command it was waiting on crashed or was killed by the system, for example when it ran out of memory; the agent now sees the command finish with its exit code, such as 137 or 134, and keeps going

Fixed headless -p runs sometimes exiting before the agent could respond to a background command that finished after its first turn

07

子目錄可正常載入上層技能,斜線選單不再列出停用工具

當你在專案深層的子資料夾開啟工作階段時,專案層級的自訂擴充現在能完整生效。以前若從子目錄啟動工作階段(使用者與 AI 進行的一連串連續互動對話),上層目錄 .agents/ 裡的 skills.json 與 rules.json 等自訂清單會被忽略。現在系統會從目前工作目錄一路向上至專案根目錄,完整載入各層級的設定檔。輸入 / 開啟的選單也修復了會列出當前代理人未啟用的內建技能之問題,避免選取後注入代理人無法使用的工具指令。⟦如同翻閱總公司與各分部的工作手冊,在分店工作也能一路向上查找總部規章,且目錄索引裡只會列出當前分店真正具備的工具清單。⟧

官方原文

Fixed skills.json, rules.json, and other customization manifests in a parent .agents/ directory being ignored when a session started in a subdirectory; manifests now load from every .agents/ directory between the working directory and the project root

Fixed the / menu listing built-in skills that the current agent does not enable, which inserted instructions for tools the agent could not use when selected

08

支援含 UTF-8 簽章的設定檔,Windows 儲存不再報錯

在 Windows 環境下使用記事本或 PowerShell 的 Set-Content 編輯設定檔時,檔案開頭常會自動加入 UTF-8 位元組順序記號(標記檔案文字編碼的隱藏字元)。以前這會導致 ~/.gemini/config/config.json 無法正常載入設定,現在這個問題已經修好,能順暢讀取各類編輯器儲存的設定檔。

官方原文

Fixed settings failing to load when ~/.gemini/config/config.json starts with a UTF-8 byte order mark, as files saved by Notepad or PowerShell Set-Content on Windows do

09

修復終端機剛好滿行時的文字折行與縮排異常

當斜線指令的輸出或系統警示訊息剛好與終端機視窗等寬時,以前最後一個單字會被直接擠到下一行開頭且失去縮排,破壞閱讀版面。現在版面排版邏輯已經修正,即便字元長度剛好貼齊邊界也能保持整齊換行與原有縮排。

官方原文

Fixed slash-command output and alerts where a line exactly as wide as the terminal had its last word pushed to the start of the next line without indentation