usage

Antigravity 1.5.17

工具與目錄
在這頁

新功能 5 項

01

全螢幕輸入框支援滑鼠點選與反白

寫了一長串提問想改中間幾個字,不用再按著方向鍵慢慢挪動游標。在 full screen (altscreen) 顯示模式的輸入框裡,點一下就能把游標移到指定位置。你也能拖曳、連點兩下,或連點兩下再拖曳來按單字反白文字,放開滑鼠時不會蓋掉原本的剪貼簿內容。選好文字後可直接打字或貼上取代,也支援 Backspace、Delete、Ctrl+C 複製與 Ctrl+X 剪下。

如果開啟了 Vim 模式,在 Insert 模式以外用滑鼠選取文字,會進入逐字元選取的 Visual 模式,讓 Vim 的操作與移動指令直接作用在選取範圍上。而在 Normal 模式下點到行尾之後的位置時,游標會落在該行最後一個字元。⟦過去改這幾行字得像用老式打字機一樣一格格挪,現在則能直接拿滑鼠在畫面上點選、拉出反白,整段搬動或替換都不卡手。⟧

官方原文

Added mouse cursor placement and text selection inside the prompt box in the full screen (altscreen) rendering mode: click to move the cursor, or drag and double-click (and double-click-drag by word) to highlight text for typing or paste replacement, Backspace/Delete, Ctrl+C copy, and Ctrl+X cut without overwriting your clipboard on release. When Vim mode is on, mouse selections outside Insert mode enter characterwise Visual mode so Vim operators and motions act on the selection, and Normal-mode clicks past the end of a line land on the last character.

02

背景指令改為主動回報免重複輪詢

交辦長時間執行的背景終端機指令後,過去代理程式得另外開輪詢計時器來回檢查進度。現在追蹤背景指令時能直接排定喚醒通知,指令還在跑的話,CLI 就會自動通知代理程式,省下額外的查詢輪次。⟦不再像等快遞時一直開門探頭,快遞員會在還在路上時主動傳訊息通知,省下一次次白跑。⟧

官方原文

Improved background shell command tracking by letting run_command set a NotificationTimeoutSeconds wakeup, so the CLI automatically notifies the agent when a long-running command is still running instead of spending extra turns on separate polling timers.

03

Orchestrator 支援同設定直跑與新標示

在 /model 的 Orchestrator 這一列挑模型,現在操作更清楚,也不用多繞一圈。目前選中的思考強度 Effort 選項會加上方括號,例如 [high],Tab 鍵提示也從 tab Effort 改成 tab Next Field。

只要 Planner 和 Executor 選用相同模型與 Effort,就會直接以單一代理程式在該模型執行。這時終端機底部的狀態列會顯示該模型,/btw 會沿用它,/context 也會改用它的 context window(模型單次能處理的內容容量上限)。若是同模型家族但選了不同的 Effort,則繼續跑先規劃再執行的兩階段模式。⟦跟寫作時一樣,若構思大綱和潤稿都用同一套標準,不如直接一氣呵成;只有兩階段想用不同力道時,才值得分兩輪處理。⟧

官方原文

Improved the Orchestrator row in /model so that picking the same model and thinking Effort for both Planner and Executor runs single-agent directly on that model — showing it in the status line, inheriting it in /btw, and using its context window in /context — while distinct Effort levels of the same model family continue to run two-phase plan-and-execute.

Improved the Orchestrator row in /model by bracketing the focused thinking Effort choice (such as [high]) and labeling Tab as tab Next Field instead of tab Effort.

04

/usage 滿一天改用天數顯示額度倒數

想確認還要等多久才會重算額度,過去遇到大於一整天的數字,得自己把小時換算成天數。現在輸入 /usage 查看,只要額度更新倒數滿 24 小時以上,就會改用天、小時與分鐘顯示。舉例來說,畫面上會寫成 in 3d 3h 59m,不再是原本的 in 75h 59m。

官方原文

Improved /usage to format quota refresh countdowns of 24 hours or longer in days, hours, and minutes (such as in 3d 3h 59m instead of in 75h 59m).

05

/mcp 與 /plugin 的遠端登入不再過期斷線

連上遠端工具卻用一陣子就突然斷線,往往是初次登入的憑證過期了。現在透過 /mcp 與 /plugin 替 MCP(Model Context Protocol,讓 AI 連接外部工具的協定)伺服器做 OAuth 登入,會多做一層確認。

只要伺服器有指定權限範圍 scopes,且驗證伺服器宣告支援 offline_access,CLI 就會一併請求 offline_access。這樣像 Vercel 這類遠端伺服器就會核發更新用的 token(驗證用的授權令牌),不至於在原本的存取憑證過期後直接斷線。⟦就像拿著只管一陣子的訪客證進門,時間一到就得重新核對證件;預先申請可換發的憑證後,快過期就能自動換新證,不必中途被請出場。⟧

官方原文

Improved MCP server OAuth sign-in in /mcp and /plugin to request offline_access when the server specifies scopes and its authorization server advertises offline_access, so remote MCP servers such as Vercel's issue refresh tokens instead of disconnecting when the initial access token expires.

修正 9 項

06

修正斜線指令選單按 Tab 補全失效

打 / 叫出指令補全選單後,過去只要多個指令開頭相同、用 ↑ 或 ↓ 切換過項目,或剛輸入 plugin:,按 Tab 都會完全沒反應。這個問題已經修好,現在只要沒有更長的共同前綴可以延伸,按 Tab 就會補全目前反白的指令並關閉選單。

官方原文

