Skip to content

refactor: improve token display format with readable labels#688

Merged
FL4TLiN3 merged 1 commit intomainfrom
feat/improve-token-display-format
Mar 4, 2026
Merged

refactor: improve token display format with readable labels#688
FL4TLiN3 merged 1 commit intomainfrom
feat/improve-token-display-format

Conversation

@FL4TLiN3
Copy link
Contributor

@FL4TLiN3 FL4TLiN3 commented Mar 4, 2026

Summary

  • Change token line format from R 0 · I 78.1k · C 46.3k · O 8.3k (cache: 37.23%) to Tokens: In 78.1k · Out 8.3k · Cache 46.3k/37.23% · Reasoning 12.3k
  • Use readable labels (In/Out/Cache/Reasoning) instead of single-letter abbreviations
  • Show Reasoning segment only when reasoning tokens > 0
  • Combine cache amount and hit rate into a single Cache amount/rate% segment

Test plan

  • bun run typecheck — 24/24 pass
  • bun run test — 20/20 pass
  • bun run format-and-lint — no new issues
  • bun run validate:changeset — passed

🤖 Generated with Claude Code

Change token line from `R 0 · I 78.1k · C 46.3k · O 8.3k (cache: 37.23%)`
to `Tokens: In 78.1k · Out 8.3k · Cache 46.3k/37.23% · Reasoning 12.3k`

- Use readable labels (In/Out/Cache/Reasoning) instead of abbreviations
- Show Reasoning only when > 0
- Combine cache amount and hit rate into single segment

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@FL4TLiN3 FL4TLiN3 enabled auto-merge (squash) March 4, 2026 14:47
@FL4TLiN3 FL4TLiN3 merged commit f10abb0 into main Mar 4, 2026
11 checks passed
@FL4TLiN3 FL4TLiN3 deleted the feat/improve-token-display-format branch March 4, 2026 14:47
@FL4TLiN3 FL4TLiN3 mentioned this pull request Mar 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant