usage

usage 0.34.10

工具與目錄
在這頁

新功能 1 項

01

選單列與狀態列在額度用完時改倒數剩餘時間

當你密集請 AI 寫程式或查資料時,常需要隨時掌握用量上限。⟦跟在熱門停車場入口看車位動態一樣,以前車位全滿時看板只會卡在客滿紅字,現在直接換成離場倒數計時,每分鐘跳一次,即便只剩單行小螢幕也能看清剩餘時間。⟧現在選單列與 status line(顯示在終端機最底下的狀態列)正是如此運作:某個工具的 5 小時或每週額度達到 100% 時,不再卡在 100%,而是改顯示剩餘時間,例如 2h55m。兩種額度都用完時會倒數到比較晚恢復的那一個,不知道重置時間時則維持顯示 100%。在倒數期間,選單列會加快為每分鐘更新一次,不用等五分鐘。Claude Code 狀態列也同步改以紅字顯示倒數,終端機視窗再窄也會完整留著這段剩餘時間。

官方原文

**A used-up quota now shows how long until it comes back.** When a tool's 5-hour or weekly quota reaches 100%, the menu bar shows the time left, such as 2h55m, instead of a stuck 100%. If both are used up, it counts down to the later reset; if the reset time is unknown, it keeps showing 100%. While a countdown is shown, the menu bar refreshes every minute instead of every five. The Claude Code status line does the same in red and keeps the time left even in a narrow terminal.

修正 1 項

02

無 5 小時額度方案不再卡死狀態列與選單列

若你使用的是沒有 5 小時額度限制的帳號方案,最近可能遇過用量數據完全凍結不動的狀況。從 Claude Code 2.1.316 開始,沒有 5 小時額度的帳號(例如 Ultra 方案)只會收到每週額度數據。過去 status line(顯示在終端機最底下的狀態列)會把這種單一額度當成資料不全,導致畫面一直卡在最後一次的完整紀錄:每週額度條停止跳動,過期的 5 小時額度條也遲遲不退場。現在各個額度窗口改為各自獨立更新,Claude Code 不再送來的額度只要過了重置時間便會自動隱藏。選單列也同步支援單一額度讀取,不用再苦等兩個額度都到齊。⟦雙欄計分板在更新賽況時,以前若少了一組比賽成績,整面看板就會卡在上一輪的舊紀錄;現在每組各自刷新,不再開打的場次過期後便自動撤下。⟧感謝 @dvdmaru 回報問題並提交修復(#273)。

官方原文

**The status line no longer freezes quota on plans without a 5-hour limit.** Since Claude Code 2.1.316, accounts with no 5-hour limit (such as the Ultra plan) get only the weekly window. The status line treated that as missing data and kept showing the last full snapshot, so the weekly bar stopped moving and an expired 5-hour bar stayed on screen. Each window now updates on its own; a window Claude Code stops sending disappears once its reset time has passed. The menu bar reads a weekly-only status the same way instead of waiting for both windows. Thanks to @dvdmaru for the report and fix (#273).