NousResearch/hermes-agent

Fix image rejection to preserve session history

Cluster 118053. Data as of

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

These issues and PRs address a bug where rejecting an image incorrectly removes all images from the session's persistent state, rather than only stripping the image from the specific request copy. The fix ensures session history is preserved on rejection.

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.

  • #118316 fix(agent): image rejection strips the request copy, never session history (salvage of #118054)

    merged to main

    files: agent/agent_init.py, agent/chat_completion_helpers.py, agent/message_sanitization.py, agent/turn_api_request.py, agent/turn_context.py, agent/turn_recovery.py, contributors/emails/[email protected], tests/agent/test_image_corrupt_recovery.py, tests/agent/test_image_rejection_fallback.py, tests/agent/test_turn_context.py

2 PRs closed without merging

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

  • #118054 fix(agent): an image rejection strips the request, never the session history · merged via another change → fe42948, #118316
  • #118300 fix(agent): keep session images on image rejection, strip request copies per route · superseded by another PR → #118316, #118053
Closed issues · 1
  • Closed#118053[Bug]: an image rejection permanently deletes every image in the session from state.db
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
#118316
Closed issues
1
Attempts
2 PRs closed without merging
Fix link checked
21 Sep 2026

For your agent

The same facts, typed.