CodeWhale icon indicating copy to clipboard operation
CodeWhale copied to clipboard

feat: session token breakdown in footer and /status

Open encyc opened this issue 6 months ago • 1 comments

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)

encyc avatar May 15 '26 02:05 encyc

[!WARNING] You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

gemini-code-assist avatar May 15 '26 02:05 gemini-code-assist

This PR was opened before the v0.8.41 rebrand and is now stale. Feel free to rebase onto current main and reopen. 鲸鱼兄弟们等你 🐋

Hmbown avatar May 23 '26 21:05 Hmbown