mirror of
https://github.com/NanmiCoder/cc-haha
synced 2026-07-16 13:03:31 +08:00
Map CLI result cache_read_input_tokens/cache_creation_input_tokens into the desktop websocket usage payload, and count cache read/write tokens in the active session header token badge. Fixes locally: #842 Tested: bun test src/server/__tests__/websocket-handler.test.ts Tested: cd desktop && bun run test -- src/pages/ActiveSession.test.tsx --run Tested: bun run check:server Tested: bun run check:desktop Not-tested: live Windows v0.4.3 reproduction; GitHub issues remain open until release and retest. Confidence: high Scope-risk: narrow