openclaw - 💡(How to fix) Fix [Bug]: announce bug [2 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#48966Fetched 2026-04-08 00:50:21
View on GitHub
Comments
2
Participants
2
Timeline
6
Reactions
0
Timeline (top)
commented ×2labeled ×2closed ×1locked ×1

When using sessions_send for inter-agent communication, messages are broadcast to the main agent session by default, causing memory/context pollution for the administrator agent.

Root Cause

When using sessions_send for inter-agent communication, messages are broadcast to the main agent session by default, causing memory/context pollution for the administrator agent.

Fix Action

Fix / Workaround

Current Workaround

  • Priority: Medium
  • Use Case: Multi-agent setups where agents communicate privately
  • Workaround Available: Yes (ANNOUNCE_SKIP), but doesn't fully solve the problem

Code Example

{
  "sessionKey": "agent:ludehua:main",
  "message": "Hello",
  "deliveryMode": "direct"  // or "announce" (default)
}

---

{
  "session": {
    "agentToAgent": {
      "maxPingPongTurns": 5,
      "announceMode": "target_only"  // "all" | "target_only" | "none"
    }
  }
}

---
RAW_BUFFERClick to expand / collapse

Bug type

Regression (worked before, now fails)

Summary

When using sessions_send for inter-agent communication, messages are broadcast to the main agent session by default, causing memory/context pollution for the administrator agent.

Steps to reproduce

Add a deliveryMode parameter to sessions_send:

{
  "sessionKey": "agent:ludehua:main",
  "message": "Hello",
  "deliveryMode": "direct"  // or "announce" (default)
}

Alternative: Add a configuration option:

{
  "session": {
    "agentToAgent": {
      "maxPingPongTurns": 5,
      "announceMode": "target_only"  // "all" | "target_only" | "none"
    }
  }
}

Expected behavior

  • Ability to specify a deliveryMode parameter (e.g., "direct" vs "announce")
  • When deliveryMode: "direct", messages should only be sent to the target session without broadcasting

Current Workaround

Agents can reply ANNOUNCE_SKIP during the announce step to stay silent, but this doesn't prevent the message from being sent to the main agent in the first place.

Actual behavior

  • sessions_send sends messages to the target session
  • An "announce step" runs after the primary run completes
  • The announce is broadcast to related sessions (including main agent)
  • This causes the main agent's context to be polluted with inter-agent messages

OpenClaw version

2026.3.08

Operating system

ubuntu24.04

Install method

No response

Model

glm-5

Provider / routing chain

zai

Config file / key location

No response

Additional provider/model setup details

No response

Logs, screenshots, and evidence

Impact and severity

  • Priority: Medium
  • Use Case: Multi-agent setups where agents communicate privately
  • Workaround Available: Yes (ANNOUNCE_SKIP), but doesn't fully solve the problem

Additional information

No response

extent analysis

Fix Plan

To address the issue of messages being broadcast to the main agent session by default, we need to implement a deliveryMode parameter in the sessions_send function. This parameter will allow specifying whether the message should be sent directly to the target session or announced to all related sessions.

Step-by-Step Solution:

  1. Modify the sessions_send function to accept a deliveryMode parameter.

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

  • Ability to specify a deliveryMode parameter (e.g., "direct" vs "announce")
  • When deliveryMode: "direct", messages should only be sent to the target session without broadcasting

Still need to ship something?

×6

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

Back to top recommendations

TRENDING