openclaw - 💡(How to fix) Fix Telegram: add config toggle to disable supplemental conversation context window in DMs [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#84279Fetched 2026-05-20 03:41:53
View on GitHub
Comments
1
Participants
2
Timeline
8
Reactions
1
Author
Timeline (top)
labeled ×7commented ×1

The conversation context window feature introduced in 5.12 ("Telegram: render cached reply targets and nearby group chatter as one selected conversation context window") is useful for group chats but causes unnecessary token burn in direct messages.

In DMs, the full conversation history is already maintained in the session transcript. The supplemental context window adds the last 10 messages as a redundant Conversation context (untrusted, chronological, selected for current message) block on top of every user message, effectively doubling the context for recent messages.

Root Cause

The conversation context window feature introduced in 5.12 ("Telegram: render cached reply targets and nearby group chatter as one selected conversation context window") is useful for group chats but causes unnecessary token burn in direct messages.

In DMs, the full conversation history is already maintained in the session transcript. The supplemental context window adds the last 10 messages as a redundant Conversation context (untrusted, chronological, selected for current message) block on top of every user message, effectively doubling the context for recent messages.

Fix Action

Workaround

Use OpenClaw 2026.5.7 which does not have the conversation context window feature.

Code Example

{
  channels: {
    telegram: {
      dmConversationContext: false,  // or dmContextWindow: 0
    }
  }
}
RAW_BUFFERClick to expand / collapse

Summary

The conversation context window feature introduced in 5.12 ("Telegram: render cached reply targets and nearby group chatter as one selected conversation context window") is useful for group chats but causes unnecessary token burn in direct messages.

In DMs, the full conversation history is already maintained in the session transcript. The supplemental context window adds the last 10 messages as a redundant Conversation context (untrusted, chronological, selected for current message) block on top of every user message, effectively doubling the context for recent messages.

Current Behavior

  • recentLimit: 10 is hardcoded in bot-DVHbpZjZ.js line 2378
  • Context is injected into every DM message regardless of config
  • dmHistoryLimit: 0 does NOT disable this (controls session history replay, not supplemental context)
  • contextVisibility only filters in group chats (isGroup check in shouldIncludeGroupSupplementalContext)

Expected Behavior

A config option to disable the supplemental conversation context window for DMs, e.g.:

{
  channels: {
    telegram: {
      dmConversationContext: false,  // or dmContextWindow: 0
    }
  }
}

Or respect dmHistoryLimit: 0 to also disable the supplemental context.

Environment

  • OpenClaw 2026.5.12
  • Telegram channel, direct messages
  • Rolled back to 5.7 (last version without this feature)

Workaround

Use OpenClaw 2026.5.7 which does not have the conversation context window feature.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix Telegram: add config toggle to disable supplemental conversation context window in DMs [1 comments, 2 participants]