usage 0.28.3
新功能 1 項
Windows 上的額度收集不再罷工,路徑與憑證抓取更聰明
如果你是用 Windows 跑這些 AI 工具,現在統計使用額度時,終於不會卡住或抓不到你的身分了。以前 Antigravity 的額度探測(quota probing,去查你剩下多少可用次數的動作)只認得舊版的 token 檔案,這個檔案不見或壞掉時就會直接罷工;現在它多了一條退路,會退而求其次去唯讀 Windows CLI 目前的 OAuth 憑證(OAuth credential,一種讓程式證明這是你本人授權的通行證,存在 Windows Credential Manager 的 gemini:antigravity 項目裡),而且回報資料時能正確說出你是哪種主機平台,不再一律宣稱大家都是 Mac(Darwin/arm64)。另外,當你在 Windows 搭配 Git Bash 收集 Claude Code 額度時,以前狀態列指令(status-line commands,顯示在終端機底部的狀態更新指令)用的是 Windows 的反斜線路徑,這在 Git Bash 裡會被當成跳脫字元(escape character,用來標記特殊符號的寫法)把路徑吃掉,害背後的 Python 程式無法啟動。現在全部改用正斜線,啟動時的自我修復(self-heal,程式自己動手更新舊設定的機制)會順手幫你把舊指令升級,用 --doctor 也能幫你抓出舊格式並提示復原步驟。就像員工去外地出差報帳,以前只認一種舊版的紙本通行證,弄丟了就直接卡關,填表還會因為斜線打反導致印表機當機;現在多了備案,只要翻出目前有效的電子授權證明就能確認身分,並把報表格式統一,甚至連你以前寫錯的舊單據都順手改對了。
官方原文
**Antigravity quota probing now reads the current Windows CLI OAuth credential**: when the legacy token file is missing or unusable, usage falls back read-only to the gemini:antigravity Windows Credential Manager entry. The quota request's user agent now also identifies the actual host platform instead of always claiming Darwin/arm64.
**Claude Code quota collection now works with Git Bash on Windows**: status-line commands were written with Windows backslashes, but Claude Code runs them through Git Bash when it is installed, where those backslashes escape the path and prevent the Python hook from launching. New commands use portable forward slashes; startup self-heal migrates existing usage-owned commands, and --doctor identifies the legacy form and the recovery step.