Repository navigation
fix(heartbeat): keep private-text final replies from leaking to channel in message_tool_only mode - #94485
fix(heartbeat): keep private-text final replies from leaking to channel in message_tool_only mode#94485qingminglong wants to merge 1 commit into
Conversation
…el in message_tool_only mode When visibleReplies is set to message_tool and the agent produces a text final reply without calling the heartbeat response tool, the heartbeat runner was falling through to the normal delivery path, leaking private heartbeat text to the channel. Now checks usesHeartbeatResponseTool && !heartbeatToolResponse and silently dismisses the turn, matching the user's privacy configuration. Payloads marked with deliverDespiteSourceReplySuppression (e.g. Codex runtime failure notices) still deliver normally. Fixes openclaw#94053 Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
Thanks for the context here. I swept through the related work, and this is now duplicate or superseded. Close as superseded: this PR targets the right heartbeat privacy bug, but the open canonical PR at #94088 is mergeable, proof-sufficient, and scopes the fix more safely than this branch. Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Canonical path: Close this branch and concentrate maintainer review on #94088; after that lands, close the linked bug report and remaining duplicate fix PRs. So I’m closing this here and keeping the remaining discussion on #94088. Review detailsBest possible solution: Close this branch and concentrate maintainer review on #94088; after that lands, close the linked bug report and remaining duplicate fix PRs. Do we have a high-confidence way to reproduce the issue? Yes. The linked bug report provides concrete Telegram logs, and current main shows sourceReplyDeliveryMode: message_tool_only can still fall through to durable delivery for a no-tool final-text payload. Is this the best way to solve the issue? No. A heartbeat-runner guard is the right area, but this branch is broader than the privacy contract; the canonical PR is the better solution because it scopes to explicit message_tool visibility and preserves delivery exceptions. Security review: Security review cleared: No workflow, dependency, lockfile, credential, script, package, or supply-chain surface is changed; the risk is functional privacy and message delivery. AGENTS.md: found and applied where relevant. What I checked:
Likely related people:
Codex review notes: model internal, reasoning high; reviewed against fcec95ffd7a5. |
|
ClawSweeper applied the proposed close for this PR.
|
Mantis Telegram Desktop ProofSummary: Mantis captured native Telegram Desktop before/after GIF evidence for the heartbeat reply behavior.
Motion-trimmed clips: |


Summary
visibleRepliesis set tomessage_tooland the agent produces a text-only final reply without calling the heartbeat response tool, the heartbeat runner was falling through to normal delivery — leaking private heartbeat text to the channelusesHeartbeatResponseTool && !heartbeatToolResponseand silently dismisses the turn, matching the user's privacy configurationdeliverDespiteSourceReplySuppression(e.g. Codex runtime failure notices) still deliver normally — this flag is checked viagetReplyPayloadMetadataFixes #94053
Real behavior proof
Behavior addressed: Heartbeat runner leaked text-final replies to Telegram even in
message_tool_onlymode when the model didn't callheartbeat_respondtool.Real setup tested:
Exact steps or command run after fix:
After-fix evidence:
Tests:
Standalone verification:
Tests and validation
22 tests pass across 5 heartbeat-runner test files + standalone verification script covers 5 behavioral scenarios.