Repository navigation
Description
Bug type
Regression (worked before, now fails)
Beta release blocker
No
Summary
When OpenClaw receives a heartbeat poll in a QQ channel session, agent's direct text reply does NOT reach the QQ user. The user receives no heartbeat reminders, todo alerts, or email notifications at all.
Use the messagetool explicitly for all heartbeat notifications:
message(action=send, channel="qqbot", target="c2c:USER_ID", message="content")
Steps to reproduce
Configure OpenClaw with qqbot channel (direct message mode)
Set up a heartbeat with HEARTBEAT.mdthat includes proactive checks (email, todos, etc.)
Wait for a heartbeat poll to arrive in the QQ session
In the heartbeat poll handler, reply with text (e.g., todo reminders or email alerts) — do NOT use the messagetool
Check the QQ client: no message is delivered to the user
In contrast, using message(action=send, channel="qqbot", target="c2c:<user_id>", message="content")successfully delivers
Expected behavior
The direct reply text from the agent in a heartbeat poll session should be delivered to the QQ user, just like a normal QQ private message reply.
Actual behavior
Agent sees the heartbeat poll and responds with text (e.g., todo reminders)
QQ user receives nothing
Only explicit messagetool call with channel="qqbot"and target="c2c:<user_id>"successfully delivers messages
This makes heartbeat reminders completely invisible to the user
OpenClaw version
2026.6.1
Operating system
Windows_11
Install method
No response
Model
qianfan/deepseek-v4-flash
Provider / routing chain
openclaw qianfan/deepseek-v4-flash
Additional provider/model setup details
No response
Logs, screenshots, and evidence
Impact and severity
No response
Additional information
Either:
Make heartbeat poll session replies route to the QQ user automatically, OR
Update documentation to clearly state that messagetool must be used (no silent fallback)
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
clawsweeper commentedon Jun 5, 2026
Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed June 20, 2026, 12:37 PM ET / 16:37 UTC.
Summary
Keep open: current main and the latest release still keep heartbeat
lastToinheritance behind the same-channel or explicit allow-mismatch guard, and the issue is already paired with an open closing PR that needs maintainer review rather than issue cleanup.Reproducibility: no. for the full live QQ user-visible issue: there are no logs, screenshots, API responses, or live QQ proof. The narrower source path is reproducible from current main when heartbeat delivery selects a channel different from
lastChannelandlastTois therefore not inherited without the explicit mismatch flag.Ways to help us reproduce this
Next step
A new automated fix PR should not be queued while the open linked PR owns the implementation attempt and needs maintainer policy/proof review.
Review details
Best possible solution:
Keep this issue open as the canonical report while maintainers either land a narrow, proof-backed fix or close the linked PR and choose a safer route that preserves the cross-channel guard unless explicitly approved.
Do we have a high-confidence way to reproduce the issue?
No for the full live QQ user-visible issue: there are no logs, screenshots, API responses, or live QQ proof. The narrower source path is reproducible from current main when heartbeat delivery selects a channel different from
lastChannelandlastTois therefore not inherited without the explicit mismatch flag.Is this the best way to solve the issue?
Unclear. A fix belongs in the heartbeat/outbound target resolution path only if maintainers confirm the intended policy for cross-channel heartbeat inheritance; otherwise the safer solution is to preserve the guard and localize the QQ routing or documentation change with live proof.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
Outbound not configured for channel: qqbotfailure path.Codex review notes: model internal, reasoning high; reviewed against 2166652eb3e8.
Label changes
Label changes:
clawsweeper:linked-pr-open: Current issue advisory state no longer selects this label.Label justifications:
P2: This is a channel-specific heartbeat notification delivery regression with limited blast radius and no evidence of data loss, crash loop, or unusable core runtime.impact:message-loss: The report says heartbeat reminders, todo alerts, and email notifications are produced by the agent but not delivered to the QQ user.Evidence reviewed
Acceptance criteria:
What I checked:
resolveSessionDeliveryTargetonly inheritslastTowhen the resolved channel matcheslastChannelorallowMismatchedLastTois set; heartbeat mode alone does not bypass that guard. (src/infra/outbound/targets-session.ts:169, 2166652eb3e8)targetandtothroughresolveSessionDeliveryTargetwithmode: "heartbeat"; if the resolver returns noto, heartbeat delivery becomesreason: "no-target". (src/infra/outbound/targets.ts:158, 2166652eb3e8)resolveHeartbeatDeliveryTargetWithSessionRoute, so sessionlastChannel/lastTorouting is on the reported path. (src/infra/heartbeat-runner.ts:1487, 2166652eb3e8)target: "last"delivers to the last external channel, direct/DM delivery defaults to allow, andtarget/tocontrol delivery independently from session context. Public docs:docs/gateway/heartbeat.md. (docs/gateway/heartbeat.md:249, 2166652eb3e8)c2c:<openid>and bare openids as C2C targets, and text sends without a replymsgIdusesendProactiveMessage, matching the reporter's explicit message-tool workaround path. (extensions/qqbot/src/engine/messaging/sender.ts:391, 2166652eb3e8)targets-session.ts, so this is not fixed by v2026.6.8. (src/infra/outbound/targets-session.ts:169, 844f405ac1be)Likely related people:
src/infra/outbound/agent-delivery.ts,src/infra/outbound/targets.ts,src/infra/outbound/targets.test.ts)src/infra/outbound/targets.ts,src/infra/outbound/targets.test.ts,docs/gateway/heartbeat.md)src/infra/outbound/targets.ts,src/infra/outbound/targets.test.ts)extensions/qqbot/src/channel.ts,extensions/qqbot/src/engine/messaging/sender.ts)extensions/qqbot/src/channel.ts)How this review workflow works
@clawsweeper re-reviewcomments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.@clawsweeper re-reviewor@clawsweeper re-runon an open PR or issue to request a fresh review only.@clawsweeper reviewto request a fresh review only.@clawsweeper autofix,@clawsweeper automerge,@clawsweeper fix ci, or@clawsweeper address review.@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.openclaw-barnacle commentedon Jul 6, 2026
This issue has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.
openclaw-barnacle commentedon Jul 14, 2026
Closing due to inactivity.
If this is still an issue, please retry on the latest OpenClaw release and share updated details.
If you are absolutely sure it still happens on the latest release, open a new issue with fresh steps to reproduce.