Skip to content

Render statusline context as a meter - #17170

Merged
etraut-openai merged 6 commits into
mainfrom
etraut/statusline-context
Apr 9, 2026
Merged

etraut-openai merged 6 commits into
mainfrom
etraut/statusline-context

Conversation

@etraut-openai

@etraut-openai etraut-openai commented Apr 8, 2026 •

Copy link
Copy Markdown
Contributor

Problem: The statusline reported context as an “X% left” value, which could be mistaken for quota, and context usage was included in the default footer.

Solution: Render configured context status items as a filling context meter, preserve context-used as a legacy alias while hiding it from the setup menu, and remove context from the default statusline. It will still be available as an opt-in option for users who want to see it.

image

@fcoury-oai

Copy link
Copy Markdown
Contributor

BTW I really like this one :-)

Copy link
Copy Markdown
Contributor Author

Yep, empty-at-session-start is intentional here. Eric corrected the direction earlier: the bar should grow as the context window fills up, so it is representing used context, not remaining context.

I kept the runtime label neutral as Context [...] and just pushed 110542cc4f to change the /statusline setup wording from “remaining” to “usage” so the picker doesn’t imply the opposite direction. The config id remains context-remaining for compatibility, and legacy context-used configs are normalized to that picker item.

@openai openai deleted a comment from fcoury-oai Apr 9, 2026
@etraut-openai
etraut-openai merged commit 598d6ff into main Apr 9, 2026
22 checks passed
@etraut-openai
etraut-openai deleted the etraut/statusline-context branch April 9, 2026 14:52
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 9, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants