# NousResearch/hermes-agent · SSH ControlMaster socket directory path and ownership handling

## Open now

- 1 issue, 3 PRs open on GitHub.
- #133436: \[Bug\]: SSH backend fails with "path too long for Unix domain socket" for named profiles since the scratch TMPDIR change (ssh.py does not use socket_safe_tmpdir)
- PR #127863: fix(tools): refuse shared-tmp socket dirs we do not own
- PR #133444: fix(ssh): keep the ControlMaster dir inside a short per-user root
- PR #138978: fix(ssh): budget the full ControlMaster listener path for every root

The three members concern where the SSH backend places its ControlMaster Unix socket directory: one reports a "path too long for Unix domain socket" error for named profiles and notes ssh.py does not use socket_safe_tmpdir, one proposes a short per-user root, and one proposes refusing shared-tmp socket dirs not owned by the user. Their status and outcomes are not established by the titles.

## TL;DR

- 4 member(s): 1 open issue(s), 0 closed issue(s), 3 open PR(s), 0 merged PR(s), 0 PR(s) closed without merging.
- No fix has been merged to main; one or more PRs were attempted (see below).
- **Recommended:** review the prior/competing PR(s) below. A fix was attempted but not merged; your case may extend or revive that work.

## 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_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.

## Open related issues

- #133436: \[Bug\]: SSH backend fails with "path too long for Unix domain socket" for named profiles since the scratch TMPDIR change (ssh.py does not use socket_safe_tmpdir)

## Prior & competing PRs

- **#127863: fix(tools): refuse shared-tmp socket dirs we do not own**. open
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `58d4fb1caf`, `58d4fb1caf`, `#133436`, `#133436`
  - files: `tests/tools/test_browser_headed_mode.py`, `tests/tools/test_browser_lightpanda.py`, `tests/tools/test_shared_tmp_private_dirs.py`, `tests/tools/test_ssh_environment.py`, `tools/browser_tool.py`, `tools/browser_tool_lifecycle.py`, `tools/browser_tool_session.py`, `tools/browser_use_cli.py`, `tools/environments/ssh.py`, `tools/spill_safety.py`
- **#133444: fix(ssh): keep the ControlMaster dir inside a short per-user root**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `#133436`
  - files: `tests/tools/test_ssh_control_dir_root.py`, `tests/tools/test_ssh_environment.py`, `tools/environments/ssh.py`
- **#138978: fix(ssh): budget the full ControlMaster listener path for every root**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`
  - files: `tests/tools/test_ssh_control_dir_root.py`, `tests/tools/test_ssh_environment.py`, `tools/environments/ssh.py`

## Fix status

- No merged fix on record.
- Subsystem: `agent`
