usage

usage 0.28.7

工具與目錄
在這頁

修正 1 項

01

Windows 掛鉤與中日韓路徑修復,額度不留白、重啟不重複

現在你在 Windows 上使用中日韓字元路徑時,不用再擔心專案路徑會讓工具掛掉,或額度卡片一直顯示空白。以前有些 Windows 電腦會因為 statusLine(顯示在終端機最底下的狀態列)的 hook(掛鉤,特定事件發生時被觸發的小程式)沒有被正常叫起,導致額度卡片空白;現在當系統偵測不到狀態檔時,會自動採取備援(fallback)方案,直接讀取設定檔填補資訊。同時,如果你的工作階段(session)掛鉤路徑中含有中文等非英文字元,自我修復功能會自動將它們導向標準路徑,而且這個修正過程是冪等(idempotent)的,重複開機也不會多寫無用的紀錄。這就像是水管工人在裝水管時,不僅幫你把路徑上的石子清乾淨,還預備了第二條水管,就算主水管不通也能自動切換,而且水管鋪好一次就搞定,不會每次開水龍頭都重新拆裝一次。

官方原文

**Claude quota now shows on Windows even when the statusLine hook never fires**: a Claude Code regression stops the hook from being invoked on some Windows setups, leaving the Claude quota card permanently blank. usage_client.py now falls back to reading cachedUsageUtilization straight out of Claude Code's own ~/.claude.json when no usage-status.json exists, so the card still populates.

**Session hooks no longer break on non-ASCII (CJK) project paths on Windows**: the resume, terse-mode, and terse-reminder hook commands could point into the project or app-bundle source path, which failed to execute on Windows when that path contained Chinese/Japanese/Korean characters. Self-heal now normalizes these commands to their canonical ~/.claude/ targets, and the migration is idempotent — it no longer rewrites settings.json and appends a duplicate self-heal log entry on every restart once the command is already correct.