Skip to content

fix(profile): distinguish token mix categories - #877

Merged
junhoyeo merged 1 commit into
mainfrom
agent/distinct-token-mix-colors
Jul 13, 2026
Merged

fix(profile): distinguish token mix categories#877
junhoyeo merged 1 commit into
mainfrom
agent/distinct-token-mix-colors

Conversation

@junhoyeo

@junhoyeo junhoyeo commented Jul 13, 2026

Copy link
Copy Markdown
Owner

Summary

  • Replaces the blue-only Token mix ramp with distinct sky-blue, green, purple, amber, and neutral categories.
  • Preserves the existing layout, values, and accessible token-distribution description.

Why

The previous accent variants were too similar to distinguish reliably in the segmented bar and matching metric markers.

Validation

  • bun run lint (passes with six existing warnings)
  • bun run typecheck
  • bun run test (601 tests)

Summary by cubic

Switches the profile token mix from a single blue ramp to a distinct categorical palette so each category is easy to tell apart in the segmented bar and metric list.

  • Bug Fixes
    • Assigns unique colors for Input, Output, Cache read, Cache write, and Reasoning.
    • Keeps the existing layout, values, and accessible distribution text; no theme contract changes.
    • Colors tuned for the compact dark profile surface.

Written for commit f2f1de4. Summary will update on new commits.

Review in cubic

Use a categorical palette so input, output, cache reads, cache writes, and reasoning tokens remain legible in both the segmented bar and the metric list.

Constraint: The compact dark profile surface needs colors with clear category separation without changing its layout or theme contract
Rejected: Retain a single blue accent ramp | adjacent token categories remain difficult to distinguish
Confidence: high
Scope-risk: narrow
Reversibility: clean
Directive: Keep token categories color-distinct; do not collapse them back into one hue family
Tested: bun run lint (six existing warnings), bun run typecheck, bun run test (601 tests)
Not-tested: Visual screenshot comparison skipped at user request
@vercel

vercel Bot commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
tokscale Ready Ready Preview, Comment Jul 13, 2026 9:59am

Request Review

@junhoyeo
junhoyeo marked this pull request as ready for review July 13, 2026 10:02
@junhoyeo
junhoyeo merged commit 50ef057 into main Jul 13, 2026
7 checks passed
@junhoyeo
junhoyeo deleted the agent/distinct-token-mix-colors branch July 13, 2026 10:03
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