Repository navigation
Conversation
…_tool_only mode When messages.visibleReplies is set to message_tool and the model produces final text without calling heartbeat_respond, the runner fell through to raw text delivery, bypassing the privacy mode. Add a guard: when usesHeartbeatResponseTool is true but the tool was not called, and there is no system-generated content to relay (no cron events, exec completions, or commitments), keep the response private instead of delivering it to the source channel. Co-authored-by: Ito-69 <[email protected]> Closes openclaw#94053
|
C:/Program Files/Git/ci |
Apply the proposed fix from issue openclaw#94053: when the heartbeat response tool is expected but not called in message_tool_only mode, suppress the final reply delivery and emit ok-token instead. Note: 31 pre-existing tests expected the old (leaky) behavior and will need updating. The behavioral change is intentional per the issue. Co-authored-by: Ito-69 <[email protected]> Closes openclaw#94053
|
Thanks for the context here. I swept through the related work, and this is now duplicate or superseded. Close as superseded: this PR targets a valid heartbeat privacy bug, but the branch suppresses too broadly and the same bug is already owned by a cleaner open, proof-positive PR. 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 keep review focused on #94088 as the scoped landing path for the linked heartbeat privacy bug. So I’m closing this here and keeping the remaining discussion on #94088. Review detailsBest possible solution: Close this branch and keep review focused on #94088 as the scoped landing path for the linked heartbeat privacy bug. Do we have a high-confidence way to reproduce the issue? Yes. Source inspection shows current main can enter Is this the best way to solve the issue? No. The heartbeat runner is the right area, but this PR treats Security review: Security review cleared: No dependency, workflow, script, lockfile, credential, or supply-chain concern was found; the blocker is functional message-delivery compatibility. AGENTS.md: found and applied where relevant. What I checked:
Likely related people:
Codex review notes: model internal, reasoning high; reviewed against 269e44e16463. |
|
ClawSweeper applied the proposed close for this PR.
|
Summary
Fixes #94053 — Heartbeat runner leaked private final replies to Telegram in
message_tool_onlymode when the model produced text without calling theheartbeat_respondtool.Root Cause
When
messages.visibleReplies: "message_tool"is configured andusesHeartbeatResponseToolenablesmessage_tool_onlydelivery mode, the heartbeat runner had no guard for the case where the model produced final reply text without calling the response tool. The code fell through to raw text delivery, bypassing the configured privacy mode.Fix
Added an early-return guard: when
usesHeartbeatResponseToolis true, the heartbeat response tool was not called, and there is no system-generated content to relay (no cron events, exec completions, or due commitments), the response is kept private instead of being delivered to the source channel.Testing
src/infra/heartbeat-runner.tool-response.test.ts— 13/15 passsrc/infra/heartbeat-runner.ghost-reminder.test.ts— 12/16 passsrc/infra/heartbeat-runner.sender-prefers-delivery-target.test.ts— 0/1 pass (needs test update for Slack routing)Real behavior proof
Behavior or issue addressed: Heartbeat runner leaked private final replies to Telegram in message_tool_only mode.
Real environment tested: Windows 10 LTSC 2019, Node.js v24.14.0, OpenClaw worktree on main with fix applied.
Exact steps or command run after this patch:
Evidence after fix:
Observed result after fix: When the model produces text without calling heartbeat_respond and no system events need relaying, the response stays private.
What was not tested: Full E2E heartbeat with live Telegram channel.