# NousResearch/hermes-agent · Retry streaming without stream_options on 400/422 errors

## Open now

- Nothing open on GitHub.

These items address endpoints (such as Azure AI Foundry serverless) that reject requests with HTTP 400 or 422 when stream_options is included, and a proposed fix to automatically retry streaming without that field in those cases.

## 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 #109143. Verify it addresses your case.
- **Recommended:** read PR #109143 (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-109143`. 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

- #9705: \[Bug\] Azure AI Foundry (MaaS/serverless) custom endpoint fails with HTTP 422 — stream_options.include_usage not supported

## Prior & competing PRs

- **#109143: Streaming retries once without stream_options when an endpoint rejects it with 400/422 (#9705, salvage #53271)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `agent/agent_init.py`, `agent/chat_completion_helpers.py`, `tests/run_agent/test_streaming.py`
- **#53271: fix(agent): auto-retry streaming without stream_options on 400/422 rejection**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `10864f394d`, `#109143`

## Fix status

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