Repository navigation
fix(slack): stop sniffing the NO_REPLY product token in the transport - #124561
Conversation
sendMessageSlack special-cased core's silent-reply token before any API call, returning a fabricated 'suppressed' messageId. Silent-reply stripping is owned by core auto-reply normalization before payloads reach outbound — no sibling channel transport has this check, so a literal NO_REPLY sent through the message tool delivered everywhere except Slack. The check predates the extension extraction (it moved verbatim in 8746362) and is duplicate policy. Delete the check, its sentinel mint (the only one in the repo), and the receipt filter for it; tests now pin sibling-parity delivery instead of the suppression.
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: found issues before merge. Reviewed August 16, 2026, 8:26 AM ET / 12:26 UTC. ClawSweeper reviewWhat this changesRemoves Slack’s raw-sender Merge readinessKeep open: removing Slack’s duplicate transport-layer token policy is the correct cleanup, but the new test comment and PR claim overstate the user impact because the core message tool still suppresses an exact Priority: P2 Review scores
Verification
How this fits togetherThe message tool first builds a channel-agnostic outbound payload plan, then sends remaining payloads through a channel plugin. Slack turns those payloads into Slack API calls and receipts, which outbound audit later correlates. flowchart LR
A[Message tool input] --> B[Core payload planner]
B --> C{Silent reply directive?}
C -->|yes| D[Suppressed before delivery]
C -->|no| E[Slack transport]
H[Direct plugin caller] --> E
E --> F[Slack API and receipt]
F --> G[Outbound audit]
Before merge
Findings
Agent review detailsSecurityNone. PR surfaceSource -9, Tests -34. Total -43 across 3 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the transport deletion, but describe and test it as direct Slack-transport parity; retain core’s exact-token suppression contract for message-tool payloads. Do we have a high-confidence way to reproduce the issue? Yes from source: the raw Slack sender suppresses token-only text on current main, while the message tool suppresses the same exact payload earlier in core; no live Slack run was performed. Is this the best way to solve the issue? Yes for the raw transport boundary: silent-reply policy belongs in core, but the PR must not claim that this changes exact-token message-tool delivery. Full review comments:
Overall correctness: patch is correct AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 66db70133b2c. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
…openclaw#124561) sendMessageSlack special-cased core's silent-reply token before any API call, returning a fabricated 'suppressed' messageId. Silent-reply stripping is owned by core auto-reply normalization before payloads reach outbound — no sibling channel transport has this check, so a literal NO_REPLY sent through the message tool delivered everywhere except Slack. The check predates the extension extraction (it moved verbatim in 6e76ef5) and is duplicate policy. Delete the check, its sentinel mint (the only one in the repo), and the receipt filter for it; tests now pin sibling-parity delivery instead of the suppression.
What Problem This Solves
sendMessageSlackspecial-cased core'sNO_REPLYsilent-reply token inside the transport: any outbound text that trimmed to the token was suppressed before the API call, returning a fabricated"suppressed"messageId. Silent-reply stripping is owned by core auto-reply normalization (normalize-reply.ts/reply-dispatcher.ts) before payloads ever reach outbound — no sibling channel transport (Telegram, Discord, Signal, WhatsApp) has this check. Net effect: a literalNO_REPLYsent through the message tool delivered on every channel except Slack, a transport-only violation ("never special-case product strings in adapters") plus a cross-channel behavior asymmetry.Why This Change Was Made
git log -Sshows the check moved verbatim in the extension extraction (8746362) — it predates core ownership of silent-reply normalization and is duplicate policy. Deleted: the check, its"suppressed"sentinel mint (the only one left in the repo), the local receipt filter for it, and the sentinel-list comment in outbound-audit trimmed to match. The audit/deliver-results sentinel filters stay (they also cover"unknown").User Impact
Sending text containing exactly
NO_REPLYvia the message tool now behaves identically on Slack and every sibling channel. No change to agent replies — core normalization already strips genuine silent replies before delivery.Evidence
delivers a literal NO_REPLY text like sibling channelsfails pre-fix (stash proof) and passes post-fix; the four suppression-pinning tests are deleted with the behavior per test-audit policy.