Skip to content

fix(gateway): use get_hermes_dir for WhatsApp LID session path (#36664) - #38712

Closed
ashishpatel26 wants to merge 1 commit into
NousResearch:mainfrom
ashishpatel26:fix/whatsapp-lid-session-path-36664
Closed

fix(gateway): use get_hermes_dir for WhatsApp LID session path (#36664)#38712
ashishpatel26 wants to merge 1 commit into
NousResearch:mainfrom
ashishpatel26:fix/whatsapp-lid-session-path-36664

Conversation

@ashishpatel26

Copy link
Copy Markdown
Contributor

Closes #36664. expand_whatsapp_aliases() read from hardcoded legacy path; adapter writes to modern consolidated path via get_hermes_dir(). On fresh installs the paths differ so LID messages silently dropped. Fix: use get_hermes_dir() in resolver.

expand_whatsapp_aliases() read alias mappings from the hardcoded legacy
path get_hermes_home()/whatsapp/session. The adapter writes to the modern
consolidated path via get_hermes_dir('platforms/whatsapp/session',
'whatsapp/session'). On fresh installs the paths differ, so the resolver
found zero mappings and silently dropped inbound LID messages.

Fix: use get_hermes_dir() in the resolver so both reader and writer
always agree on the session directory.

Closes NousResearch#36664
@alt-glitch alt-glitch added type/bug Something isn't working platform/whatsapp WhatsApp Business adapter comp/gateway Gateway runner, session dispatch, delivery P1 High — major feature broken, no workaround labels Jun 4, 2026
@teknium1 teknium1 added sweeper:risk-message-delivery Sweeper risk: may drop, duplicate, misroute, or suppress messages sweeper:risk-compatibility Sweeper risk: may break existing users, config, migrations, defaults, or upgrades sweeper:blast-moderate Sweeper blast radius: moderate — a subsystem or single platform labels Jun 21, 2026
@teknium1

Copy link
Copy Markdown
Contributor

Closing as a duplicate of #36664. The same one-line fix was merged via PR #54083, salvaged from @fesalfayed's #36665 (submitted first, June 1). Thanks for catching this independently — credited here for the duplicate fix.

@teknium1 teknium1 closed this Jun 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/gateway Gateway runner, session dispatch, delivery P1 High — major feature broken, no workaround platform/whatsapp WhatsApp Business adapter sweeper:blast-moderate Sweeper blast radius: moderate — a subsystem or single platform sweeper:risk-compatibility Sweeper risk: may break existing users, config, migrations, defaults, or upgrades 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.

[Bug]: WhatsApp LID sender silently dropped — alias resolver reads wrong session dir on modern platforms/ layout

3 participants