Bug type: Context pollution
Summary: When chatting via Telegram, OpenClaw attaches a (untrusted, chronological, selected for current message) conversation context block to every inbound message. This block contains recent message history that is already present in the session transcript. The result is duplicated context being sent to the model on every turn.
Impact:
- Wasted tokens — duplicate context grows with conversation length
- Degraded response quality — Agent sometimes repeats previous answers or gets confused by the overlapping context, making it appear "dumber"
- Dashboard clutter — the conversation context block is visually redundant in the session view
Steps to reproduce:
- Chat with any agent via Telegram for several turns
- Check the dashboard session view — notice the
Conversation context (untrusted metadata) block growing each turn
- Observe that this content overlaps with the actual session history
- Notice occasional repetitive or confused responses from the agent
Expected behavior: Since the session already maintains full conversation history, the Telegram conversation context should either:
- Be deduplicated against session history before being sent to the model, OR
- Not be included when a persistent session already has the same messages, OR
- Have a configurable option to disable/opt out
Environment:
- OpenClaw: 2026.5.12
- Channel: Telegram (polling mode, multiple bots)
- OS: WSL2 (Ubuntu) on Windows 11
Bug type: Context pollution
Summary: When chatting via Telegram, OpenClaw attaches a
(untrusted, chronological, selected for current message)conversation context block to every inbound message. This block contains recent message history that is already present in the session transcript. The result is duplicated context being sent to the model on every turn.Impact:
Steps to reproduce:
Conversation context (untrusted metadata)block growing each turnExpected behavior: Since the session already maintains full conversation history, the Telegram conversation context should either:
Environment: