usage

Antigravity 1.1.0

工具與目錄
在這頁

新功能 2 項

01

預設改檔前先讓你看差異,還能直接用面板切換代理模式

改檔前你會先看到差異,可決定是否接受。,會預設先暫停並清楚秀出修改前後的差異。以前程式可能不作聲就把檔案改了,現在它會跳出精細到每一行的差異預覽(diff preview),讓你能先檢查並決定要不要接受;如果是建立新檔案,也會有專屬的預覽畫面,而且如果你在看差異時留了註解還沒送出就想關掉,系統也會貼心提醒你。你也不用再為了切換這些執行模式(像是不問就直接改的 accept-edits 或只規劃的 plan)而去改設定檔或加啟動參數,現在按 shift+tab 就能直接輪替切換,或到 /settings 面板裡用「代理模式」選項點一下就立刻生效。舊版的 /planning 與 /fast 快捷指令也一併整併成更簡潔的 /plan。就像去剪頭髮,以前理髮師可能聽完就直接動刀,現在他預設會先拿鏡子比劃給你看要剪哪裡,你點頭了他才剪,而且你想換成「不廢話直接剪」模式,只要在座位旁的面板點一下就行。

官方原文

Agent execution mode cycling is now publicly available: default -> accept-edits -> plan)

Added request-review (default) mode as the default execution behavior: automatically pauses before file write operations to display an interactive, line-level diff preview (f shortcut) where users can review, accept, or reject individual code modifications before they are saved to disk.

Added an Agent Mode option to the /settings panel so users can set and persist a default execution mode (default, accept-edits, plan) without manually editing settings.json or passing --mode on startup, with real-time synchronization so changes take effect immediately.

Added a dedicated "Create file" confirmation preview for new file creations (write_to_file without overwrite): renders new content as an addition-only diff preview.

Added /plan mode to replace legacy /planning, and removed /fast slash commands: consolidated and simplified execution mode switching around shift+tab mode cycling and the /plan mode prefix

Improved file-edit diff preview rendering: computed accurate line-level diffs with context lines (3 lines) and hunk separators, capped inline preview height with truncation hints, and added a comment confirmation prompt when exiting the diff view with unsent comments.

02

介面排版更聰明,快捷鍵提示與時間顯示不再錯亂

你在各個面板看任務或改名時,畫面變得更整齊,提示也不會再牛頭不對馬嘴了。以前底部的快捷鍵提示是寫死的,就算你自己改了快捷鍵設定檔(keybindings.json),畫面上還是教你舊的按法;現在它會乖乖照你改的顯示。在 /resume 裡幫對話改名時,輸入框會自動調整寬度,旁邊的資訊也會好好靠右對齊,不會因為你打字就讓整個畫面亂跳。全螢幕面板(像設定或更新日誌)裡也不會再跑出多餘的「按 ? 看快捷鍵」或「按 Esc 取消」來干擾視線。另外,背景任務的時間戳(timestamp)也不會再傻傻顯示格林威治標準時間(UTC),現在都會自動換算成你所在地的時間。就像看展覽,以前每個展區門口的導覽圖都是舊版的,有些地方還貼著不相干的「往上走」箭頭,現在所有告示牌都跟你手上的最新地圖同步,而且營業時間也終於換成你熟悉的本地時間了。

官方原文

Improved UI footer keybinding hints across all panels (such as /tasks, /agents, /permissions, and /mcp) by replacing hardcoded hint strings with centralized layout helpers that dynamically respect customized global and local keybinding configurations (keybindings.json).

Improved the multiline conversation rename view in the /resume picker by dynamically adjusting input box width and padding, and right-aligning metadata columns (workspace, steps, time) on the top line to prevent horizontal scrolling or layout shifts during active renaming.

Fixed statusline shortcut hints (? for shortcuts) and redundant escape hints (Esc to cancel) erroneously appearing inside full-screen overlay panels (such as /changelog, /artifact, and /settings) by correctly tracking overlay panel states.

Fixed inconsistent timestamp formatting in the /tasks panel and task detail views by converting agent-initiated background task timestamps (time.Time) from UTC to the local timezone.

修正 1 項

03

修好各種路徑與目錄誤判,建新檔案不再被無辜阻擋

你在自己的工作目錄裡建立或讀取檔案,不會再莫名其妙被系統警告了。以前因為路徑判斷的瑕疵,就算你明明在正確的資料夾裡做事,工具確認對話框還是會誤判並跳出「超出工作目錄外」的警告;現在這個問題修好了。如果你把專案放在名稱有加點的前置目錄(像是 .parent_dir/project),以前系統會因為過濾規則太廣而啟動失敗,現在也懂得只管目錄裡面的事而不會亂擋。建立新代理時,面板上的路徑終於指向正確的設定檔總目錄(~/.gemini/config/),標題也不會再把應該是 agent.md 的附檔名錯寫成 agent.json。就像進自己公司辦公室,以前警衛會因為你走過的路名叫「.暗巷」就不准你上班,或者明明在自己座位上辦公卻被警告「擅闖禁區」,現在警衛終於認得你而且認得公司的範圍了。

官方原文

Fixed the tool confirmation dialog to accurately check normalized file URIs against active workspace directories, resolving an issue where valid in-workspace file creations and reads were incorrectly flagged with an "Reason: outside workspace" warning.

Fixed workspace initialization failures when launching the CLI inside dot-prefixed directories (such as .parent_dir/project ) by scoping path exclusion filters strictly to relative paths inside the workspace rather than rejecting dot-prefixed ancestor directories.

Fixed the /agents panel's "Create New Agents" section displaying the wrong global configuration directory (~/.gemini/antigravity-cli/ instead of ~/.gemini/config/), ensuring users create global subagents in the location actively scanned during startup discovery.

Fixed the /agents view header displaying agent.json instead of agent.md when creating new subagents.