Repository navigation
fix(whatsapp): persist inbound delivery in plugin state - #85506
Conversation
|
Codex review: needs real behavior proof before merge. Latest ClawSweeper review: 2026-05-23 11:17 UTC / May 23, 2026, 7:17 AM ET. Workflow note: Future ClawSweeper reviews update this same comment in place. How this review workflow works
Summary Reproducibility: yes. from source inspection: current main marks WhatsApp messages read before enrichment, dedupe, enqueue, and handler completion in PR rating Rank-up moves:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. Real behavior proof Risk before merge
Maintainer options:
Next step before merge Security Review findings
Review detailsBest possible solution: Land a maintainer-approved durable WhatsApp receive path that either keeps the journal private or fully updates the public SDK contract, with focused regression tests and redacted live WhatsApp proof for retry, replay, completion, and delayed read receipts. Do we have a high-confidence way to reproduce the issue? Yes from source inspection: current main marks WhatsApp messages read before enrichment, dedupe, enqueue, and handler completion in Is this the best way to solve the issue? Unclear as written: plugin-state durability is a strong fix direction, but the public SDK addition needs contract alignment or should remain WhatsApp-local, and the retention boundary needs maintainer acceptance. Label justifications:
Full review comments:
Overall correctness: patch is incorrect Security concerns:
What I checked:
Likely related people:
Codex review notes: model gpt-5.5, reasoning high; reviewed against f7c05dcc9e51. |
|
ClawSweeper PR egg 🎁 Pass real behavior proof to wake the egg and unlock a hatchable treat. Where did the egg go?
|
bb67ad5 to
1284217
Compare
* fix(whatsapp): persist inbound delivery in plugin state * fix(whatsapp): type durable inbound payload * fix(channels): close durable receive insert race * fix(whatsapp): skip owned durable pending duplicates
* fix(whatsapp): persist inbound delivery in plugin state * fix(whatsapp): type durable inbound payload * fix(channels): close durable receive insert race * fix(whatsapp): skip owned durable pending duplicates
* fix(whatsapp): persist inbound delivery in plugin state * fix(whatsapp): type durable inbound payload * fix(channels): close durable receive insert race * fix(whatsapp): skip owned durable pending duplicates
* fix(whatsapp): persist inbound delivery in plugin state * fix(whatsapp): type durable inbound payload * fix(channels): close durable receive insert race * fix(whatsapp): skip owned durable pending duplicates
Summary
createDurableInboundReceiveJournalhelper on the channel-message SDK surface backed by plugin keyed stateVerification
node scripts/run-vitest.mjs src/channels/message/durable-receive.test.ts extensions/whatsapp/src/monitor-inbox.behavior.test.tspnpm buildOPENCLAW_TESTBOX=0 pnpm check:changedautoreview --mode local --base origin/main --no-web-search: clean after fixupspnpm check:changedvia Testbox attempted first, but remote image failed before repo checks: missing/usr/local/global/v11/f89-19e513f609a/node_modules/pnpm/bin/pnpm.mjsBehavior addressed: WhatsApp inbound messages are persisted through plugin state before handler dispatch, and read receipts are sent only after successful handler completion.
Real environment tested: Local OpenClaw checkout with Node/pnpm repo tooling; Testbox remote attempted but failed before checks due image pnpm path issue.
Exact steps or command run after this patch:
node scripts/run-vitest.mjs src/channels/message/durable-receive.test.ts extensions/whatsapp/src/monitor-inbox.behavior.test.ts;pnpm build;OPENCLAW_TESTBOX=0 pnpm check:changed; local autoreview.Evidence after fix: Focused tests passed 65/65; build passed plugin SDK export checks; local changed gate passed typecheck/lint/runtime guard lanes; autoreview reported no actionable findings.
Observed result after fix: Retryable WhatsApp handler failures keep inbound messages pending without sending read receipts; completed or duplicate deliveries do not replay; persistence rejection falls back to live delivery instead of dropping the message.
What was not tested: Live WhatsApp device roundtrip; remote Testbox gate was blocked by the pnpm image issue noted above.
Refs #85257.