Skip to content

Control UI: Context display shows misleading '378k/128k' vs actual 58k/128k (46%) #46517

Description

@Kru442

Bug Description

The Control UI dashboard displays context usage as '378k/128k' which appears to show 297% overflow (🚨), but the actual context window usage is 58k/128k (46%) (✅).

What's Happening

  • 378k = Lifetime tokens sent to model (cumulative session total, informational)
  • 58k = Actual active context tokens in memory
  • 128k = Context window size limit

The UI is comparing lifetime token consumption against the context window size, creating a false alarm.

Expected Behavior

Display should clarify:

  • Lifetime Tokens: 378k (informational metric)
  • Context Usage: 58k/128k (46%) (actionable metric)

Environment

  • OpenClaw: 2026.3.13 (61d171a)
  • Control UI: Dashboard view
  • Date: March 14, 2026

Impact

  • Misleading warning may cause users to trigger unnecessary compaction
  • Confusion about session health status

Suggested Fix

Separate the two metrics in the UI display:

  1. Show lifetime tokens as informational only (not compared against window size)
  2. Show context usage as the actionable percentage metric

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions