# NousResearch/hermes-agent · Fix gateway.log handler missing in CLI-first init

## Open now

- Nothing open on GitHub.

These issues and PRs address a bug where the gateway.log handler is not attached when logging is initialized in CLI mode before the gateway starts up. Multiple fix attempts or iterations are represented across the members.

## 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 #16229. Verify it addresses your case.
- **Recommended:** read PR #16229 (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-16229`. 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

- #8404: gateway.log is never attached when logging is initialized in CLI mode before gateway startup

## Prior & competing PRs

- **#8411: fix(logging): attach gateway.log handler when CLI init runs first**. closed without merge · fix tier `suggested`
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#8412`
  - _suggested-tier fix detail withheld; re-request with `?tier=all` to include it._
- **#16229: fix(logging): attach gateway log after cli init**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `hermes_logging.py`, `tests/test_hermes_logging.py`
- **#8412: fix(logging): attach gateway.log handler when CLI initializes first**. closed without merge
  - maintainer direction: category `silent_close`; implication `active`

## Fix status

- Merged to main in PR #16229 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-04-27`. This confirmation is old and may be out of date (a revert/reopen would not have invalidated it here); re-verify.
