{"repo":"NousResearch/hermes-agent","public_id":"118053","display_label":"Fix image rejection to preserve session history","summary":"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.","subsystem":null,"counts":{"members":4,"open_issues":0,"open_issues_distinct":0,"open_prs":0,"closed_issues":1,"merged_prs":1,"attempt_prs":2},"landed_fix":{"status":"merged_to_main","basis":"structural","pr":118316,"merged_at":"2026-09-21T16:13:53+00:00"},"resolution":{"state":"unresolved","by":null},"freshness":{"state":"verified","last_verified_at":"2026-09-21T16:13:53+00:00","is_stale":false},"grouping":{"backbone":"STRUCTURAL_SPANNING","link_density":0.5},"fix_edges":[{"issue_number":118053,"pr_number":118316,"tier":"verified","basis":"superseded_ref","confidence":0.9,"recoverable_from_timeline":false,"pr_merged_at":"2026-09-21T16:13:53+00:00"}],"members":[{"kind":"issue","number":118053,"title":"[Bug]: an image rejection permanently deletes every image in the session from state.db","url":null,"state":"closed"},{"kind":"pr","number":118054,"title":"fix(agent): an image rejection strips the request, never the session history","url":null,"state":"closed","close_reason":{"refs":[{"kind":"commit","value":"fe4294802e","number":0},{"kind":"pr","value":"#118316","number":118316}],"category":"merged_via","implication":"superseded"},"merged":false},{"kind":"pr","number":118300,"title":"fix(agent): keep session images on image rejection, strip request copies per route","url":null,"state":"closed","close_reason":{"refs":[{"kind":"pr","value":"#118316","number":118316},{"kind":"pr","value":"#118053","number":118053}],"category":"superseded_by_pr","implication":"superseded"},"merged":false},{"kind":"pr","number":118316,"title":"fix(agent): image rejection strips the request copy, never session history (salvage of #118054)","url":null,"state":"merged","close_reason":{"category":"merged"},"merged":true,"is_fix_pr":true,"fix_tier":"verified","files_changed":["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/252427329+rodricksz4h5@users.noreply.github.com","tests/agent/test_image_corrupt_recovery.py","tests/agent/test_image_rejection_fallback.py","tests/agent/test_turn_context.py"]}],"trust":{"default_tier":"verified","includes_suggested":false}}