Plugin hooks, persistence ordering, and run_conversation metadata

NousResearch/hermes-agent · cluster 14894 · agent

Data as of

9 open items. Fix merged in #118845. Check it covers your case.

The short answer

4open issues
5open PRs
16items grouped
Known?
Yes. 16 related items grouped here, 2 issues already closed.
Fix event
A fix was merged to main in PR #118845. Check it covers your case. No release data is tracked.
Tracker
The maintainers' tracker marks this partially resolved, deciding PR #118845. That is separate from the fix event.
Still open
4 issues and 5 PRs.

These items cover adding and fixing plugin hooks that transform assistant messages before persistence, correcting mismatches between final responses and stored history caused by hook ordering, and exposing structured per-turn metadata from run_conversation().

Open issues4

  • Issue#28431feat: expose structured multi-turn response metadata from run_conversation()
  • Issue#28474feat: structured response object from run_conversation()
  • Issue#46574[Feature]: Add plugin hook for transforming assistant messages before session DB persistence (transform_persisted_assistant)
  • Issue#57282[Bug]: transform_llm_output appended content leaks into Honcho external memory sync

Open PRs5

  • PR#28453feat: expose structured per-turn content metadata from run_conversation()
  • PR#28538feat: expose tool_call_log and metadata from run_conversation()
  • PR#46578feat: add transform_persisted_assistant plugin hook for pre-persistence transformation
  • PR#57289fix(agent): pass pre-transform response to external memory sync
  • PR#82358fix(agent): let transform_llm_output split display text from memory-sync text

Fixes on record

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

  • #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

    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

4 PRs closed without merging

From the close comments: superseded by another PR 2 · done elsewhere 1 · merged via another change 1

  • #14913 fix(agent): run post_llm_call hook before session persistence · superseded by another PR → 35fdb46, #118845, #44239
  • #28840 Preserve original message timestamps through fork/compress/branch · merged via another change → 961b832, #69301
  • #44244 fix(agent): persist plugin-transformed responses so resume replays what the user saw · done elsewhere → 35fdb46, #118845
  • #44253 fix: persist finalized LLM hook responses · superseded by another PR → 35fdb46, #118845, #44239
Closed issues · 2
  • Closed#14894[Bug]: post_llm_call response overrides are applied after persistence, causing final_response/history mismatch
  • Closed#44239[Bug]: transform_llm_output and post_llm_call hooks both produce final_response/history mismatch — same root cause as #14894
How this cluster was grouped
  • Link evidence (partly structural links): 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.12: 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

Subsystem
agent
Merged PRs
#118845
Closed issues
2
Attempts
4 PRs closed without merging
Fix link checked
22 Sep 2026

For your agent

The same facts, typed.