# NousResearch/hermes-agent · UnboundLocalError fixes in gateway and CLI

## Open now

- Nothing open on GitHub.

These issues address UnboundLocalError exceptions occurring in two separate areas: the gateway's run_sync closure and the CLI's show_banner() function when terminal width is below 80 columns. Both involve uninitialized or conditionally unbound local variables causing crashes.

## TL;DR

- 3 member(s): 0 open issue(s), 2 closed issue(s), 0 open PR(s), 0 merged PR(s), 1 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_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.45`: 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

- #4331: \[Bug\]: UnboundLocalError: ctx_len in show_banner() crashes CLI on launch
- #4396: fix(cli): UnboundLocalError in show_banner() when terminal width < 80 columns

## Prior & competing PRs

- **#5276: fix(gateway): resolve UnboundLocalError in run_sync closure**. closed without merge · fix tier `suggested`
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#5290`, `#5326`, `#5286`
  - _suggested-tier fix detail withheld; re-request with `?tier=all` to include it._

## Fix status

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