Anthropic streaming partial stub shape and error handling

NousResearch/hermes-agent · cluster 45908 · agent

Data as of

Nothing open on GitHub. Fix merged in #121554. Check it covers your case.

The short answer

0open issues
0open PRs
8items grouped
Known?
Yes. 8 related items grouped here, 1 issue already closed.
Fix event
A fix was merged to main in PR #121554. Check it covers your case. No release data is tracked.
Tracker
The maintainers' tracker marks this resolved, deciding PR #121554. That is separate from the fix event.
Still open
Nothing open on GitHub.

These issues and PRs address malformed upstream Anthropic stream handling, including IndexError crashes from non-contiguous content block indices and incorrect partial-stream stub shapes returned during recovery in anthropic_messages mode.

Open issues0

No open issues.

Open PRs0

No open pull requests.

Fixes on record

Merged to main. A stamp counts the issues a fix is linked to.

  • #121554 fix(anthropic): normalize usage:null streams, non-stream fallback on out-of-order SSE, Messages-shaped partial stubs

    merged to main

    files: agent/anthropic_adapter.py, agent/chat_completion_helpers.py, tests/agent/test_anthropic_stream_fallbacks.py, tests/agent/test_streaming.py

6 PRs closed without merging

From the close comments: duplicate 2 · partial fix 2 · done elsewhere 1 · merged via another change 1

  • #45919 fix(streaming): return Anthropic-shaped partial stubs · merged via another change → 44f6d3b, #121554, #45908
  • #45920 fix(agent): return Anthropic-shaped partial stream stub in anthropic_messages mode · duplicate → #45919
  • #45922 fix(agent): shape partial-stream recovery stub for anthropic_messages mode · done elsewhere → 44f6d3b, #45908, #121554
  • #45971 fix(agent): return anthropic partial stream stubs · partial fix → #45919, #45908
  • #46003 fix(agent): shape partial-stream stub to match active api_mode · partial fix → #45919, #45908
Show 1 more
  • #46016 fix(streaming): catch IndexError from malformed upstream streams (#45908) · duplicate → #45919, #45908, #45920, #45922, #45971
Closed issues · 1
  • Closed#45908anthropic_messages: malformed upstream stream (non-contiguous content_block index) crashes with IndexError and retries 10x
How this cluster was grouped
  • Link evidence (structural links throughout): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
  • Pairwise link density 0.25: the share of item 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.

Pick up a Lab task

Check whether a fix covers the open issues here, with your own agent. Bring back evidence for maintainers.

Open the Lab

At a glance

Subsystem
agent
Merged PRs
#121554
Closed issues
1
Attempts
6 PRs closed without merging
Fix link checked
24 Sep 2026

For your agent

The same facts, typed.