# NousResearch/hermes-agent · Plugin commands missing session ID binding fix

## Open now

- 0 issues, 2 PRs open on GitHub.
- PR #123321: fix(gateway): bind session_id in plugin command env and report session_key on reset (#123245)
- PR #123334: fix(gateway): bind HERMES_SESSION_ID in the plugin-command scope

These items concern a bug where plugin commands lack a bound session identifier in their environment scope, and the associated fixes to expose the session ID (and session key on reset) within that context.

## TL;DR

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

- #123245: Plugin session state cannot follow /new or /reset: the plugin-command scope binds no session id

## Prior & competing PRs

- **#140997: Plugin slash commands receive the calling session on every surface (#140199, salvage #137973)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `cli.py`, `gateway/run_inbound_hooks.py`, `hermes_cli/plugin_command_dispatch.py`, `hermes_cli/plugins.py`, `tests/gateway/test_session_env.py`, `tests/hermes_cli/test_plugin_command_source.py`, `tui_gateway/methods_tools.py`, `website/docs/developer-guide/plugins/index.md`, `website/docs/user-guide/features/plugins.md`
- **#123321: fix(gateway): bind session_id in plugin command env and report session_key on reset (#123245)**. open
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `#123245`
  - files: `gateway/run.py`, `gateway/run_inbound.py`, `gateway/slash_commands_session.py`, `tests/gateway/test_session_env.py`, `tui_gateway/server.py`, `tui_gateway/session_lifecycle.py`
- **#123334: fix(gateway): bind HERMES_SESSION_ID in the plugin-command scope**. open
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `433d7fce4d`, `#105279`, `#54878`
  - files: `gateway/run.py`, `gateway/run_inbound.py`, `tests/gateway/test_plugin_command_session_scope.py`

## Fix status

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