# NousResearch/hermes-agent · TUI session actions scoped to wrong profile

## Open now

- 0 issues, 2 PRs open on GitHub.
- PR #125073: fix(tui): dispatch agent_loop_stopped in the session's profile scope
- PR #125081: fix(tui): scope the interrupt agent_loop_stopped hook to the session's profile

A bug where TUI operations such as interrupt hooks, /save, /model sync, and others act on the backend launch profile instead of the session's owning profile. Multiple fixes and a tracking issue address scoping these actions correctly to the session's profile.

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

- #125063: \[Bug\] TUI agent_loop_stopped runs in launch-profile scope and omits the selected profile

## Prior & competing PRs

- **#126159: Desktop/TUI act on the session's owning profile, not the backend launch profile: /save, interrupt hook, /model sync, resume hint and route, slash palette, Open Logs, API-server card (8 issues, salvages 6 PRs)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `apps/desktop/electron/fs-ipc.test.ts`, `apps/desktop/electron/fs-ipc.ts`, `apps/desktop/electron/preload.ts`, `apps/desktop/src/app/chat/composer/hooks/use-slash-completions.test.tsx`, `apps/desktop/src/app/chat/composer/hooks/use-slash-completions.ts`, `apps/desktop/src/app/chat/composer/index.tsx`, `apps/desktop/src/app/chat/composer/types.ts`, `apps/desktop/src/app/chat/index.tsx`, `apps/desktop/src/components/assistant-ui/thread/assistant-message.tsx`, `apps/desktop/src/global.d.ts`, `apps/shared/src/gateway-contract.generated.ts`, `apps/shared/src/gateway-contract.openrpc.json`, `hermes_cli/main_tui_launch.py`, `hermes_cli/web_routers/messaging.py`, `hermes_state_gateway.py`, `tests/hermes_cli/test_exit_summary_resume_hint.py`, `tests/hermes_cli/test_resume_model_restore.py`, `tests/hermes_cli/test_served_profile_mirror_platforms.py`, `tests/tui_gateway/test_interrupt_agent_loop_stopped_hook.py`, `tests/tui_gateway/test_multi_profile_hosting_fail_closed.py` (+11 more)
- **#125073: fix(tui): dispatch agent_loop_stopped in the session's profile scope**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `312f277d9`
  - files: `hermes_cli/plugins.py`, `tests/tui_gateway/test_interrupt_agent_loop_stopped_hook.py`, `tui_gateway/session_lifecycle.py`
- **#125081: fix(tui): scope the interrupt agent_loop_stopped hook to the session's profile**. open
  - maintainer direction: category `silent_close`; implication `active`
  - files: `hermes_cli/plugins.py`, `tests/tui_gateway/test_interrupt_agent_loop_stopped_hook.py`, `tui_gateway/session_lifecycle.py`

## Fix status

- Merged to main in PR #126159 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-09-28`.
- Subsystem: `agent`
