# NousResearch/hermes-agent · tirith install tempdir error handling and retry fix

## Open now

- Nothing open on GitHub.

These members address a bug where tirith installation retries unboundedly and leaks temporary directories when mkdtemp raises an OSError. The proposed fix catches the error to prevent disk exhaustion and temp-dir leaks.

## TL;DR

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

- #51826: tirith auto-install retries unboundedly and leaks /tmp/tirith-install-* dirs, exhausting disk

## Prior & competing PRs

- **#51831: fix(tools): catch mkdtemp OSError in tirith install to prevent unbounded retry and temp-dir leak**. closed without merge · fix tier `suggested`
  - maintainer direction: category `merged_via`; implication `superseded`; refs `dbf0797335aed7d0c7af6d2bcb93e043a6cf7b69`, `#51831`
  - _suggested-tier fix detail withheld; re-request with `?tier=all` to include it._
- **#52135: fix(tools): catch mkdtemp OSError in tirith install (#51826)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `tests/tools/test_tirith_security.py`, `tools/tirith_security.py`
- **#51928: fix(tirith): cache tempdir install failures**. closed without merge
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `eb6a3886f123`, `#133832`

## Fix status

- Merged to main in PR #52135 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-06-24`.
- Subsystem: `agent`
