Skip to content

[follow-up] improve WebJS LID sends and failure diagnostics - #2190

Closed
shaqman wants to merge 1 commit into
devlikeapro:corefrom
shaqman:codex/our-webjs-lid-and-diagnostics
Closed

[follow-up] improve WebJS LID sends and failure diagnostics#2190
shaqman wants to merge 1 commit into
devlikeapro:corefrom
shaqman:codex/our-webjs-lid-and-diagnostics

Conversation

@shaqman

@shaqman shaqman commented Jul 28, 2026

Copy link
Copy Markdown

Closes #2187\n\nThis is our follow-up contribution, authored and implemented by Syakur Rahman. It is intentionally separate from the cherry-picked base in companion PR #2189 for clear attribution.\n\nSummary:\n- Correct WebJS LID presence bridge selection and direct-contact sender behavior.\n- Wait for WhatsApp send acceptance before returning from send requests.\n- Preserve explicit WebJS message_ack values.\n- Expose bounded ackReason details for ACK_ERROR events.\n- Add structured failure logging without message content.\n- Add focused unit coverage.\n\nDependency order:\n- The separate whatsapp-web.js contribution is upstream PR https://github.com/devlikeapro/whatsapp-web.js/pull/2.\n- This WAHA branch currently pins shaqman/whatsapp-web.js#codex/pn-sender-for-lid-cold-contacts until that dependency change is accepted.\n- This follow-up also builds on WAHA cherry-pick PR #2189 for the initial WEBJS presence conversion.\n\nVerification: targeted WebJS tests passed; lint passed; build passed with polling due to the host inotify watcher limit.

@devlikepro

devlikepro commented Jul 29, 2026

Copy link
Copy Markdown
Contributor
  1. messages.ack sends you all the data (_data); you can use this for diagnostics.

  2. There are too many changes for one pull request; break them into smaller parts for easier review.

patron:PRO

@devlikepro devlikepro closed this Jul 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Expose actionable WebJS send failure details for ACK_ERROR

2 participants