Bug Description
When refreshing the Control UI page, a context warning notice appears that blocks the entire screen, and the displayed context values are incorrect.
Steps to Reproduce
- Use Control UI for an extended conversation
- Refresh the page (F5 or Ctrl+R)
- Observe the warning notice
Actual Behavior
A warning notice appears with:
- Full screen overlay that blocks all content
- Incorrect values:
550.4k / 204.8k (usage > window size, which is impossible)
HTML structure:
<div class="context-notice" role="status" style="--ctx-color:rgb(220, 38, 38);--ctx-bg:rgba(220, 38, 38, 0.16)">
<svg>...</svg>
<span>100% context used</span>
<span class="context-notice__detail">550.4k / 204.8k</span>
</div>
Expected Behavior
- Correct values: Usage should not exceed window size
- Non-blocking: Warning should not block the entire screen
- Proper styling: Should be a notification banner, not a full overlay
Environment
- OpenClaw version: 2026.3.12
- Browser: Chrome/Edge
- OS: WSL2 (Linux)
Screenshot
The warning shows:
100% context used
550.4k / 204.8k (incorrect)
Related
This might be related to the token stats refresh issue (#45034) - both involve incorrect state on page refresh.
Suggested Fix
- Fix context calculation on page load
- Ensure warning component has proper z-index and doesn't block content
- Add proper state reset on page refresh
Bug Description
When refreshing the Control UI page, a context warning notice appears that blocks the entire screen, and the displayed context values are incorrect.
Steps to Reproduce
Actual Behavior
A warning notice appears with:
550.4k / 204.8k(usage > window size, which is impossible)HTML structure:
Expected Behavior
Environment
Screenshot
The warning shows:
100% context used550.4k / 204.8k(incorrect)Related
This might be related to the token stats refresh issue (#45034) - both involve incorrect state on page refresh.
Suggested Fix