繁體中文

問題修復

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

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

English

BUGFIX

Windows hooks and CJK path fixes: quotas display correctly and restarts stay clean

You can now use Chinese, Japanese, or Korean characters in your project paths on Windows without fearing that tool commands will crash, or that your quota card will stay stubbornly blank. Previously on some Windows setups, the statusLine hook would fail to fire, causing the usage quota card to remain blank; now the tool automatically falls back to reading the configurations directly to populate the info. At the same time, if CJK characters in your project paths caused session hooks to error out, the self-heal process now normalizes them to their standard directory targets, and this migration is idempotent so it won't repeatedly write redundant logs on restarts. It is like a plumber who not only clears out pebbles blocking your pipe but also routes a backup water line in case the main line clogs, ensuring the faucet works smoothly and the configuration is set once and for all.

原始 CHANGELOG

Original changelogWindows 掛鉤與中日韓路徑修復,額度不留白、重啟不重複
**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.