Skip to content

fix(whatsapp): recognize JID targets and reject bare digits (#41407) - #41581

Closed
kyssta-exe wants to merge 1 commit into
NousResearch:mainfrom
kyssta-exe:auto-fix/issue-41407
Closed

fix(whatsapp): recognize JID targets and reject bare digits (#41407)#41581
kyssta-exe wants to merge 1 commit into
NousResearch:mainfrom
kyssta-exe:auto-fix/issue-41407

Conversation

@kyssta-exe

Copy link
Copy Markdown
Contributor

Fixes #41407. WhatsApp JID targets (group @g.us, DM @s.whatsapp.net, LID @lid) were not recognized by _parse_target_ref, causing them to silently fall back to home channel. Bare-digit targets without JID suffix were passed to the Baileys bridge which crashed on jidDecode(). Added _WHATSAPP_JID_RE pattern to match valid JID formats and reject bare digits for WhatsApp.

@alt-glitch alt-glitch added type/bug Something isn't working P2 Medium — degraded but workaround exists platform/whatsapp WhatsApp Business adapter comp/tools Tool registry, model_tools, toolsets labels Jun 8, 2026
@kyssta-exe

Copy link
Copy Markdown
Contributor Author

Stale — oldest open PR, no merge activity for weeks.

@kyssta-exe kyssta-exe closed this Jul 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/tools Tool registry, model_tools, toolsets P2 Medium — degraded but workaround exists platform/whatsapp WhatsApp Business adapter type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] send_message WhatsApp targets: group/LID JIDs silently fall back to home channel

2 participants