# NousResearch/hermes-agent · Gateway scoped lock self-reacquisition bug fixes

## Open now

- Nothing open on GitHub.

These issues and PRs address a bug where a gateway process incorrectly fails to reacquire its own scoped lock, particularly after reconnection events. Multiple fix attempts explore different conditions under which self-reacquisition should be permitted.

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

- #81468: Gateway fails to self-reacquire its own scoped lock after Discord 503 reconnect (false-positive discord-bot-token_lock against own PID)

## Prior & competing PRs

- **#81585: fix(gateway): self-reacquire scoped lock when start_time is null or differs**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `gateway/status.py`, `tests/gateway/test_status.py`
- **#81475: fix(gateway): self-reacquire scoped lock when start_time is null**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `#81585`
- **#81477: fix(gateway): let a process reacquire the scoped lock it already holds**. closed without merge
  - maintainer direction: category `duplicate_of`; implication `duplicate`; refs `#81475`, `#81468`
- **#81495: fix(gateway): self-reacquire scoped lock regardless of start_time**. closed without merge
  - maintainer direction: category `duplicate_of`; implication `duplicate`; refs `#81475`, `#81468`

## Fix status

- Merged to main in PR #81585 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-08-08`.
