# NousResearch/hermes-agent · Gateway HERMES_* env var scoping fixes per profile

## Open now

- Nothing open on GitHub.

Multiple fixes addressing \`HERMES_*\` environment variables being looked up from process env instead of per-profile or per-served-profile scope. Covers gateway behaviour knobs, RoomLink catalog naming, and related config resolution bugs.

## TL;DR

- 5 member(s): 0 open issue(s), 1 closed issue(s), 0 open PR(s), 2 merged PR(s), 2 PR(s) closed without merging.
- A fix was merged to main in PR #117593. Verify it addresses your case.
- **Recommended:** read PR #117593 (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-117962`. 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.40`: 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

- #116900: \[Bug\]: Session-scoped answers from process env: HERMES_DESKTOP / HERMES_PROFILE / HERMES_ROOM_LINK_URL

## Prior & competing PRs

- **#117593: fix(gateway): behaviour env knobs resolve per served profile, not process env (#116898 #116886 #116893 #116895 #116888, salvage #116957 #117166 #117339)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`; implication `superseded`
  - files: `contributors/emails/[redacted:email]`, `gateway/delivery.py`, `gateway/platforms/base.py`, `gateway/run.py`, `gateway/run_adapters.py`, `gateway/run_config_loaders.py`, `gateway/run_profile_reconcile.py`, `gateway/run_startup.py`, `gateway/run_turn.py`, `tests/gateway/test_delivery_silence_filter.py`, `tests/gateway/test_multiplex_busy_input_mode.py`, `tests/gateway/test_platform_base.py`, `tests/gateway/test_run_progress_topics.py`, `tests/gateway/test_startup_agent_budget_log.py`, `website/docs/reference/environment-variables.md`, `website/docs/user-guide/configuration.md`, `website/docs/user-guide/messaging/index.md`
- **#117962: fix(gateway): RoomLink catalog names the served profile and reads its execution policy from that profile (#116900)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`; implication `superseded`
  - files: `gateway/hosted_room_execution_policy.py`, `gateway/hosted_room_peer.py`, `tests/gateway/test_api_server_room_grants.py`, `tests/gateway/test_hosted_room_execution_policy.py`, `tests/gateway/test_hosted_room_links.py`, `tests/gateway/test_hosted_room_peer.py`, `tests/tui_gateway/test_groups_methods.py`, `tests/tui_gateway/test_hosted_room_peer_http.py`, `tests/tui_gateway/test_hosted_room_service.py`, `website/docs/user-guide/multi-profile-gateways.md`
- **#117129: fix: profile-scoped config resolution for HERMES_* gateway env vars**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `3b7eda0887`, `#117593`
- **#127438: fix: fix/116900-116898-116893-env-scope**. closed without merge
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `#72348`

## Fix status

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