Skip to content

feat(webui): display current context length and compression threshold #1845

@DavdGao

Description

@DavdGao

Background

When working with LLMs, context length is a critical resource. Users currently have no visibility into how much context has been consumed or when the next context compression will be triggered. Surfacing this information in the Web UI helps users better understand the agent's memory state and anticipate compression events before they occur.

Changes

  • Display the current context length (e.g., token count) in the Web UI
  • Display the threshold at which context compression will be triggered
  • Update the display in real time as the conversation progresses

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions