# NousResearch/hermes-agent · Terminal env bridge isolation in multiplexed profiles

## Open now

- Nothing open on GitHub.

These items address a shared bug where terminal environment bridging (env variables, cwd, backend, docker config) leaks or bleeds across multiplexed profiles instead of being scoped per-profile. The fixes aim to ensure each multiplexed profile gets its own isolated terminal environment state.

## TL;DR

- 4 member(s): 0 open issue(s), 1 closed issue(s), 0 open PR(s), 2 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-101242`. 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.50`: 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

- #94200: _ensure_terminal_env_bridged one-shot leaks profile-specific TERMINAL_ENV across multiplexed profiles

## Prior & competing PRs

- **#101242: fix(gateway): routed multiplex profiles get their own terminal cwd/backend/docker config; container boot honors config multiplex_profiles (#68559 #85413, salvage #99225 #85437)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `agent/agent_init.py`, `agent/prompt_builder.py`, `agent/runtime_cwd.py`, `agent/skill_utils.py`, `contributors/emails/[redacted:email]`, `cron/scheduler.py`, `gateway/platforms/base.py`, `gateway/run.py`, `gateway/runtime_footer.py`, `gateway/slash_commands.py`, `hermes_cli/container_boot.py`, `tests/hermes_cli/test_container_boot.py`, `tests/tools/test_terminal_scope_multiplex.py`, `tools/browser_tool.py`, `tools/code_execution_tool.py`, `tools/env_probe.py`, `tools/file_tools.py`, `tools/terminal_scope.py`, `tools/terminal_tool.py`, `tui_gateway/server.py` (+1 more)
- **#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)
- **#94206: fix(tools): scope the terminal env bridge one-shot to the Hermes home**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `a5c801c8dcb`, `#108440`, `#107442`

## Fix status

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