openclaw - 💡(How to fix) Fix [Bug]: Yuanbao group chat: model output routed to wrong session (direct queue instead of group queue) — replies never sent to group [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#75096Fetched 2026-05-01 05:38:12
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
2
Timeline (top)
labeled ×2closed ×1commented ×1

Group chat @mention triggers model generation but the reply is queued in the direct session's outbound buffer (agent:main:yuanbao:direct:...) instead of the group session's buffer (agent:main:yuanbao:group:387668713), causing the group to receive no reply while direct chat receives it.

Root Cause

Group chat @mention triggers model generation but the reply is queued in the direct session's outbound buffer (agent:main:yuanbao:direct:...) instead of the group session's buffer (agent:main:yuanbao:group:387668713), causing the group to receive no reply while direct chat receives it.

Fix Action

Fix / Workaround

Gateway log shows agent:main:yuanbao:group:387668713 merge-text session flush: bufLen=0 (group queue empty) Gateway log shows agent:main:yuanbao:direct:... merge-text push: bufLen=N (direct queue receives the output) Transport sends via [C2C] send ok (private chat) instead of [GROUP] send ok Model output confirmed generated: dispatch-reply received reply data {"kind":"block","model_output":"Gat**** 🦐"}

// Group message received correctly
[pipeline] [extract-content] received message {"isGroup":true,"from":"...","nickname":"KingSword","groupCode":"387668713","msgSeq":144,"isAtBot":true}
// Group session queue is EMPTY
[yuanbao][outbound-queue] [agent:main:yuanbao:group:387668713] merge-text session flush: bufLen=0
// Model output routed to WRONG queue (direct)
[yuanbao][outbound-queue] [agent:main:yuanbao:direct:5b6lRXcVt4D+.../] merge-text push: bufLen=37
// Sent as private message instead of group
[yuanbao][transport] [C2C] send ok {"toAccount":"...","msgId":"7b92623bd6bb47f28a5e866303e2e5f2"}
// Model DID generate output
[pipeline] [dispatch-reply] received reply data {"kind":"block","model_output":"Gat**** 🦐"}
// dispatch-reply completes for group (with empty queue)
[pipeline] [dispatch-reply] message processing complete {"isGroup":true,"groupCode":"387668713","fromAccount":"..."}

Severity: High — group chat is completely non-functional for this Yuanbao bot. Direct chat works fine. No workaround found (model switch, groupPolicy change, session reset all tried without success). Consistent repro: 100% of group @mentions fail to reply in group.

Code Example

// Group message received correctly
[pipeline] [extract-content] received message {"isGroup":true,"from":"...","nickname":"KingSword","groupCode":"387668713","msgSeq":144,"isAtBot":true}
// Group session queue is EMPTY
[yuanbao][outbound-queue] [agent:main:yuanbao:group:387668713] merge-text session flush: bufLen=0
// Model output routed to WRONG queue (direct)
[yuanbao][outbound-queue] [agent:main:yuanbao:direct:5b6lRXcVt4D+.../] merge-text push: bufLen=37
// Sent as private message instead of group
[yuanbao][transport] [C2C] send ok {"toAccount":"...","msgId":"7b92623bd6bb47f28a5e866303e2e5f2"}
// Model DID generate output
[pipeline] [dispatch-reply] received reply data {"kind":"block","model_output":"Gat**** 🦐"}
// dispatch-reply completes for group (with empty queue)
[pipeline] [dispatch-reply] message processing complete {"isGroup":true,"groupCode":"387668713","fromAccount":"..."}
RAW_BUFFERClick to expand / collapse

Bug type

Regression (worked before, now fails)

Beta release blocker

No

Summary

Group chat @mention triggers model generation but the reply is queued in the direct session's outbound buffer (agent:main:yuanbao:direct:...) instead of the group session's buffer (agent:main:yuanbao:group:387668713), causing the group to receive no reply while direct chat receives it.

Steps to reproduce

Add OpenClaw Yuanbao bot to a Yuanbao group Send any message @mentioning the bot in the group Observe: bot receives the message (gateway log shows isGroup:true, isAtBot:true) Bot never replies in group — same bot replying normally in direct/private chat

Expected behavior

Group session outbound queue receives the model output and sends via [GROUP] send to the group.

Actual behavior

Gateway log shows agent:main:yuanbao:group:387668713 merge-text session flush: bufLen=0 (group queue empty) Gateway log shows agent:main:yuanbao:direct:... merge-text push: bufLen=N (direct queue receives the output) Transport sends via [C2C] send ok (private chat) instead of [GROUP] send ok Model output confirmed generated: dispatch-reply received reply data {"kind":"block","model_output":"Gat**** 🦐"}

OpenClaw version

v2026.4.27

Operating system

macOS (Darwin)

Install method

npm global install via Homebrew (brew install openclaw)

Model

minimax-portal/MiniMax-M2.7

Provider / routing chain

OpenClaw gateway → yuanbao plugin v2.12.0 → WebSocket → MiniMax OAuth portal (coding plan)

Additional provider/model setup details

{

"channels": {

"yuanbao": {

  "appKey": "NIrb9w0ZvpKuX4Dm9tXKuIn7q4zzq2L0",

  "enabled": true,

  "groupPolicy": "open"

}

},

"bindings": [

{ "agentId": "main", "match": { "channel": "yuanbao", "peer.kind": "group" } },

{ "agentId": "main", "match": { "channel": "yuanbao", "peer.kind": "direct" } }

]

}

Both group and direct use main agent. Direct chat works fine with identical config.

Logs, screenshots, and evidence

// Group message received correctly
[pipeline] [extract-content] received message {"isGroup":true,"from":"...","nickname":"KingSword","groupCode":"387668713","msgSeq":144,"isAtBot":true}
// Group session queue is EMPTY
[yuanbao][outbound-queue] [agent:main:yuanbao:group:387668713] merge-text session flush: bufLen=0
// Model output routed to WRONG queue (direct)
[yuanbao][outbound-queue] [agent:main:yuanbao:direct:5b6lRXcVt4D+.../] merge-text push: bufLen=37
// Sent as private message instead of group
[yuanbao][transport] [C2C] send ok {"toAccount":"...","msgId":"7b92623bd6bb47f28a5e866303e2e5f2"}
// Model DID generate output
[pipeline] [dispatch-reply] received reply data {"kind":"block","model_output":"Gat**** 🦐"}
// dispatch-reply completes for group (with empty queue)
[pipeline] [dispatch-reply] message processing complete {"isGroup":true,"groupCode":"387668713","fromAccount":"..."}

Impact and severity

Severity: High — group chat is completely non-functional for this Yuanbao bot. Direct chat works fine. No workaround found (model switch, groupPolicy change, session reset all tried without success). Consistent repro: 100% of group @mentions fail to reply in group.

Additional information

No response

extent analysis

TL;DR

The issue can be fixed by ensuring the model output is routed to the correct session queue, specifically the group session's buffer, instead of the direct session's buffer.

Guidance

  • Verify the bindings configuration to ensure that the agentId "main" is correctly matched with the channel "yuanbao" and peer.kind "group" for group messages.
  • Check the groupPolicy setting in the channels configuration to ensure it is set to "open" for the Yuanbao channel.
  • Investigate the logic in the dispatch-reply pipeline to determine why the model output is being routed to the wrong queue.
  • Review the WebSocket connection and MiniMax OAuth portal setup to ensure that group messages are being handled correctly.

Example

No code snippet is provided as the issue seems to be related to configuration and routing rather than a specific code error.

Notes

The issue seems to be specific to the Yuanbao bot and group chat functionality, and the provided logs and configuration suggest a routing issue rather than a code error. Further investigation into the dispatch-reply pipeline and WebSocket connection is needed to determine the root cause.

Recommendation

Apply a workaround by modifying the bindings configuration to use a separate agentId for group messages, or investigate and fix the routing issue in the dispatch-reply pipeline. The reason is that the current configuration seems to be causing the model output to be routed to the wrong queue, and a workaround or fix is needed to ensure group chat functionality works correctly.

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

Group session outbound queue receives the model output and sends via [GROUP] send to the group.

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 [Bug]: Yuanbao group chat: model output routed to wrong session (direct queue instead of group queue) — replies never sent to group [1 comments, 2 participants]