NousResearch/hermes-agent

Handling empty OpenAI-wire streams without fabricating stop turns

Cluster 38725 · agent. Data as of

Nothing open on GitHub. Fix merged in #40589 on 7 Jun 2026. Check it covers your case.

The short answer

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

These items concern a streaming parser that produces an empty stop turn when an OpenAI-wire stream yields zero chunks, along with proposed changes to guard against empty streams or raise instead. One member also mentions parsing OpenRouter output-cap errors, which is a related but separate topic.

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.

  • #40589 fix: guard empty streams + parse OpenRouter output-cap errors

    merged to main

    files: agent/chat_completion_helpers.py, agent/model_metadata.py, tests/test_output_cap_parsing.py

1 PR closed without merging

From the close comments: done elsewhere 1

  • #38733 fix(agent): raise on empty stream instead of fabricating stop turn · done elsewhere → 1fb99b1, #40589, #38725
Closed issues · 1
  • Closed#38725Streaming parser silently fabricates an empty `stop` turn when an OpenAI-wire stream yields zero chunks
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.67: 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
#40589
Closed issues
1
Attempts
1 PR closed without merging
Fix link checked
7 Jun 2026

For your agent

The same facts, typed.