I’m seeing a dashboard webchat issue on OpenClaw 2026.4.14 with codex/gpt-5.4 where /new does create a new session, but the fresh session is still born with an extremely large prompt footprint, so messages after that often just queue and the session becomes barely usable.
What I’ve confirmed locally:
- fresh /new session was created successfully
- that brand-new session still started at roughly 130,373 input tokens before any real conversation
- same session also showed cacheRead: 56,704, totalTokens: 187,077, contextTokens: 200,000
- dashboard was showing about 184.2k / 200k
- transport/websocket itself looked healthy after restart, so this does not seem like a simple connection failure
I also disabled:
- agents.defaults.startupContext
- plugins.entries.memory-wiki.config.context.includeCompiledDigestPrompt
That helped remove some obvious extra context, but did not solve the core problem.
I additionally found what looks like a context-meter accounting bug:
- some OpenClaw display paths appear to use totalTokens / contextTokens
- that likely counts cacheRead toward the displayed context usage
- I raised a GitHub bug for that already
But even ignoring the display bug, the real blocker is that a fresh session is still starting around 130k input tokens, which is far too high.
My current suspicion is that the main culprit is the baseline OpenClaw bootstrap/system/tooling envelope for Codex webchat sessions:
- workspace bootstrap file injection
- skills prompt injection
- tool schema injection
- possibly extra Codex app-server/runtime instructions
Question:
- is this expected for Codex webchat sessions right now?
- is there a recommended config to drastically reduce first-turn bootstrap weight?
- specifically, should I be tuning agents.defaults.contextInjection, bootstrapMaxChars, and bootstrapTotalMaxChars, or is there another hidden source I should be looking at?