Description
The webchat UI status bar displays incorrect context usage metrics, inconsistent with the actual engine values.
Reproduction
- Open a webchat session
- Send messages to build up context
- Compare webchat status bar values vs
/status or session_status tool output
Observed Behavior
Webchat status bar shows:
R927.2k (remaining tokens ~927k)
- Context usage:
1%
Actual engine values (from session_status):
- Context:
41k/200k (20%)
- Actual remaining: ~159k
Expected Behavior
Webchat status bar should match the engine-reported context usage.
Environment
- OpenClaw version: 2026.3.13
- Model: zhipu/glm-5-turbo
- Channel: webchat
- OS: macOS Darwin 23.6.0 (arm64)
Additional Notes
The "R" (remaining) value appears to be calculated from a different/incorrect context window size than what is configured (200k). The 1% figure also does not match the 20% reported by the engine.
Description
The webchat UI status bar displays incorrect context usage metrics, inconsistent with the actual engine values.
Reproduction
/statusorsession_statustool outputObserved Behavior
Webchat status bar shows:
R927.2k(remaining tokens ~927k)1%Actual engine values (from
session_status):41k/200k (20%)Expected Behavior
Webchat status bar should match the engine-reported context usage.
Environment
Additional Notes
The "R" (remaining) value appears to be calculated from a different/incorrect context window size than what is configured (200k). The 1% figure also does not match the 20% reported by the engine.