usage 0.34.12
新功能 2 項
額度查詢支援多種安裝工具,用量與重置倒數即時更新
在背景同時跑多個 AI 對話或使用不同的套件管理器時,選單列上的額度與用量更新不再慢半拍。⟦跟看運動手錶的即時心率一樣,每步消耗當場結算,不再等跑完全程才算,計時也不會每次重設。⟧選單列 app 啟動時 PATH 較短,過去用 nvm、Volta、fnm、mise、asdf、bun 或 pnpm 安裝的指令常被當成沒裝,npm 工具也找不到 node。現在額度保持與 Antigravity、Muse 額度查詢皆能正常找到。Antigravity 對話中寫入資料庫日誌的新用量會即時計入,不用等對話結束。自訂 Claude Code 資料夾(CLAUDE_CONFIG_DIR)也改為即時同步,不再延遲最多 15 分鐘。當 Codex 回報「N 秒後重置」時,倒數改從記錄時間起算,重新整理不再重置秒數。
官方原文
**The quota keepers and the Antigravity and Muse quota checks now find CLIs installed with nvm, Volta, fnm, mise, asdf, bun or pnpm.** The menu bar app starts with a short PATH, so these installs used to look missing, and npm-installed tools could not find node.
**Antigravity usage updates while a conversation is still running.** New usage written to the database's journal file used to wait until the conversation ended.
**A custom Claude Code data folder (CLAUDE_CONFIG_DIR) refreshes as fast as the default one.** Changes there could take up to 15 minutes to appear.
**The Codex reset time no longer keeps moving.** When Codex reports only "resets in N seconds", the countdown now starts from when that message was logged, not from each refresh.
安裝與移除清理更乾淨,保護設定檔不被誤改
平常微調終端機設定或是移除工具,最怕個人偏好被意外改動,甚至因設定檔損毀而讓 app 開不起來。
從選單關掉顯示在終端機最底下的狀態列後,重開會保持關閉。執行 usage unsetup 或 --unsetup 會關掉額度提醒掛鉤(特定事件發生時觸發的小程式)、側邊面板與新手模式。移除時會還原你自己關掉的狀態列,並保留個人設定。
若 ~/.claude/settings.json 損毀,選單列 app 仍會略過提示照常啟動並顯示各工具用量。
Codex 設定不再誤改 config.toml,若多行指令含 [tui] 則保持檔案不動,並提示手動修改 status_line。
curl 安裝腳本與 LaunchAgent 腳本失效的問題皆已修復。
官方原文
**Turning off the status line from the menu now stays off after a restart.** The app used to turn it back on at the next launch. Uninstalling also restores your own status line if you had turned it off, instead of deleting it.
**A broken ~/.claude/settings.json no longer stops the menu bar app from starting.** The app skips the setup prompt and keeps showing usage for every tool.
**Uninstalling removes everything usage added to Claude Code.** usage unsetup and --unsetup now also turn off the quota reminder hook, the side panel and beginner mode; your own hooks and settings stay.
**Codex setup no longer edits text inside your config.toml instructions.** If a multi-line instruction contains a line such as [tui], setup leaves the file unchanged and asks you to adjust status_line by hand.
**The curl install script and the LaunchAgent script work again.** The install script downloaded the hook from a folder that no longer exists, and the LaunchAgent script failed on accounts without ~/Library/LaunchAgents.
修正 1 項
報表對齊本地時間與產生日,修復統計偏差與當掉問題
想精確掌握每日的用量花費,現在終端機與 HTML 報表都能忠實反映你的本地作息。
終端機報表的重置時間與工作階段開始時間改用本地時間,午夜前後的日均值也不再依 UTC 計算。紀錄全是零 token(AI 處理與計費的文字單位)的表格不再當掉。區塊畫面的每分鐘速率不再計入快取(cache,把算過的結果暫存直接用)讀取,與選單列保持一致。執行 usage sessions --sort sessions 時會自動套用預設排序,不再當掉。
HTML 報表的「今日/最近 7 天/最近 30 天/本月」改從產生日起算,不再以最後有用量的那天計算而顯示成上週資料。切換時區或對話紀錄含有未標時區的時間戳記時,報表皆可正常打開。
選單列前三名工具百分比相同時圖示會跟著更換,夏令時間切換當天的專案排行也會正確算入第一個小時。
官方原文
**The terminal report shows local times.** Reset times and session start times were shown in UTC, and daily averages near midnight used the UTC date. Tables whose records all have zero tokens no longer crash, the per-minute rate in the blocks view no longer counts cache reads (matching the menu bar), and usage sessions --sort sessions falls back to the default order instead of crashing.
**The HTML report's Today, Last 7 days, Last 30 days and This month count from the day the report was made.** They used to count from the last day with usage, so Today could show a day from last week. The report also opens after you change time zones, or when a transcript has a timestamp without a time zone.
**The menu bar icons follow the top three tools even when their percentages are equal.** On daylight saving days, the Today project ranking also counts the first hour correctly.