Skip to content

fix(web): context window categories keep one fixed color each - #236

Merged
badcuban merged 1 commit into
mainfrom
threadlines/consistent-context-window-colors
Sep 6, 2026
Merged

fix(web): context window categories keep one fixed color each#236
badcuban merged 1 commit into
mainfrom
threadlines/consistent-context-window-colors

Conversation

@badcuban

@badcuban badcuban commented Sep 6, 2026

Copy link
Copy Markdown
Collaborator

The context window breakdown for Claude colored each row by its position in the list Claude sends, so "Messages" landed on a different color from thread to thread and the palette looked random.

Colors are now keyed by category name. Messages use the primary blue (matching the meter ring), each thing the session was given has a fixed hue (system prompt purple, system tools orange, MCP tools teal, memory files green, skills rose), the autocompact buffer is gray, and unknown categories share one fallback yellow. The CSS tokens were renamed from indexed to named, and the browser test asserts Messages get the primary color regardless of list order.

Legend and bar colors were assigned by position in the list Claude sends,
so "Messages" changed color from thread to thread and the palette looked
random. Colors are now keyed by category name: Messages use the primary
blue, each thing the session was given (system prompt, system tools, MCP
tools, memory files, skills) has a fixed hue, and the autocompact buffer
is gray. Unknown categories share one fallback color.
@vercel

vercel Bot commented Sep 6, 2026

Copy link
Copy Markdown

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

1 Skipped Deployment
Project Deployment Actions Updated
threadlines Skipped Skipped Sep 6, 2026 5:52am UTC

Request Review

@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:M labels Sep 6, 2026
@badcuban
badcuban added this pull request to the merge queue Sep 6, 2026
Merged via the queue into main with commit 6feb668 Sep 6, 2026
16 checks passed
@badcuban
badcuban deleted the threadlines/consistent-context-window-colors branch September 6, 2026 06:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant