# NousResearch/hermes-agent · Image 400 error recovery to prevent session bricking

## Open now

- Nothing open on GitHub.

These issues and fixes address cases where invalid or corrupt image errors (400 responses) from AI providers permanently break agent sessions. The work involves detecting such errors and retrying with stripped images instead of halting the session.

## TL;DR

- 3 member(s): 0 open issue(s), 1 closed issue(s), 0 open PR(s), 1 merged PR(s), 1 PR(s) closed without merging.
- A fix was merged to main in PR #97059. Verify it addresses your case.
- **Recommended:** read PR #97059 (and any competing PRs below) before filing. Confirm the merged change covers your symptom.

## Maintainer resolution verdict

- Internal-tracker verdict over this cluster's issue members: `resolved` · deciding PR(s): `pr-97059`. This is distinct from the fix status above. Weigh it yourself.

## How this cluster was grouped

- Link evidence (`STRUCTURAL_SPANNING`): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
- Pairwise link density `0.67`: the share of member 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.

## Closed / duplicate issues

- #69078: \[Bug\]: xAI grok-4.5 'Invalid PNG image' 400 permanently bricks session — evades all image-recovery matchers; source image verified valid (xAI variant of #25837)

## Prior & competing PRs

- **#97059: fix(agent): corrupt-image 400s recover via strip-and-retry instead of bricking the session (#69078, salvage #69104)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `agent/conversation_loop.py`, `agent/error_classifier.py`, `contributors/emails/[redacted:email]`, `contributors/emails/fkdls112@users.noreply.github.com`, `tests/agent/test_error_classifier.py`, `tests/run_agent/test_69078_image_corrupt_recovery.py`, `tests/run_agent/test_image_rejection_fallback.py`
- **#69104: fix(agent): recover from xAI Invalid PNG image 400 that permanently bricks sessions**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `#97059`, `#81326`, `#29864`, `#69078`

## Fix status

- Merged to main in PR #97059 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-08-28`.
- Subsystem: `agent`
