feat(windows/anthropic): fix service & track design/extra usage
This PR resolves LocalSystem service startup and logging issues on Windows. Additionally, it adds tracking for Claude Design and Extra Usage (with Euro currency support) to the Anthropic provider, and introduces a new 1080p-optimized 'Wall Mode' for dedicated displays featuring a high-density, scroll-free layout with a floating exit toggle.
Hey Pavel, nice work on the extra usage credits tracking and Wall Mode. A few things before we can merge:
Questions:
- Does Anthropic's API actually return
seven_day_opusas a quota key? We've seenseven_dayandseven_day_sonnetbut never a separate Opus weekly limit. Can you share a sample API response showing this?
Bugs/Issues:
config.go: Theos.MkdirAllis placed afteros.Stat- if the directory doesn't exist, Stat fails first and MkdirAll never runs. Move it before the Stat call.cleanup-services.ps1andsetup-service.ps1have hardcoded paths to your machine (C:\Users\Paul\...). The proper parameterized version is already atscripts/setup-windows-service.ps1- please remove these two from the PR.
CI Failure - root cause and fix:
The Test job times out on TestRun_DaemonChildStartupError (600s). Your MkdirAll addition is the cause - previously the test relied on OpenFile failing when HOME points to a temp dir with no .onwatch/ subdirectory. Now MkdirAll creates the missing dirs, logging succeeds, the daemon starts normally, and run() blocks forever at the signal select.
Fix: make the temp dir read-only so MkdirAll fails as expected:
tmpHome := t.TempDir()
t.Setenv("HOME", tmpHome)
os.Chmod(tmpHome, 0555)
t.Cleanup(func() { os.Chmod(tmpHome, 0755) })