NousResearch/hermes-agent

Cancel agent tasks when session ends or stops

Cluster 102895. Data as of

Nothing open on GitHub. Fix merged in #128360 on 1 Oct 2026. Check it covers your case.

The short answer

0open issues
0open PRs
4items grouped
Known?
Yes. 4 related items grouped here, 1 issue already closed.
Fix event
A fix was merged to main in PR #128360. Check it covers your case. No release data is tracked.
Tracker
The maintainers' tracker marks this resolved, deciding PR #128360. That is separate from the fix event.
Still open
Nothing open on GitHub.

These items address a bug where deleting or stopping a session did not interrupt the agent's running turn or background review tasks, allowing runaway model calls to continue. The work involves adding cancellation logic for active turns and background forks on session teardown and stop.

Open issues0

No open issues.

Open PRs0

No open pull requests.

Fixes on record

Merged to main. A stamp counts the issues a fix is linked to.

  • #128360 fix(agent): cancel a session's background review fork on teardown and /stop (#102895)

    merged to main

    files: agent/background_review.py, tests/tui_gateway/test_finalize_session_cancels_background_review.py, tests/tui_gateway/test_session_interrupt_cancels_background_review.py, tui_gateway/session_lifecycle.py

2 PRs closed without merging

From the close comments: duplicate 1 · superseded by another PR 1

  • #102911 session: interrupt running turn when session is deleted · duplicate → #75616, #102895
  • #103094 fix(agent): cancel background review when session ends or is stopped · superseded by another PR → #128360
Closed issues · 1
  • Closed#102895[Bug] Deleting a desktop session does not stop its running agent turn — failed-tool retry loop kept calling the model for 70+ min until app restart
How this cluster was grouped
  • Link evidence (structural links throughout): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
  • Pairwise link density 0.50: the share of item 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.

Pick up a Lab task

Check whether a fix covers the open issues here, with your own agent. Bring back evidence for maintainers.

Open the Lab

At a glance

Merged PRs
#128360
Closed issues
1
Attempts
2 PRs closed without merging
Fix link checked
1 Oct 2026

For your agent

The same facts, typed.