Skip to content

Test: Context window widget #290398

Closed
Closed

Description

Refs: #249983

Complexity: 3

Authors: Logan Ramos (@lramos15)

Create Issue


We added a context window widget in chat to show total context window utilization, with bucketized breakdowns for system and user context.

Image

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?

Activity

  1. bryanchen-d commented on Jan 27, 2026

    @bryanchen-d
    Collaborator

    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.

  2. hawkticehurst commented on Jan 27, 2026

    @hawkticehurst
    Member

    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.

  3. lramos15 commented on Jan 27, 2026

    @lramos15
    Member

    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

  4. removed their assignment
    on Jan 27, 2026
  5. locked and limited conversation to collaborators on Mar 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions