You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We added a context window widget in chat to show total context window utilization, with bucketized breakdowns for system and user context.
This info is generated from:
Overall token usage: from providers
Bucket breakdown: estimates from our tokenizer
Test:
The widget shows in the chat title bar after a request is sent. The widget should appear in the title/action toolbar both in a maximized view and sidebar view.
Total context usage shows when you hover over the widget
Additional breakdown information is shown on click
When selecting models with different context windows, the denominator (total available context) changes
As you send subsequent requests, the widget shows a higher amount shaded in, the utilization increases, and the bucketized info changes accordingly.
The numbers feels accurate (i.e. is summarization kicking in at a reasonable context window utilization). Please do some exploring and extra testing here as we want this info to be complimentary to the actual experience in chat.
What sort of actions might you expect to see in the hover menu / be the most actionable?
When selecting models with different context windows, the denominator (total available context) changes
Not sure if this needs to be updated, but simply selecting another model does not refresh the denominator, user will have to run a new prompt to see that updated.
When selecting models with different context windows, the denominator (total available context) changes
Not sure if this needs to be updated, but simply selecting another model does not refresh the denominator, user will have to run a new prompt to see that updated.
Also seeing this and I would personally consider it to be a bug that should be fixed.
Also seeing this and I would personally consider it to be a bug that should be fixed.
We use the model from the last request as to prevent the context widget from updating a lot if you cycle through models. Also in the case of Auto we don't know the model until after the response is sent
Activity
bryanchen-d commentedon Jan 27, 2026
Not sure if this needs to be updated, but simply selecting another model does not refresh the denominator, user will have to run a new prompt to see that updated.
hawkticehurst commentedon Jan 27, 2026
Also seeing this and I would personally consider it to be a bug that should be fixed.
lramos15 commentedon Jan 27, 2026
We use the model from the last request as to prevent the context widget from updating a lot if you cycle through models. Also in the case of Auto we don't know the model until after the response is sent