Skip to content

[Bug]: banner uses cumulative Tokens in instead of Context" #46582

@hartmark

Description

@hartmark

Bug type

Regression (worked before, now fails)

Summary

I've started to get this banner occasionally. Seems like a UI bug as the context is not actually full

Steps to reproduce

Message in web chat and a big banner appears

Expected behavior

No banner

Actual behavior

Image

/status
🦞 OpenClaw 2026.3.13
🧠 Model: stepfun/step-3.5-flash:free · 🔑 unknown
↪️ Fallback: openrouter/stepfun/step-3.5-flash:free · 🔑 api-key (openrouter:default) (model not found)
🧮 Tokens: 452k in / 2.5k out
📚 Context: 76k/256k (30%) · 🧹 Compactions: 0
🧵 Session: agent:main:main • updated just now
⚙️ Runtime: direct · Think: off · elevated
🪢 Queue: collect (depth 0)

/context list
🧠 Context breakdown
Workspace: /home/node/.openclaw/workspace
Bootstrap max/file: 20,000 chars
Bootstrap max/total: 150,000 chars
Sandbox: mode=off sandboxed=false
System prompt (run): 28,927 chars (~7,232 tok) (Project Context 16,666 chars (~4,167 tok))

Injected workspace files:

  • AGENTS.md: OK | raw 10,553 chars (~2,639 tok) | injected 10,553 chars (~2,639 tok)
  • SOUL.md: OK | raw 1,251 chars (~313 tok) | injected 1,251 chars (~313 tok)
  • TOOLS.md: OK | raw 163 chars (~41 tok) | injected 163 chars (~41 tok)
  • IDENTITY.md: OK | raw 1,451 chars (~363 tok) | injected 1,451 chars (~363 tok)
  • USER.md: OK | raw 439 chars (~110 tok) | injected 439 chars (~110 tok)
  • HEARTBEAT.md: OK | raw 1,355 chars (~339 tok) | injected 1,355 chars (~339 tok)
  • BOOTSTRAP.md: MISSING | raw 0 | injected 0
  • MEMORY.md: OK | raw 802 chars (~201 tok) | injected 802 chars (~201 tok)

Skills list (system prompt text): 3,117 chars (~780 tok) (7 skills)
Skills: healthcheck, skill-creator, weather, cot, file-manager, image-gen, sx
Tool list (system prompt text): 1,849 chars (~463 tok)
Tool schemas (JSON): 9,003 chars (~2,251 tok) (counts toward context; not shown as text)
Tools: read, edit, write, exec, process, browser, canvas, tts, agents_list, sessions_list, sessions_history, sessions_send, sessions_yield, subagents, session_status, web_fetch, memory_search, memory_get, inline_image

Session tokens (cached): 76,116 total / ctx=200000

Inline shortcut: a command token inside normal text (e.g. “hey /status”) that runs immediately (allowlisted senders only) and is stripped before the model sees the remaining message.

OpenClaw version

2026.3.13

Operating system

arch Linux

Install method

docker container

Model

stepfun/step-3.5-flash:free

Provider / routing chain

OpenClaw

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 workingregressionBehavior that previously worked and now fails

    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