Fixed pressing Tab in the / slash-command autocomplete menu doing nothing when multiple commands shared what you typed, after navigating with ↑ or ↓, or right after a plugin: prefix; Tab now completes the highlighted command and closes the menu whenever no longer common prefix can be extended.

07

修正全螢幕模式面板與選單捲動錯位

在 full screen (altscreen) 顯示模式下,過去想捲動開啟的面板或選單時,捲動的卻是背後的對話內容。這個問題已經修好,現在把滑鼠滾輪移到底部面板,或 /、@ 與參數下拉選單上捲動,只會捲動面板本身。

在 /help、/permissions、/skills、/context、/usage 這類會自行分頁的面板操作時也一樣。按 PgUp、PgDn、Shift+↑ 或 Shift+↓,只會切換面板頁數,不會捲到背後對話。

官方原文

Fixed mouse-wheel scrolling over an open bottom panel or /, @, or argument dropdown — and PgUp, PgDn, Shift+↑, or Shift+↓ in panels that page themselves (such as /help, /permissions, /skills, /context, and /usage) — scrolling the conversation behind the panel instead of the panel itself in the full screen (altscreen) rendering mode.

08

修正 agy update 狀態訊息階梯縮排

在終端機開啟 raw output 模式跑更新指令,印出來的每行訊息都會一路往右偏。這個問題已經修好,現在執行 agy update 時,每行狀態訊息都會對齊輸出,而透過管線傳輸或導向存進檔案時,仍維持原本的純換行格式。

官方原文

Fixed agy update printing status lines with staircase indentation when run in a terminal with raw output mode enabled, while keeping newline-only output when piped or redirected to a file.

09

長對話遇憑證過期或模型滿載可續跑

讓代理程式連續跑比較久的任務,最怕快完成時遇到中途連線狀況而整段白費。

當 Google OAuth 的存取 token 跨過一小時效期,過去會直接跳出 UNAUTHENTICATED 與 401 錯誤而中斷。現在 CLI 會在過期前預先更新 token,串流開始前若遇到 401 也會自動重試。

若是分多段串流的長篇模型回應,續傳遇到暫時性 503 或 MODEL_CAPACITY_EXHAUSTED 容量不足錯誤,過去會丟失進度而重來或失敗。現在 CLI 會自動重試,直接從原本中斷的地方接續完成。

官方原文

Fixed long-running agent turns failing with an UNAUTHENTICATED (401) error when a Google OAuth access token crossed its one-hour expiry; the CLI now refreshes tokens ahead of expiry and retries a pre-stream 401 automatically.

Fixed long, multi-part streaming model responses discarding their progress and restarting or failing the turn when a continuation request hit a temporary model capacity (503 / MODEL_CAPACITY_EXHAUSTED) error; the CLI now retries and resumes from where the response left off.

10

修正企業預付餘額歸零時的錯誤提示

Gemini Enterprise 預付錢包歸零後,過去會反覆重試並誤報額度用完的 You have exhausted your quota on this model.。現在 CLI 會立刻停止,改顯示下列提示:

``` Your organization's prepaid balance is insufficient. Contact your administrator to add funds. ```

遠端控制網頁上也會顯示 Organization prepaid wallet is empty 的提醒。

官方原文

Fixed turns on Gemini Enterprise accounts with an empty prepaid wallet retrying repeatedly and reporting You have exhausted your quota on this model.; the CLI now stops right away and tells you Your organization's prepaid balance is insufficient. Contact your administrator to add funds. (with an Organization prepaid wallet is empty notice in the Remote Control browser view).

11

修正企業版存取外部檔案繞過敏感檔保護

你使用 Gemini Enterprise 或企業模型閘道的工作階段,且允許取用工作區以外的路徑,過去卻會直接跳過確認與封鎖關卡。受影響的敏感檔案包括 .git、.env、config.json、hooks.json 與 mcp_config.json。這個問題已經修好,現在內建的核准與拒絕保護機制不會再被繞過。

官方原文

Fixed Gemini Enterprise and enterprise model-gateway sessions with non-workspace file access allowed bypassing built-in approval and deny protections on sensitive files such as .git, .env, config.json, hooks.json, and mcp_config.json.

12

修正 Windows 跨磁碟執行外掛漏帶 token

在 Windows 上關掉終端機沙盒,又把工作區和使用者設定檔分開放在不同槽,過去啟動 CLI 工具時會少帶驗證資訊。這個問題已經修好,現在外掛工具能順利取得原本設定的驗證 token 執行。

官方原文

Fixed plugin CLI tools on Windows running without their configured authentication token when the terminal sandbox is off and your workspace is on a different drive letter than your user profile.

13

修正遠端控制網頁回應期間鎖定模型選單

這一輪還在跑的時候,你想在瀏覽器裡先換個選項來發問,卻發現訊息框裡的切換鈕完全按不動。這個問題已經修好,現在遠端控制網頁在回應進行到一半時也能切換模型,用來處理 /btw 順帶提問或接在這一輪之後送出的訊息。

官方原文

Fixed the model picker in the message box of the Remote Control browser view being locked while a turn is running; you can now switch models mid-turn for /btw side questions and messages sent after the current turn.

14

修正遠端控制網頁含 \label 數學式無法顯示

在瀏覽器打開 AI 算出的 LaTeX 公式,過去只要裡面帶有標籤,畫面上就會跳出 Failed to render LaTeX 錯誤。這個問題已經修好,現在遠端控制網頁也能正常顯示含有 \label{...} 標籤的數學區塊。

官方原文

Fixed LaTeX math blocks containing \label{...} failing to render with Failed to render LaTeX in the Remote Control browser view.