繁體中文

新功能

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 也能幫你抓出舊格式並提示復原步驟。就像員工去外地出差報帳,以前只認一種舊版的紙本通行證,弄丟了就直接卡關,填表還會因為斜線打反導致印表機當機;現在多了備案,只要翻出目前有效的電子授權證明就能確認身分,並把報表格式統一,甚至連你以前寫錯的舊單據都順手改對了。

English

FEATURE

Quota collection stops failing on Windows with smarter paths and credentials

If you're running these AI tools on Windows, tallying your usage quota will finally stop failing or losing track of your identity. Previously, Antigravity's quota probing (the action that checks how many requests you have left) only recognized the legacy token file, and would simply give up if it was missing or corrupted; now it has a fallback, reading the current Windows CLI OAuth credential (a pass proving you authorized the program, stored in the Windows Credential Manager's gemini:antigravity entry) in read-only mode, and it correctly identifies your actual host platform instead of blindly claiming everyone is on a Mac (Darwin/arm64). Additionally, when collecting Claude Code quota via Git Bash on Windows, status-line commands (instructions that update the state at the bottom of the terminal) used to be written with Windows backslashes, which Git Bash treated as escape characters (syntax used to mark special symbols), ruining the path and preventing the background Python hook from launching. Everything now uses portable forward slashes; a startup self-heal (a mechanism where the program automatically upgrades its own old configurations) process silently migrates your old commands, and running --doctor will also catch legacy formats to guide you through recovery. It's like an employee filing an expense report on a business trip — previously, only an old paper pass was accepted, and losing it would instantly halt the process, while writing slashes backward would jam the printer; now there's a backup option to verify identity using your current valid digital authorization, standardizes the form formatting, and automatically corrects any incorrectly filled old forms on the spot.

原始 CHANGELOG

Original changelogWindows 上的額度收集不再罷工,路徑與憑證抓取更聰明
**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.