# NousResearch/hermes-agent · Watchdog timer thread must not close attempt stream

## Open now

- Nothing open on GitHub.

These issues and fixes address a bug where the auxiliary timeout watchdog closes the attempt stream from a timer thread, causing TLS file descriptor reuse that corrupts SQLite files. The proposed fix defers stream closure away from the stranger thread.

## TL;DR

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

- #130115: Codex auxiliary timeout watchdog still closes the attempt stream from the timer thread: TLS FD reuse corrupts SQLite files (follow-up to #70773)

## Prior & competing PRs

- **#130544: Codex auxiliary timeouts no longer release the attempt stream's TLS socket from the watchdog thread (#130115, salvage #130176)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`; implication `superseded`
  - files: `agent/auxiliary_client.py`, `contributors/emails/[redacted:email]`, `tests/agent/test_codex_aux_timeout_fd_ownership.py`
- **#130120: fix(auxiliary): defer stranger-thread stream close**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `53dacc4e51`, `#130544`
- **#130176: fix(auxiliary): watchdog Timer must not close the attempt stream — TLS FD reuse corrupts SQLite files**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `53dacc4e51`, `#130544`
- **#130481: agent: prevent auxiliary client from closing stream in timer thread to avoid tls fd reuse**. closed without merge
  - maintainer direction: category `uncategorized`; implication `needs_llm`

## Fix status

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