# NousResearch/hermes-agent · WhatsApp/gateway YAML config polluting global env

## Open now

- Nothing open on GitHub.

These items address a bug where applying YAML configuration writes provider-specific variables (e.g. WHATSAPP_*, TERMINAL_*) into the global os.environ, causing multiplexed profiles to interfere with each other.

## TL;DR

- 3 member(s): 0 open issue(s), 1 closed issue(s), 0 open PR(s), 1 merged PR(s), 1 PR(s) closed without merging.
- A fix was merged to main in PR #108440. Verify it addresses your case.
- **Recommended:** read PR #108440 (and any competing PRs below) before filing. Confirm the merged change covers your symptom.

## Maintainer resolution verdict

- Internal-tracker verdict over this cluster's issue members: `resolved` · deciding PR(s): `pr-108440`. This is distinct from the fix status above. Weigh it yourself.

## How this cluster was grouped

- Link evidence (`STRUCTURAL_SPANNING`): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
- Pairwise link density `0.67`: the share of member pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36. `1.00` means every pair is linked.

## Closed / duplicate issues

- #80099: fix(whatsapp): _apply_yaml_config writes WHATSAPP_* to global os.environ

## Prior & competing PRs

- **#108440: fix(gateway): multiplexed profiles no longer poison each other via config.yaml→env bridges, TERMINAL_* latch and path memos (#80099, #107422, #107327; salvage #100604 #100435 #100448 #91198 #107442 #107335)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `contributors/emails/[redacted:email]`, `gateway/config_loader.py`, `gateway/platforms/_shared.py`, `gateway/platforms/signal.py`, `gateway/platforms/yuanbao.py`, `gateway/run.py`, `gateway/run_inbound.py`, `gateway/run_notifications.py`, `plugins/platforms/dingtalk/adapter.py`, `plugins/platforms/discord/adapter.py`, `plugins/platforms/feishu/adapter.py`, `plugins/platforms/matrix/adapter.py`, `plugins/platforms/slack/adapter.py`, `plugins/platforms/telegram/adapter.py`, `plugins/platforms/whatsapp/adapter.py`, `tests/gateway/test_discord_allow_bots_yaml_config.py`, `tests/gateway/test_multiplex_process_global_sinks.py`, `tests/gateway/test_multiplex_yaml_env_bridge_isolation.py`, `tests/tools/test_env_passthrough.py`, `tests/tools/test_file_write_safety.py` (+9 more)
- **#81010: fix(whatsapp): stop YAML config bridging from polluting global env**. closed without merge
  - maintainer direction: category `stale_abandoned`; implication `active`

## Fix status

- Merged to main in PR #108440 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-09-11`.
- Subsystem: `gateway`
