# NousResearch/hermes-agent · MiniMax streaming token usage gaps and fixes

## Open now

- Nothing open on GitHub.

These issues and PRs center on missing or null usage data during Anthropic-compatible streaming with MiniMax and similar providers, along with proposed and attempted fallback estimation approaches. A secondary thread involves adding MiniMax-M3 model support and related logging improvements.

## TL;DR

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

- #60683: \[Bug\]: MiniMax Anthropic stream crashes with 'NoneType' object has no attribute 'output_tokens' in get_final_message()

## Prior & competing PRs

- **#121554: fix(anthropic): normalize usage:null streams, non-stream fallback on out-of-order SSE, Messages-shaped partial stubs**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `agent/anthropic_adapter.py`, `agent/chat_completion_helpers.py`, `tests/agent/test_anthropic_stream_fallbacks.py`, `tests/agent/test_streaming.py`
- **#60695: fix(agent): fall back to messages.create on Anthropic stream usage aggregation errors**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `44f6d3bbee`, `#121554`, `#60683`
- **#60700: fix(provider): catch AttributeError on output_tokens in Anthropic stream fallback**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `44f6d3bbee`, `#60683`, `#121554`

## Fix status

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