openclaw - 💡(How to fix) Fix Proactive messages not visible in session context, causing conversation desynchronization

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…

When an agent sends a proactive message (e.g., heartbeat updates, scheduled reports, reminders) via message(action=send), the message appears in the target channel (e.g., Telegram) but is not injected into the agent's session context. This leads to a desynchronized conversation where the user replies to a message the agent doesn't "remember" sending.

Root Cause

When an agent sends a proactive message (e.g., heartbeat updates, scheduled reports, reminders) via message(action=send), the message appears in the target channel (e.g., Telegram) but is not injected into the agent's session context. This leads to a desynchronized conversation where the user replies to a message the agent doesn't "remember" sending.

Fix Action

Fix / Workaround

The workaround is documenting proactive messages in memory/ files, but this is brittle and doesn't solve the core architectural issue.

RAW_BUFFERClick to expand / collapse

Problem: Proactive agent messages are invisible in session context, causing desynchronization

Summary

When an agent sends a proactive message (e.g., heartbeat updates, scheduled reports, reminders) via message(action=send), the message appears in the target channel (e.g., Telegram) but is not injected into the agent's session context. This leads to a desynchronized conversation where the user replies to a message the agent doesn't "remember" sending.

Real-world impact

Example scenario:

  1. Agent sends a KI model check report to Telegram via scheduled job
  2. User replies in Telegram: "Regarding your KI model check..."
  3. Agent receives the reply but has no context of the original report
  4. Agent is confused about what the user is referring to

This breaks the conversational flow and makes proactive messaging unreliable.

Current behavior

ActionChannel deliverySession contextResult
User sends message✅ Delivered✅ Stored in session✅ Context intact
Agent replies normally✅ Delivered✅ Stored in session✅ Context intact
Agent proactive send (message)✅ Delivered to channelNOT in sessionDesynchronized

Expected behavior

Proactive messages should appear in the session context just like any other message, so the agent can reference them when the user replies.

Possible solutions

Option A: Session-aware proactive sends

Allow proactive messages to be sent "through" a specific session, so they appear in both the channel and the session history.

Option B: Automatic session injection

When a proactive message is sent, automatically inject it into all active sessions for that user/channel combination.

Option C: Global context buffer

Maintain a shared context buffer per user that includes ALL messages regardless of origin, which sessions can reference.

Environment

  • OpenClaw version: 2026.x.x
  • Channels affected: All (Telegram, Discord, etc.)
  • Use case: Heartbeat checks, scheduled reports, reminders

Additional context

This is particularly problematic for:

  • Heartbeat agents sending periodic updates
  • Cron jobs delivering scheduled reports
  • Reminder systems where the user replies to a reminder

The workaround is documenting proactive messages in memory/ files, but this is brittle and doesn't solve the core architectural issue.

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…

FAQ

Expected behavior

Proactive messages should appear in the session context just like any other message, so the agent can reference them when the user replies.

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 Proactive messages not visible in session context, causing conversation desynchronization