# NousResearch/hermes-agent · Gateway mirror session lookup timing and profile fixes

## Open now

- Nothing open on GitHub.

These issues and pull requests address a bug where the gateway's mirror session lookup computed the sessions index at import time rather than dynamically at call time, causing it to always reference the launch profile's index instead of the active profile's. Related profile management fixes are also bundled, covering rename rollback history, Windows log lock handling, and stopped-profile status labeling (ensuring a stopped profile is not shown as \`'Start failed'\`).

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

- #112844: gateway/mirror.py pins sessions.json at import time: the fallback lookup always reads the launch profile's index

## Prior & competing PRs

- **#113363: fix(profiles): renamed profile keeps rollback history, Windows delete releases its log locks, stopped profile is not 'Start failed', mirror follows the active profile (#112973 #112538 #112517 #112844)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `gateway/mirror.py`, `gateway/status.py`, `hermes_cli/profile_identity.py`, `hermes_cli/profiles.py`, `hermes_cli/web_routers/messaging.py`, `hermes_cli/web_routers/status.py`, `hermes_logging.py`, `tests/gateway/test_mirror.py`, `tests/hermes_cli/test_profile_delete_log_handlers.py`, `tests/hermes_cli/test_profile_rename_checkpoints.py`, `tests/hermes_cli/test_web_server_messaging_stale_runtime.py`, `tests/hermes_cli/test_web_server_profile_unification.py`, `tests/test_hermes_logging.py`, `tools/checkpoint_manager_profile_rename.py`, `website/docs/reference/profile-commands.md`
- **#112846: fix(gateway): resolve the mirror sessions index at call time, not import time**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `3b5456ec64`, `#113363`
- **#113138: fix(gateway): mirror session lookup follows the active profile's sessions index (#112844, salvage #112846)**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `f27c719a93cc`

## Fix status

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