usage

Antigravity 1.2.8

工具與目錄
在這頁

新功能 1 項

01

長指令不再被截斷,上下文壓縮依全篇對話分攤預算

和 AI 來回聊上幾十輪之後,你最開始交代的那一大段需求,它還記得住嗎?以前上下文壓縮(context compaction,對話太長時自動濃縮歷史以省空間的機制)時,每段提問都只能分到固定的字數上限。就算後面幾句問答都很簡短,開頭落落長的初始提示詞(prompt)也會被削成一小截。現在改由所有提問彈性分攤預算,只要後續問題短,開頭的指令細節就能完整留下來。摘要與截斷預算也改照模型完整的上下文視窗(context window,模型一次能讀取的最大容量)計算,不再依較窄的壓縮觸發門檻計算,濃縮後的重點與背景任務清單就不會被提早切掉。⟦就像會議紀錄員依照整場會議的長度來分配紙張,以前每位發言人只能分到半頁,現在後面的人講得短,開頭主席的重要報告就能整段謄錄,結尾的待辦清單也不會被裁掉。⟧

官方原文

Improved context compaction to spread its user-request budget across all captured prompts, so a long initial instruction is no longer truncated to a small fixed slice when the other prompts in the conversation are short

Improved context compaction to size summary and truncation budgets from the model's full context window instead of the compaction trigger threshold, so compacted summaries and background-task lists are no longer prematurely cut short

修正 6 項

02

自訂模型支援 PDF,多媒體檔案不再報格式不支援

在 settings.json 裡掛了自訂模型,一傳 PDF 或音訊就跳 unsupported mime type?以前丟這類附件、或讓工具輸出音訊與文件,都會直接卡住。現在自訂模型預設直接支援 PDF,而且會確實讀取 modelFeatures 裡針對 images、video、PDF 與 audio 的媒體旗標,各類多媒體檔案都能依照設定正常送給模型處理。

官方原文

Fixed PDF and audio tool outputs and attachments failing with unsupported mime type errors on custom models configured in settings.json; custom models now accept PDFs by default and honor the modelFeatures media flags for images, video, PDF, and audio

03

按 Ctrl+G 開啟 Vim 不再卡死,編輯提示詞直連終端機

想要在終端機裡好好寫提示詞,按下 Ctrl+G 就能跳進 vim 這類全螢幕編輯器慢慢改。以前按下快捷鍵時,編輯器常因為輸出沒接對終端機而卡死,畫面上還會跳出 Vim: Warning: Output is not to a terminal 警告,整個卡住不動。現在外部編輯器改在真實的終端機標準輸出(stdout)下執行,隨時按 Ctrl+G 都能直接打開編輯器,改完存檔離開就立刻回到對話。

官方原文

Fixed pressing Ctrl+G to edit the prompt in a full-screen terminal editor such as vim hanging with Vim: Warning: Output is not to a terminal; external editors now run against a real terminal stdout

04

語音聽寫超時草稿不再被清空,錄音滿三分半自動完成轉錄

對著麥克風講了一大段需求,結果一個字都沒留下?以前錄音只要超過 4 分鐘,就會觸發時限錯誤直接宣告失敗,講了老半天的轉錄草稿也跟著全部消失。現在錄音只要滿 3 分 30 秒就會自動停止並完成轉錄,講完的內容會好好轉成文字,不再怕超時白講一場。

官方原文

Fixed voice dictation sessions longer than 4 minutes failing with a deadline error and erasing the drafted transcription; recordings now automatically stop and finalize at 3 minutes 30 seconds

05

非企業帳號登入時不再看到 Google Cloud 的 Project ID

只是用個人帳號登入,啟動畫面卻冒出一串看不懂的雲端專案代碼?以前非企業的個人帳號登入時,終端機頂端的啟動橫幅會誤印出 Google Cloud 專案代碼(Project ID)。現在修好了,個人帳號登入時不會再看到這串跟你無關的代碼。

官方原文

Fixed the startup banner displaying a Google Cloud Project ID for consumer (non-enterprise) sign-ins

06

複雜步驟對話載入不再當機,分岔對話徹底隔離舊資料

對話裡有子代理、排程這類步驟,重新打開時整個程式崩潰?以前對話裡只要有背景任務、子代理管理、訊息傳遞或排程步驟,重新載入或壓縮對話時就容易觸發堆疊溢位(stack-overflow,記憶體堆疊空間耗盡導致當機)而整台程式崩潰。另外,把對話分岔(fork,從既有對話的某個時間點複製出新分支)時,新分支以前會誤把分岔點之後的舊步驟輸出抄進來,跟分岔後產生的新步驟打架。現在這兩處都已修好,載入不再崩潰,分岔後的資料也乾淨隔開。⟦翻開厚厚的工作企劃夾,重讀多組交辦與排程紀錄時不會讓活頁夾散掉,從中途另存一份新企劃時,也不會把原本後半段的舊進度混進新計畫裡。⟧

官方原文

Fixed a stack-overflow crash when loading or compacting conversations containing background-task, subagent-management, messaging, or scheduling steps

Fixed forked conversations inheriting step output data from steps after the fork point, which could collide with new steps produced in the fork

07

修復背景資源洩漏,中途取消與結束程式都不再拖泥帶水

命令列工具開了一整天,或是中途取消建立工作區,背景都不會再偷偷累積記憶體或霸佔資源。以前每個對話工作階段(session)都會漏掉背景輪詢器與計時器,開越久記憶體吃越多。要是你中途取消建立對話或工作區,背景還會傻傻繼續調度資源,現在只要取消就會立刻中止作業。想關掉工具離開時,以前也得乾等 5 秒強制逾時才能結束,現在關閉時會直接中斷未結的串流連線,按退出就能秒關。以前開久了電腦變慢、取消還佔資源、退出又得乾等的麻煩,現在一次全清乾淨了。

官方原文

Fixed a background poller and timer leaking for every conversation session, slowly accumulating memory over long-running sessions

Fixed canceled conversation and workspace creation requests continuing to provision resources in the background; aborted requests now stop immediately

Fixed quitting the CLI taking around 5 extra seconds before the process exited; shutdown now cancels open streaming connections immediately instead of waiting for a forced timeout