openclaw - 💡(How to fix) Fix [Bug]: 子代理(subagent)结果在QQ通道未正确展示 [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#77847Fetched 2026-05-06 06:20:21
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
2
Author
Timeline (top)
labeled ×2closed ×1commented ×1

描述 使用 sessions_spawn 创建子代理时,子代理完成后的结果通过 subagent_announce 以 inter-session message 形式返回。在 Web 控制台正常显示,但在 QQ Bot C2C 通道中,消息体未正确渲染,用户只能看到元数据头,实际内容被吞。

复现步骤

在 QQ Bot C2C 会话中 sessions_spawn 一个子代理

子代理完成任务,生成结果

结果通过 subagent_announce 推送到父会话

QQ 端看不到子代理的正文内容

期望行为 子代理的回复内容应作为普通消息展示给用户,不显示 inter-session 元数据头。

环境

OpenClaw v2026.4.21

QQ Bot (C2C 私聊)

DeepSeek Chat

Root Cause

描述 使用 sessions_spawn 创建子代理时,子代理完成后的结果通过 subagent_announce 以 inter-session message 形式返回。在 Web 控制台正常显示,但在 QQ Bot C2C 通道中,消息体未正确渲染,用户只能看到元数据头,实际内容被吞。

复现步骤

在 QQ Bot C2C 会话中 sessions_spawn 一个子代理

子代理完成任务,生成结果

结果通过 subagent_announce 推送到父会话

QQ 端看不到子代理的正文内容

期望行为 子代理的回复内容应作为普通消息展示给用户,不显示 inter-session 元数据头。

环境

OpenClaw v2026.4.21

QQ Bot (C2C 私聊)

DeepSeek Chat

RAW_BUFFERClick to expand / collapse

Bug type

Regression (worked before, now fails)

Beta release blocker

No

Summary

描述 使用 sessions_spawn 创建子代理时,子代理完成后的结果通过 subagent_announce 以 inter-session message 形式返回。在 Web 控制台正常显示,但在 QQ Bot C2C 通道中,消息体未正确渲染,用户只能看到元数据头,实际内容被吞。

复现步骤

在 QQ Bot C2C 会话中 sessions_spawn 一个子代理

子代理完成任务,生成结果

结果通过 subagent_announce 推送到父会话

QQ 端看不到子代理的正文内容

期望行为 子代理的回复内容应作为普通消息展示给用户,不显示 inter-session 元数据头。

环境

OpenClaw v2026.4.21

QQ Bot (C2C 私聊)

DeepSeek Chat

Steps to reproduce

在 QQ Bot C2C 会话中 sessions_spawn 一个子代理

子代理完成任务,生成结果

结果通过 subagent_announce 推送到父会话

QQ 端看不到子代理的正文内容

Expected behavior

子代理的回复内容应作为普通消息展示给用户,不显示 inter-session 元数据头。

Actual behavior

QQ 端看不到子代理的正文内容

OpenClaw version

2026.4.21

Operating system

Ubuntu

Install method

No response

Model

DeepSeek Chat

Provider / routing chain

main

Additional provider/model setup details

No response

Logs, screenshots, and evidence

Impact and severity

No response

Additional information

No response

extent analysis

TL;DR

The issue can be fixed by modifying the subagent_announce message format to exclude inter-session metadata headers when sending results to the QQ Bot C2C channel.

Guidance

  • Verify that the subagent_announce message is correctly formatted and contains the expected content.
  • Check the QQ Bot C2C channel's message rendering logic to ensure it can handle the message format sent by subagent_announce.
  • Consider adding a conditional statement to remove inter-session metadata headers when sending messages to the QQ Bot C2C channel.
  • Test the fix by sending a sample message through subagent_announce and verifying that it is rendered correctly in the QQ Bot C2C channel.

Example

No code snippet is provided as the issue does not contain sufficient technical details.

Notes

The fix may require modifications to the OpenClaw codebase or the QQ Bot C2C channel's message rendering logic. Additional information about the message format and rendering logic may be necessary to provide a more detailed solution.

Recommendation

Apply workaround: Modify the subagent_announce message format to exclude inter-session metadata headers when sending results to the QQ Bot C2C channel, as this is likely to resolve the issue without requiring a version upgrade.

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

子代理的回复内容应作为普通消息展示给用户,不显示 inter-session 元数据头。

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]: 子代理(subagent)结果在QQ通道未正确展示 [1 comments, 2 participants]