Repository navigation
fix(whatsapp): batch rapid messages without reordering replies - #112001
Conversation
|
Codex review: needs maintainer review before merge. Reviewed September 18, 2026, 7:24 PM ET / 23:24 UTC (Revision 11). ClawSweeper reviewWhat this changesThe WhatsApp plugin batches rapid same-sender messages while preserving conversation order, separating group participants, and retaining each message’s durable claim until adoption. Merge readiness✅ Ready for maintainer review The earlier ordering and caller-assertion findings are resolved, with no new actionable defects found. This remains a useful fix absent from inspected main and the latest release; the overlapping open PR does not supersede its sender-ordering repair. Priority: P2 Review scores
Verification
How this fits togetherWhatsApp incoming messages enter a durable queue before the plugin batches them into agent turns. The shared ingress drain controls admission, while the debouncer preserves dispatch order and carries claim settlement into the reply lifecycle. flowchart LR
A[WhatsApp messages] --> B[Durable inbound queue]
B --> C[Conversation admission]
C --> D[Same sender batch]
D --> E[Sender change or timer]
E --> F[Ordered agent turns]
F --> G[Claim settlement and read receipts]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +13, Tests +244. Total +257 across 5 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Keep batching in the existing WhatsApp adapter and shared debouncer, preserving conversation order, sender attribution, and independent durable claim settlement. Do we have a high-confidence way to reproduce the issue? Yes, from source: configured same-chat bursts cannot share a debounce window while current main holds the ingress lane until adoption. This review did not execute a runtime reproduction. Is this the best way to solve the issue? Yes. The patch uses the existing lane-release contract and conversation ordering owner, adding sender-boundary flushing without new configuration, APIs, or storage changes. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against f85c70d38f2e. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (10 earlier review cycles; latest 8 shown)
|
ca5f979 to
57c6edf
Compare
a7c5694 to
2ae6afe
Compare
Retain per-message durable claims while admitting same-lane follow-ups. Flush batches at sender boundaries and preserve conversation admission order. Align caller regressions for combined follow-ups and deferred claim custody. Integrate the tested main snapshot to retain the reviewed lifecycle context while preserving the original contributor commit.
|
@clawsweeper re-review Updated to |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Merged via squash.
|
…rent-main-20260918 * origin/main: (1925 commits) fix(ui): preserve person picker selection and profile photos (#152194) feat(meetings): summarize meetings during live capture (#151957) refactor(watch): share delivery status text formatting (#152228) fix(skills): detach idle reviews from foreground plugin scope (#152235) fix(mcp): stop cancelled question tests leaking into later cases (#152215) fix: show pasted text as compact chat chips (#151618) refactor(config): share diagnostic container scanning (#149099) fix(whatsapp): admit debounce candidates independently (#112001) fix(release): qualify 2026.7.34 frozen SDK (#152230) fix(sessions): notify Home about new sessions by default (#152068) fix(ui): open workspace links with spaces and emoji (#152179) fix(update): reconcile completed updates after interrupted verification (#152202) fix: reduce repeated update validation for large agent fleets (#151678) docs: clarify WebChat commentary attachment compatibility (#152225) fix(worktrees): keep provisioning inspection under the Git output cap (#150532) fix(ui): unify fullscreen widget menu typography (#152223) test(gateway): synchronize unstable task registry scans (#152213) fix: restore automation creation for remote administrators (#151291) improve: defer internal agent-turn execution imports until use (#151935) fix(agents): resume private child results in channel conversations (#152207) ...
What Problem This Solves
Fixes rapid WhatsApp messages missing their debounce window and group messages arriving out of order when another sender interrupts a buffered batch.
User Impact
Follow-up messages can enter the reply lane promptly, while messages from different group participants remain ordered and are never combined under the wrong sender. Durable claims and read receipts still wait for the appropriate adoption or completion.
No configuration changes, migrations, or user action are required.
Why This Change Was Made
Allow deferred debounce candidates to release the conversation lane without settling their individual durable claims. Use the existing conversation-wide debouncer ordering and end a batch when its sender changes.
Preserves the original fix and contributor credit from @mcaxtr, with caller alignment and group-ordering regression coverage added on this PR.
Evidence
5fc207c8dfa993fc4a36dc8435beffd0f43636fc.Validation uses isolated source-level inbox and durable-queue fixtures; no live WhatsApp account or production Gateway was exercised.