Skip to content

fix(tools): recognize WhatsApp LID format in send_message target parsing - #59199

Closed
wesleysimplicio wants to merge 1 commit into
NousResearch:mainfrom
wesleysimplicio:simplicio/fix-59136-whatsapp-lid-format
Closed

fix(tools): recognize WhatsApp LID format in send_message target parsing#59199
wesleysimplicio wants to merge 1 commit into
NousResearch:mainfrom
wesleysimplicio:simplicio/fix-59136-whatsapp-lid-format

Conversation

@wesleysimplicio

Copy link
Copy Markdown
Contributor

Closes #59136

WhatsApp Web.js uses LID format (digits@lid) for certain contact IDs,
but _parse_target_ref() only recognizes E.164 phone number format.
Adds a regex and branch for WhatsApp LID IDs so send_message works
without requiring a home_channel.

Change: tools/send_message_tool.py:_parse_target_ref()

WhatsApp Web.js uses LID format (digits@lid) for certain contact IDs,
but _parse_target_ref() only recognizes E.164 phone number format.
Add a regex and branch for WhatsApp LID IDs so send_message works
without requiring a home_channel.

Closes NousResearch#59136
@alt-glitch alt-glitch added type/bug Something isn't working comp/tools Tool registry, model_tools, toolsets platform/whatsapp WhatsApp Business adapter sweeper:risk-message-delivery Sweeper risk: may drop, duplicate, misroute, or suppress messages P2 Medium — degraded but workaround exists duplicate This issue or pull request already exists labels Jul 5, 2026
@alt-glitch

Copy link
Copy Markdown
Collaborator

This was generated by AI during triage.

Duplicate of #59166 — both fix #59136 with the same WhatsApp LID (<digits>@lid) branch in _parse_target_ref(). #59166 was opened first and is the canonical version. Related to the broader WhatsApp JID cluster #41415 / #41581 (full @g.us/@s.whatsapp.net/@lid recognition).

@wesleysimplicio

Copy link
Copy Markdown
Contributor Author

Fechando como duplicada de #59166, conforme triagem. Vou concentrar o acompanhamento na PR canônica.

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 duplicate This issue or pull request already exists P2 Medium — degraded but workaround exists platform/whatsapp WhatsApp Business adapter sweeper:risk-message-delivery Sweeper risk: may drop, duplicate, misroute, or suppress messages type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

WhatsApp LID format not recognized in send_message tool

2 participants