CodeWhale
CodeWhale copied to clipboard
feat: session token breakdown in footer and /status
Add accumulated session token tracking with input / cache-hit / output breakdown.
Changes
- SessionState: new total_input_tokens, etc.
- Turn outcome handler: accumulate per-turn token breakdown
- StatusItem::Tokens: new footer chip, enabled by default
- Footer chip: 12K in / 8.1K cch / 2.5K out
- /status: expanded with session input/cache/output rows
Note
Cost in CNY via cost_currency = cny config.
Verified
- cargo check/fmt/clippy/test pass (3113 passed)
[!WARNING] You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!
This PR was opened before the v0.8.41 rebrand and is now stale. Feel free to rebase onto current main and reopen. 鲸鱼兄弟们等你 🐋