Antigravity 1.3.5
新功能 3 項
自動模式登場,常規修改直接放行免反覆確認
在終端機裡請 AI 幫忙寫程式或改檔案時,每動一行代碼都要停下來等你按 Enter 同意,流程往往被打得支離破碎。⟦宛如聘請具備授權的專業秘書,平時修改筆記或整理歸檔會直接代勞,只有遇到銷毀重要資料或簽署大筆合約時才會敲門請示。⟧新加入的自動模式(auto mode,自動核准安全操作的執行模式)會自動放行檔案編輯與安全指令,但在執行不可逆操作前依然會主動提示。要是指令可能脫離終端機沙盒(限制程式執行範圍的隔離環境),還會先交由另一個獨立代理人審查。你可以輸入 --mode auto、在 /config 裡選擇 Agent Mode,或是按 Shift+Tab 鍵循環切換模式。這項功能目前已支援 Linux 與 macOS,Windows 支援則會在後續版本推出。
官方原文
Added Auto mode, which approves file edits and safe commands without asking and still prompts before irreversible actions; commands that would leave the terminal sandbox are first reviewed by a separate agent. Choose it with --mode auto, from Agent Mode in /config, or by pressing Shift+Tab to cycle modes. Auto mode is available on Linux and macOS, with Windows support coming later.
新增 /compact 指令,隨時壓縮對話釋放記憶空間
和 AI 討論專案來回好幾輪之後,對話紀錄越積越長,往往會把模型一次能閱讀的長度塞得滿滿當當。⟦跟整理厚重的會議紀錄本一樣,以前寫到頁尾只能整本封存換新冊子,現在助理會當場把前面發言濃縮成精華摘要,空出乾淨版面讓你接著寫。⟧現在你可以隨時輸入 /compact 來壓縮對話並釋出脈絡視窗(context window,AI 一次能讀取與記住的最大文字範圍)。單獨執行 /compact 會總結目前的對話並結束這個回合。若是輸入 /compact <message>,它則會在完成總結後接著回答你的新問題。壓縮執行期間終端機會顯示 Compacting conversation... 進度標籤,按 Esc 鍵就能隨時取消。處理完成後還會清楚列出總共整理了多少步對話,以及脈絡縮小了多少。
官方原文
Added the /compact command to compact the conversation on demand and free up the context window: /compact on its own summarizes the conversation and ends the turn, and /compact <message> summarizes it and then answers your message. While it runs the CLI shows a Compacting conversation... progress label that you can cancel with Esc, and when it finishes it shows how many steps were summarized and how much smaller the context became.
/diff 支援語法上色與折疊,大檔捲動不再凍結
在終端機核對程式碼變更時,面對落落長的未改動文字往往難以閱讀,遇到超大檔案甚至還會凍結畫面。⟦好比查閱附有彩色便箋的折疊地圖,以前整張大圖攤開難以翻動,現在關鍵標記帶有醒目底色,重複路段也能隨手收折。⟧/diff 現在加入語法上色,新增與刪除行帶有底色,各色彩配置也依 token(程式碼語法標記記號)顯示專屬顏色。選用 Terminal 配色能自動偵測終端機深淺底色配對顏色,/config 與初次安裝也能直接預覽 /diff 樣貌。區塊標頭現在會標示上方隱藏的未改動行數,按 Ctrl+O 可展開或收合游標處折疊,按 f 則切換僅變更或全文;未提交檔案與 diff 一致即可操作,無法使用時頁尾會說明。目前畫面只渲染螢幕可見行,捲動、展開或開啟全文不再凍結;超過 100,000 行或 10 MB 的檔案則停用展開與全文並於頁尾提示。
官方原文
Added syntax highlighting to the /diff file view, with token colors for each color scheme and a background tint on added and removed lines. With the Terminal color scheme the CLI detects whether your terminal has a light or dark background and picks matching colors. The color scheme previews in /config and first-run setup now show a sample exactly as /diff draws it.
Added folding to the /diff file view: each hunk header now shows how many unchanged lines are hidden above it, Ctrl+O expands or collapses the fold nearest the cursor, and f switches between showing only the changes and the whole file. Both keys work on uncommitted changes when the file on disk still matches the diff, and the footer explains when they can't be used.
Improved /diff performance on very large files by rendering only the rows on screen, so scrolling, expanding folds, and opening the whole file no longer freeze the CLI. Expanding folds and showing the whole file are turned off for files over 100,000 lines or 10 MB, and the footer says why.
修正 1 項
遠端 iTerm2 顏色降級已修復,SSH 連線可享完整色彩
透過 SSH 連線使用 iTerm2 時,以前若遇到未轉發 COLORTERM 的情況,終端機顯示會被降級成 256 色。現在只要設定了 LC_TERMINAL=iTerm2,除非 COLORTERM 或 NO_COLOR 另有指定,否則會直接啟用完整的 24 位元色彩;這項色彩降級問題已經修好,遠端登入時也能正常顯示鮮明配色。
官方原文
Fixed colors being reduced to 256 colors in iTerm2 over SSH, where COLORTERM is not forwarded; the CLI now uses full 24-bit color when LC_TERMINAL=iTerm2 is set, unless COLORTERM or NO_COLOR says otherwise.