feat: render new xhigh effort level with its own color#24
Merged
Conversation
Claude Code v2.1.111 introduced the xhigh effort level (between high and max, Opus 4.7 only). Both scripts previously fell through to the green default branch, so xhigh was indistinguishable from high. Render xhigh in purple and add explicit high cases for clarity.
xhigh\ effort level with its own colorxhigh effort level with its own color
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #23.
Summary
Claude Code v2.1.111 added
xhighas an effort level betweenhighandmax(Opus 4.7 only). Both scripts fall through to the green default, soxhighis indistinguishable fromhigh.This PR adds explicit
highandxhighcases to the effort switch in bothstatusline.shandstatusline.ps1.xhighgets its own color so it's visually distinct fromhigh(green) andmax(red).Color choice
I went with purple (
#A78BFA,rgb(167, 139, 250)) forxhighsince green (high), red (max), orange (medium), and yellow (usage-50%) are already in the palette, and purple reads well on both dark and light terminals. Entirely a matter of taste — happy to change it to whatever you prefer (another shade, a different hue, a symbol prefix like!xhigh, etc.).Verified
Both scripts tested locally with
CLAUDE_CODE_EFFORT_LEVEL=xhighagainst a mock Claude Code input. Output contains\033[38;2;167;139;250m(purple) forxhighand the existing ANSI codes for the other levels.med)med)Test plan
CLAUDE_CODE_EFFORT_LEVEL=xhigh bash statusline.sh < mock.json— emits purpleCLAUDE_CODE_EFFORT_LEVEL=xhigh powershell -NoProfile -File statusline.ps1 < mock.json— emits purplelow,medium,high,max) unchanged