usage 0.28.5
新功能 1 項
配額卡片更聰明,桌面版用戶不再滿頭問號
那些只用桌面版的人,不會再對著沒有數字的 Claude 配額卡片發愣,懷疑自己是不是沒裝好了。配額卡片背後仰賴的是 statusLine hook(一種用來攔截並回報狀態的隱藏小程式),但 Claude Code 只有在你打開互動式終端機時才會叫醒它。以前如果你只用桌面版,這個 hook 永遠不會被觸發,就算你的對話紀錄明明一直在增加,卡片還是只會死板地說「找不到狀態檔」,甚至叫你重新安裝。現在卡片會分辨情況了:如果它發現你明明有裝 hook 也有在聊天,只是缺了狀態檔,它會明確告訴你「需要開一次終端機工作階段來同步」,而不是丟給你根本不適用的安裝教學。就像你裝了智慧電表,但都在用別的插座,電表沒感應到;以前它只會叫你把電表拆掉重裝,現在它會告訴你「去插一下這個專用插座同步數據就好」。
官方原文
**The Claude quota card now explains why it shows no data for desktop-app/headless-only users**: the quota card depends entirely on the statusLine hook, which Claude Code only invokes when rendering an interactive terminal. Users whose usage happens exclusively through the desktop app or other non-TUI surfaces never trigger it, so the card stayed on a generic "status file not found" message even while the hook was correctly installed and Claude Code transcripts kept growing. The card now distinguishes this case — hook installed, transcripts actively updating, status file still missing — and shows a targeted hint that a terminal session needs to run once to sync, instead of the setup-focused message meant for users who never installed the hook at all.