usage

usage 0.32.4

工具與目錄
在這頁

新功能 5 項

01

Windows 系統匣可切換額度來源,工作列支援透明剩餘數字

在 Windows 上寫程式時,你隨時都能一眼掌握主要 AI 工具的剩餘額度。現在你可以直接在系統匣或面板選單中,指定要顯示 Claude Code 或 Codex 的額度(quota,可用額度上限),重開軟體後也會記住這項偏好。若 Codex 尚未回報工作階段(session,單次對話視窗)資訊,則會自動改用每週額度備援。桌面底端也能在通知區域旁開啟透明的額度標籤,支援螢幕縮放與深淺色主題,遇到全螢幕時會自動隱藏。標籤會排在工作列按鈕與「新聞和興趣」天氣元件左側,空間不足時改放外側位置,點擊切換面板時也不會卡住介面。⟦如同在辦公桌角擺放可自選頻道的微型跳表,以前只能看固定數字,現在能自由切換要盯哪項開銷,位置不夠還會自動挪位避免擋路。⟧

官方原文

**Windows:** choose Claude Code or Codex as the tray quota source in the tray or panel menu. The selection is remembered; Codex falls back to its weekly quota when no session window is reported.

**Windows:** optionally show a transparent remaining-quota label beside the notification area, with DPI scaling, light/dark theme support, and fullscreen hiding. It moves left of taskbar buttons and the News and interests weather widget, with an outside fallback when space runs out. Click the label to toggle the panel without blocking the UI thread.

02

常駐背景每小時檢查新版本,更新失敗清楚說明原因

長時間開著電腦工作時,不用特地重開程式也能即時收到新版發布通知。macOS 與 Windows 上的 usage 現在每小時都會重新評估自動檢查,不再只於啟動時檢查,並維持原本 24 小時檢查間隔、忽略期與略過版本的規則。若檢查失敗,會依序等 1、1、2、4、6 小時重試,發現新版就會跳出更新視窗。過去曾在 6 月已移除的舊設定中關閉自動檢查的人,也會重新恢復自動檢查。在 Windows 上手動點擊 Check for Updates(檢查更新)若失敗,對話方塊會說明離線、伺服器報錯或回應無法讀取等原因。面對 GitHub 請求受限(HTTP 403 或 429 代碼)等狀況,視窗會提供 Retry 與 Cancel 按鈕讓你重試或取消。⟦像大樓管理員定期巡視信箱,以前只有你剛出門才會告知有掛號信,現在每隔一陣子主動巡檢,信差延遲時還會依序重試並說明卡關原因。⟧

官方原文

**Windows:** a failed **Check for Updates** now says why: you are offline, GitHub is limiting requests (HTTP 403/429), GitHub returned an error, or its response could not be read. The message box offers **Retry/Cancel**.

**Updates are found while usage stays open:** On macOS and Windows, usage now re-evaluates automatic checks every hour instead of checking only at launch, still respecting the existing 24-hour check interval, dismissal cooldown and skipped version, and retrying failed checks after 1, 1, 2, 4 and 6 hours. Finding a new version opens the same update dialog as the launch check. Automatic checks also resume for anyone who turned them off with the old setting, which was removed in June and could not be turned back on.

03

自動啟動與精簡模式遇阻時,選單列直接標註警告符號

當背景自動排程或省流機制無法運作時,你能在選單列上迅速掌握問題。在 macOS 與 Windows 上,Auto-start 5-hour Session(自動啟動 5 小時工作階段)會記錄每次結果,視窗閒置時 10 分鐘後重試。最終失敗會在選單列旁加上 ⚠ 符號,停留可看原因,開啟提醒時亦會發送通知;同錯誤不重複通知,成功一次即清掉警告。Codex 0.129 起只執行已信任的 hook(掛鉤,特定事件觸發的小程式)。若 usage 的啟動掛鉤未獲信任,Token Saver(精簡模式)項目也會標註 ⚠,提示到 Codex 輸入 /hooks 啟用。usage 只讀取信任設定而不自行授權,usage doctor 也會回報。⟦彷彿工廠機台的警報燈,以前失效只會默默停工,現在會亮黃燈並附上說明。⟧

官方原文

**Auto-start failures are visible:** On macOS and Windows, **Auto-start 5-hour Session** records each attempt's result, including a missing command, timeout, non-zero exit with the command's last output line or an exception, and retries once after 10 minutes if the window is still idle. A final failure adds ⚠ to the existing menu row with the reason on hover and sends a notification when usage alerts are on; the same error is not notified again for every window, and a successful attempt clears the warning and notification suppression.

**Token Saver warns when Codex will not run it:** Codex 0.129 and newer require trusted hooks; when usage's session-start hook is untrusted or disabled, the existing **Token Saver** row adds ⚠ with a hover hint to trust it through /hooks in Codex. usage only reads the trust settings and never grants trust itself; usage doctor also reports the state.

04

Antigravity 登入過期即時提醒,自動啟動改用新模型

使用 Antigravity 追蹤用量時,若帳號驗證失效或背景連線中斷,介面會清楚指引下一步。當登入憑證失效時,額度卡片會直接標示 Sign-in expired(登入已過期)並提示重新登入。終端機指令 usage status --json 與側邊面板會回報 not_signed_in,待下次成功查詢額度後即自動清除警告。另外,背景保活程式原本因請求已下架的舊版 Gemini 3.5 Flash (Low) 模型,導致連線不斷出錯。現在已更新為 Gemini 3.8 Flash (Low),讓自動啟動機制恢復正常。⟦恰似門禁刷卡系統換發新卡,以前通行證過期只會無聲卡住閘門,現在螢幕會跳出重新感應提示,主機也同步對齊最新頻段確保暢通。⟧

官方原文

**Expired Antigravity sign-in is visible:** The quota card shows "Sign-in expired" with a hint to sign in again, and usage status --json reports not_signed_in, which the side pane already displays. The warning clears after the next successful quota check.

**Antigravity auto-start works again:** The keeper asked Antigravity for Gemini 3.5 Flash (Low), which it no longer offers, so every ping exited with an error. It now uses Gemini 3.8 Flash (Low).

05

前景執行仍能接收通知橫幅,已終止背景工作正確標記

在桌面上切換不同視窗操作時,各項工作進度與系統提醒的狀態現在更加精確。在 macOS 上,即使 usage 正位於前景使用中,系統仍會正常顯示通知橫幅,若通知權限遭拒也會記錄至日誌檔。此外側邊面板也修正了背景工作狀態,當收到 killed、stopped 或 cancelled 通知時,面板會標示為 stopped(已停止)。畫面不再將中途終止的工作誤植為 completed(已完成),避免誤判執行結果。⟦跟包裹追蹤系統的進度更新一樣,以前中途退件會被誤蓋上順利送達印章,現在視窗開在眼前照樣跳出快訊,配送中斷也會確實標記為已停止。⟧

官方原文

**macOS notification banners appear while usage is in front:** Banners now appear even when usage is the foreground app, and denied notification permission is recorded in the log file.

**Stopped background jobs show the right status:** The side pane now shows "stopped" instead of "completed" when a background job's notification says killed, stopped or cancelled.