# NousResearch/hermes-agent · Background process notifications misrouted as user messages

## Open now

- 1 issue, 2 PRs open on GitHub.
- #41851: \[Bug\]: CLI notify_on_complete injects notification as user input instead of terminal output
- PR #35317: Bug: User input lost after background task — old messages reappear, requires 3x input to show latest
- PR #41903: fix(cli): display notify_on_complete as terminal output instead of user input

Multiple bugs where background process completion notifications are incorrectly injected as user input rather than terminal/system output, polluting conversation history and causing session routing problems. Several fixes target CLI display behavior and session routing for these notifications.

## TL;DR

- 8 member(s): 1 open issue(s), 1 closed issue(s), 2 open PR(s), 0 merged PR(s), 4 PR(s) closed without merging.
- No fix has been merged to main; one or more PRs were attempted (see below).
- **Recommended:** review the prior/competing PR(s) below. A fix was attempted but not merged; your case may extend or revive that work.

## Maintainer resolution verdict

- Internal-tracker verdict over this cluster's issue members: `unresolved`. This is distinct from the fix status above. Weigh it yourself.

## How this cluster was grouped

- Link evidence (`STRUCTURAL_PARTIAL`): some members are connected by structural evidence (shared changed files, or a closing/superseded reference); the rest are joined by an automated relevance judgement over their text.
- Members outside that structural core may belong to a different underlying problem.
- Pairwise link density `0.23`: 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.

## Open related issues

- #41851: \[Bug\]: CLI notify_on_complete injects notification as user input instead of terminal output

## Closed / duplicate issues

- #35298: Bug: Background process notifications are treated as user messages, polluting conversation history

## Prior & competing PRs

- **#41878: fix: three targeted bug fixes for CLI, delegate_task schema, and title timeout**. closed without merge · fix tier `suggested`
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `5126902f1`
  - _suggested-tier fix detail withheld; re-request with `?tier=all` to include it._
- **#41931: fix(cli): display process notifications in terminal (#41851)**. closed without merge · fix tier `suggested`
  - maintainer direction: category `uncategorized`; implication `needs_llm`
  - _suggested-tier fix detail withheld; re-request with `?tier=all` to include it._
- **#35317: Bug: User input lost after background task — old messages reappear, requires 3x input to show latest**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`
  - files: `agent/prompt_builder.py`, `agent/system_prompt.py`, `cli.py`, `tui_gateway/server.py`, `ui-tui/src/app/useSubmission.ts`
- **#41855: fix(cli): display background process notifications directly to terminal**. closed without merge
  - maintainer direction: category `stale_abandoned`; implication `active`
- **#41875: fix(cli): display background process notifications directly to terminal**. closed without merge
  - maintainer direction: category `uncategorized`; implication `needs_llm`
- **#41903: fix(cli): display notify_on_complete as terminal output instead of user input**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `f75f3cd713`
  - files: `cli.py`

## Fix status

- No merged fix on record.
- Subsystem: `agent`
- Kind: `bug` (from the open issues' GitHub type labels).
