Skip to content

fix(outbound): honor NO_REPLY in message tool sends - #92160

Closed
lanzhi-lee wants to merge 1 commit into
openclaw:mainfrom
lanzhi-lee:codex/no-reply-message-tool-send
Closed

lanzhi-lee wants to merge 1 commit into
openclaw:mainfrom
lanzhi-lee:codex/no-reply-message-tool-send

Conversation

@lanzhi-lee

Copy link
Copy Markdown
Contributor

Summary

  • Honor NO_REPLY in outbound message-tool send calls so model-emitted silent-reply tokens are not delivered to users.
  • Strip trailing NO_REPLY from direct-message sends while preserving the visible text.
  • Return a suppressed success payload when NO_REPLY stripping leaves no sendable text/media, so the model does not treat intentional silence as a tool failure.

Verification

  • node scripts/run-vitest.mjs src/infra/outbound/message-action-runner.core-send.test.ts src/infra/outbound/message-action-runner.send-validation.test.ts — passed, 2 files / 35 tests

…factor suppressed send payload

(cherry picked from commit 8d4cbb113dd58780493184d458d3c94c855e6a6f)
@openclaw-barnacle openclaw-barnacle Bot added size: S triage: needs-real-behavior-proof Candidate: external PR needs after-fix proof from a real setup. labels Jun 11, 2026
@clawsweeper

clawsweeper Bot commented Jun 11, 2026 •

Copy link
Copy Markdown
Contributor

Thanks for the contribution. This PR has been inactive for a while and still is not in a landable state.

Close this draft PR as abandoned: it has had no new head commit since June 11, 2026, remains conflicted with current main, has no real after-fix behavior proof, and still carries the prior unresolved delivery-scope concern. The underlying idea can return in a fresh, rebased PR that preserves ordinary group/channel text containing NO_REPLY.

So I’m closing this as inactive for now. If you pick the work back up, push a rebased branch with green checks and reopen (or open a fresh PR) and it will be reviewed again.

Review details

Best possible solution:

Keep the shared silent-token behavior narrowly scoped to contexts where NO_REPLY is an intentional control token, add regression coverage for group/channel content, and submit a fresh rebased PR with real after-fix delivery proof.

Do we have a high-confidence way to reproduce the issue?

No high-confidence live reproduction is available in this review. The branch and its focused tests establish the direct-send code path, but neither the PR nor its comments show a real after-fix channel delivery run.

Is this the best way to solve the issue?

No. The intended direct-send suppression is plausible, but the unchanged prior finding shows the implementation needs a safer context boundary so normal group/channel text containing NO_REPLY is preserved.

Security review:

Security review cleared: The proposed code changes reply-token handling only; the supplied diff adds no dependency, workflow, secret, permission, or package-resolution change.

AGENTS.md: found and applied where relevant.

What I checked:

  • Inactive draft branch: The PR is a draft created on June 11, 2026; its sole listed head commit is 87fa5f0b9ef6a01c2cd6f29bc60a10f4d6fe5910, and the supplied timeline contains no later contributor commit activity. It remains marked stale/needs proof and is dirty against current main. (87fa5f0b9ef6)
  • Prior blocker remains at the same head: The latest completed ClawSweeper review and its earlier cycle both reviewed the same head SHA and raised “Preserve group/channel text containing NO_REPLY”; no newer head commit or resolved review evidence is present. (src/infra/outbound/message-action-runner.ts, 87fa5f0b9ef6)
  • Proof gate remains unmet: The PR body reports focused Vitest results only. It has triage: needs-real-behavior-proof and status: 📣 needs proof; no after-fix live send transcript, terminal output, recording, or redacted runtime log is provided. (87fa5f0b9ef6)
  • Current-base drift: GitHub reports the PR as dirty against a main base from June 11, 2026, while current main is 9c3503a4437f6d299d49e0cf3c033d03097495f2; a fresh branch is required before correctness can be reassessed. (9c3503a4437f)

Likely related people:

  • vincentkoc: The earlier ClawSweeper review explicitly routed this outbound-send behavior to this person; the available review context does not provide enough local history to raise confidence further. (role: likely outbound-area reviewer; confidence: low; files: src/infra/outbound/message-action-runner.ts)
  • steipete: The earlier review explicitly mentioned this person for the message-tool delivery path; no contributor activity or current-main ownership evidence is available in the supplied data. (role: likely adjacent product owner; confidence: low; files: src/infra/outbound/message-action-runner.ts)

Codex review notes: model internal, reasoning high; reviewed against 9c3503a4437f.

@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. mantis: telegram-visible-proof Mantis should capture Telegram visible proof. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. labels Jun 11, 2026
@openclaw-barnacle

Copy link
Copy Markdown

This pull request has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.

@openclaw-barnacle openclaw-barnacle Bot added stale Marked as stale due to inactivity triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. and removed stale Marked as stale due to inactivity labels Jul 21, 2026
@clawsweeper

clawsweeper Bot commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper applied the proposed close for this PR.

@clawsweeper clawsweeper Bot closed this Jul 30, 2026

This branch had an error being deployed

1 failed deployment
qa-live-shared — 87fa5f0b Deployed Jun 11, 2026 by clawsweeper[bot] via Run agentic native Telegram proof #151909
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mantis: telegram-visible-proof Mantis should capture Telegram visible proof. merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. size: S status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. triage: needs-real-behavior-proof Candidate: external PR needs after-fix proof from a real setup.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant