NousResearch/hermes-agent

Request middleware chaining drops earlier rewrites

Cluster 128638. Data as of

Nothing open on GitHub. Fix merged in #133159 on 5 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 #133159. Check it covers your case. No release data is tracked.
Tracker
The maintainers' tracker marks this resolved, deciding PR #133159. That is separate from the fix event.
Still open
Nothing open on GitHub.

A bug where registering multiple llm_request or tool_request middleware callbacks causes earlier rewrites to be lost, along with fixes addressing middleware composition and mutation leaks.

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.

  • #133159 Request middleware rewrites now compose instead of the last one winning (#128638, salvage #128704)

    merged to main

    files: hermes_cli/middleware.py, hermes_cli/plugins_dispatch.py, tests/hermes_cli/test_plugins_middleware_chain.py

2 PRs closed without merging

From the close comments: done elsewhere 1 · merged via another change 1

  • #128643 fix(plugins): chain request middleware so each callback sees the previous rewrite · done elsewhere → #133159, #128704
  • #128704 fix(plugins): compose request middleware without mutation leaks · merged via another change → #133159
Closed issues · 1
  • Closed#128638[Bug]: a second `llm_request` / `tool_request` middleware drops the first one's rewrite
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
#133159
Closed issues
1
Attempts
2 PRs closed without merging
Fix link checked
5 Oct 2026

For your agent

The same facts, typed.