# NousResearch/hermes-agent · Venv PATH lost in terminal login-shell snapshots on Debian

## Open now

- 1 issue, 2 PRs open on GitHub.
- #66642: \[Bug\]: Terminal tool loses the venv from PATH — the login-shell session snapshot resets it
- PR #64849: fix(docker): restore the venv on PATH for login shells on Debian
- PR #130801: fix(terminal): retry unresolved Hermes launcher discovery

Most members concern the terminal tool's login-shell session snapshot dropping the virtualenv from PATH, especially on Debian-based images where /etc/profile resets PATH, with several proposed fixes and bug reports. One member, about retrying Hermes launcher discovery, may be related but is less clearly the same issue.

## TL;DR

- 8 member(s): 1 open issue(s), 1 closed issue(s), 2 open PR(s), 1 merged PR(s), 3 PR(s) closed without merging.
- A fix was merged to main in PR #146080. Verify it addresses your case.
- **Recommended:** read PR #146080 (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: `unresolved`. This is distinct from the fix status above. Weigh it yourself.

## How this cluster was grouped

- Link evidence (`STRUCTURAL_PARTIAL`): some members are connected by structural evidence (shared changed files, or a closing/superseded reference); the rest are joined by an automated relevance judgement over their text.
- Members outside that structural core may belong to a different underlying problem.
- Pairwise link density `0.23`: 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.

## Open related issues

- #66642: \[Bug\]: Terminal tool loses the venv from PATH — the login-shell session snapshot resets it

## Closed / duplicate issues

- #56634: \[Bug\]: terminal tool's bash -l session snapshot loses venv PATH on Debian-based images (/etc/profile resets it before /etc/profile.d/)

## Prior & competing PRs

- **#146080: fix(terminal): keep Hermes' PATH when a login profile resets it (salvage #56642)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `Dockerfile`, `docker/profile-hermes-path.sh`, `tests/docker/test_login_shell_path.py`, `tests/tools/test_login_shell_path_preservation.py`, `tools/environments/local.py`, `tools/process_registry.py`, `tools/terminal_tool_background.py`
- **#56642: fix(terminal): preserve venv PATH in login-shell snapshot on Debian**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `0e8d470848`, `#146080`
- **#64849: fix(docker): restore the venv on PATH for login shells on Debian**. open
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `846b14ab0`, `745c5e10a`, `#71296`, `#72197`
  - files: `Dockerfile`, `docker/profile.d/99-hermes-venv-path.sh`, `tests/docker/test_login_shell_venv_path.py`, `tests/tools/test_base_environment.py`, `tests/tools/test_daytona_environment.py`, `tests/tools/test_docker_probe_env.py`, `tests/tools/test_login_path_restore.py`, `tests/tools/test_login_shell_path_dropin.py`, `tools/environments/base.py`, `tools/environments/docker.py`, `tools/environments/local.py`
- **#66902: fix(tools): preserve active venv on PATH across login-shell snapshots (#66642)**. closed without merge
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `#66642`
- **#87738: fix(terminal): restore venv PATH before the login-shell snapshot dump**. closed without merge
  - maintainer direction: category `stale_abandoned`; implication `active`
- **#130801: fix(terminal): retry unresolved Hermes launcher discovery**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `26f5c6184cd62ff6aa0fc2e70e5314bea85a96aa`
  - files: `tests/tools/test_hermes_bin_retry.py`, `tools/environments/local.py`

## Fix status

- Merged to main in PR #146080 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-10-29`.
- Subsystem: `environments`
- Kind: `bug` (from the open issues' GitHub type labels).
