usage

usage 0.28.9

Tools and page contents
On this page

New 1

01

Claude Code's status line finally works end-to-end on Windows

On Windows, Claude Code's status line at the bottom of the terminal could fail somewhere along the way. This release fixes four links in that chain. Hooks (small programs triggered by particular events) now avoid Python paths containing non-ASCII characters, and --setup migrates older commands. All five hook scripts now read standard input as UTF-8, so a working-folder name like GitHub專案 is no longer turned into mojibake and prevented from writing usage-status.json. If Windows has no LANG-style environment variable, the hooks now use the system UI language instead. Wide terminals also measure their actual width again, restoring the (left) reset-time suffix. It is like repairing the wiring, language setting, and ruler behind a train-information board so its timetable does not vanish mid-journey. Non-Windows behavior is unchanged.

Original changelog

**The Claude Code statusLine hook now works end-to-end on Windows**: four fixes land together. setup_hook now prefers an all-ASCII python.exe path (falling back to system PATH when the venv path isn't ASCII), since Claude Code on Windows fails to spawn statusLine commands whose path contains non-ASCII characters; --setup migrates existing non-ASCII commands. All five hook scripts now read stdin via sys.stdin.buffer and decode UTF-8 explicitly (and the forwarder pins encoding=utf-8 on its subprocess fan-out), since Windows otherwise decodes the piped session JSON with the locale codepage, turning a cwd like GitHub專案 into mojibake and silently breaking usage-status.json writes. Hooks now fall back to GetUserDefaultUILanguage when no LANG-style env var is set (the Windows norm), matching the tray's existing language detection. get_width() now probes the real console width via CONOUT$ + GetConsoleScreenBufferInfo instead of always falling back to a fixed 116 columns, restoring the (left) reset-time suffix on wide terminals. Non-Windows behavior is unchanged.