Skip to content

[Bug]: Control UI token display shows incorrect values - shows cumulative tokens instead of current context #47885

@unrealfish

Description

@unrealfish

Bug type

Behavior bug (incorrect output/state without crash)

Summary

Control UI shows "353k/200k 100% ctx used" while TUI shows "95k/200k (47%)" - displays cumulative tokens instead of current context

Steps to reproduce

  1. Open Control UI (web interface)
  2. Have a conversation with the agent
  3. Look at the token display in the Control UI
  4. Compare with TUI (terminal UI) token display

Expected behavior

Control UI should show current context usage (like TUI does), e.g., "95k/200k (47%)"

Actual behavior

Control UI shows "353k/200k 100% context used" with popup warning, while TUI shows "95k/200k (47%)". The Control UI appears to be showing cumulative total input tokens instead of current context window size.

OpenClaw version

2026.3.13

Operating system

macOS 15.6.1 (Darwin 24.6.0)

Install method

No response

Model

MiniMax-M2.5

Provider / routing chain

minimax-cn/MiniMax-M2.5 (direct API)

Config file / key location

No response

Additional provider/model setup details

No response

Logs, screenshots, and evidence

Impact and severity

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingbug:behaviorIncorrect behavior without a crash

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions