Repository navigation
fix(whatsapp): preserve source direction for automatic reactions - #117697
Conversation
|
Codex review: passed. Reviewed August 2, 2026, 12:53 AM ET / 04:53 UTC. ClawSweeper reviewWhat this changesThe PR makes WhatsApp automatic acknowledgement and status reactions address the source message with its normalized Merge readinessKeep this PR open for landing. Current Priority: P2 Review scores
Verification
How this fits togetherThe WhatsApp plugin normalizes each inbound message, then a shared eligibility step prepares the reaction target used by acknowledgement and status controllers. Those controllers send the target key through the active WhatsApp Web listener, which encodes the direction into the reaction key. flowchart LR
A[Inbound WhatsApp message] --> B[Message normalization]
B --> C[Automatic reaction eligibility]
C --> D[Acknowledgement controller]
C --> E[Status reaction controller]
D --> F[WhatsApp reaction sender]
E --> F
F --> G[WhatsApp Web reaction key]
Before merge
Agent review detailsSecurityNone. PR surfaceSource 0, Tests +103. Total +103 across 3 files. View PR surface stats
Review metricsNone. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land the shared eligibility repair so every automatic reaction uses the normalized inbound direction while preserving the existing false-direction behavior for ordinary inbound messages. Do we have a high-confidence way to reproduce the issue? Yes, from source: an inbound message normalized with Is this the best way to solve the issue? Yes. Repairing the single shared eligibility result is the best fix because it serves acknowledgement send/removal and status set/clear together, instead of adding separate downstream exceptions. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 0d508879d14d. LabelsLabel 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
History |
|
🦞🧹
This is fix-only; I will not merge this PR. Re-review progress:
|
…nclaw#117697) Co-authored-by: clawsweeper <274271284+clawsweeper[bot]@users.noreply.github.com>
Summary
Fixes #117672.
Automatic WhatsApp reactions now preserve the normalized inbound message direction when constructing the target key. This makes acknowledgement and status reactions address self-authored messages correctly when the bot is linked to the operator's own account.
Scope
platform.fromMe: true.platform.fromMe: falsecontrol path.Validation
pnpm check:changedandgit diff --checkbefore handoff.Credit
Thanks @lpulcheri for the report and root-cause analysis in #117672.