# NousResearch/hermes-agent · Plugin slash commands missing session context in gateway

## Open now

- Nothing open on GitHub.

Plugin slash command handlers in the gateway run without a bound session context, causing session environment lookups to return empty. Related discussion touches on where and when plugin hooks fire across different surfaces.

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

- #108698: Plugin slash commands run without session context (get_session_env('HERMES_SESSION_KEY') empty in command handlers)

## Prior & competing PRs

- **#118845: Plugin hooks fire on every surface: gateway slash commands bound + off-loop, transform hooks cover inline runtime tools, background processes and the persisted reply (#108698 #105279 #72836 #70760 #44239)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `agent/agent_runtime_helpers.py`, `agent/inline_tool_executors.py`, `agent/tool_executor.py`, `agent/turn_final_response.py`, `agent/turn_finalizer.py`, `gateway/run.py`, `gateway/run_inbound.py`, `gateway/run_notifications.py`, `tests/agent/test_run_agent.py`, `tests/agent/test_transform_llm_output_persistence.py`, `tests/gateway/test_session_env.py`, `tests/gateway/test_unknown_command.py`, `tests/tools/test_process_registry.py`, `tests/tui_gateway/test_tui_gateway_server.py`, `tools/process_registry.py`, `tui_gateway/methods_tools.py`, `website/docs/user-guide/features/hooks.md`
- **#108703: fix(gateway): bind session context for plugin slash command handlers**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `35fdb4608a`, `#118845`
- **#108704: fix(gateway): bind session context for plugin slash commands**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `35fdb4608a`, `#118845`

## Fix status

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