# NousResearch/hermes-agent · API error body extraction and classification fixes

## Open now

- Nothing open on GitHub.

Multiple fixes and a feature addressing how wrapped or nested API errors are inspected, with cause-chain walking to correctly extract error bodies and improve error classification for failover logic. One member about preserving tool-turn context appears adjacent but not fully aligned with the core theme.

## TL;DR

- 7 member(s): 0 open issue(s), 1 closed issue(s), 0 open PR(s), 1 merged PR(s), 5 PR(s) closed without merging.
- A fix was merged to main in PR #53582. Verify it addresses your case.
- **Recommended:** read PR #53582 (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-53582`. 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.29`: 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

- #14195: Wrapped API errors lose nested body details and misclassify transient 402s as billing failures

## Prior & competing PRs

- **#14287: fix(agent): preserve nested API error bodies**. closed without merge · fix tier `suggested`
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `e7c013494d705867eae87c193664add553cf928b`
  - _suggested-tier fix detail withheld; re-request with `?tier=all` to include it._
- **#14349: fix(agent): inspect wrapped API error bodies**. closed without merge · fix tier `suggested`
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `#53582`, `#14287`, `#14195`
  - _suggested-tier fix detail withheld; re-request with `?tier=all` to include it._
- **#14787: fix(agent): make _extract_error_body walk cause chain to match _extract_status_code**. closed without merge · fix tier `suggested`
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `#53582`, `#14287`, `#14195`
  - _suggested-tier fix detail withheld; re-request with `?tier=all` to include it._
- **#53582: fix(agent): walk cause chain when extracting wrapped API error bodies (salvage of #14287 by @LeonSGP43)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`; implication `superseded`
  - files: `agent/error_classifier.py`, `tests/agent/test_error_classifier.py`
- **#14219: fix(agent): preserve nested error bodies during classification**. closed without merge
  - maintainer direction: category `stale_abandoned`; implication `active`
- **#16952: fix: preserve tool-turn context and harden issue follow-ups**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#52618`, `#14185`, `#14785`

## Fix status

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