# NousResearch/hermes-agent · Nested API response envelope unwrapping fixes

## Open now

- 0 issues, 2 PRs open on GitHub.
- PR #63409: fix(agent): unwrap data/success envelope in auxiliary LLM responses
- PR #63541: fix(auxiliary_client): unwrap custom provider response wrappers for vision

These issues and fixes concern custom or auxiliary API providers returning responses wrapped in an extra envelope (e.g., {"data": {...}}), which causes parsing failures. Multiple fixes address unwrapping these nested structures across agent and vision code paths.

## TL;DR

- 6 member(s): 0 open issue(s), 2 closed issue(s), 2 open PR(s), 1 merged PR(s), 1 PR(s) closed without merging.
- A fix was merged to main in PR #131907. Verify it addresses your case.
- **Recommended:** read PR #131907 (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: `partially_resolved` · deciding PR(s): `pr-131907`. 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.36`: 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

- #63408: Custom provider response wrapper {"data": {...}} not unwrapped — vision fails with empty ChatCompletion
- #66750: \[Bug\]: custom api.cline.bot endpoint returns nested non-streaming envelope (choices=None)

## Prior & competing PRs

- **#131907: fix(agent): unwrap data/success envelope in auxiliary LLM responses \[risk 0.30\]**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `agent/auxiliary_client.py`, `contributors/emails/[redacted:email]`, `tests/agent/test_auxiliary_client.py`
- **#63409: fix(agent): unwrap data/success envelope in auxiliary LLM responses**. open
  - maintainer direction: category `merged_via`; implication `superseded`; refs `91b17917e605`, `bfbd43b89e`, `#63409`, `#66751`
  - files: `agent/auxiliary_client.py`, `tests/agent/test_auxiliary_client.py`
- **#63541: fix(auxiliary_client): unwrap custom provider response wrappers for vision**. open
  - maintainer direction: category `duplicate_of`; implication `duplicate`; refs `#63409`, `#63408`
  - files: `agent/auxiliary_client.py`
- **#66751: fix(agent): unwrap nested OpenAI-compat response envelopes**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `bb230bd4b2`, `#63409`, `#66750`, `#63408`

## Fix status

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