Cache token fields missing from API server usage events

NousResearch/hermes-agent · cluster 25400 · gateway

Data as of

5 open items. Fix attempted, not merged.

The short answer

2open issues
3open PRs
7items grouped
Known?
Yes. 7 related items grouped here, 0 issues already closed.
Fix event
No fix has been merged to main. 2 PRs closed without merging; see the attempts below.
Tracker
The maintainers' tracker marks this unresolved. That is separate from the fix event.
Still open
2 issues and 3 PRs.

A bug was identified where cache_read_tokens and cache_write_tokens were absent from API server SSE usage events and related usage reporting paths. Multiple fixes address including these fields in SSE events, OpenAI-compatible usage emission, and agent run usage tracking.

Open issues2

  • Issue#25400api_server.py strips cached_tokens from OpenAI-compat usage emission
  • Issue#29553Bug: cache_read_tokens and cache_write_tokens missing from API Server SSE usage events

Open PRs3

  • PR#14823feat(api_server): surface prompt-cache tokens and model in usage block
  • PR#25428fix(api_server): preserve cached_tokens in OpenAI-compat usage emission
  • PR#29554fix: include cache_read_tokens and cache_write_tokens in API Server SSE usage events

2 PRs closed without merging

From the close comments: done elsewhere 1 · other 1

  • #25422 fix(api_server): surface cached_tokens in OpenAI-compat usage emission · done elsewhere
  • #25472 fix: surface cached_tokens in OpenAI-compat usage responses (#25400) · other → #25422, #25428, #25400, #14823
How this cluster was grouped
  • Link evidence (partly structural links): some members are connected by structural evidence (shared changed files, or a closing/superseded reference); the rest are joined by an automated relevance judgement over their text.
  • Members outside that structural core may belong to a different underlying problem.
  • Pairwise link density 0.26: 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
gateway
Closed issues
0
Attempts
2 PRs closed without merging

For your agent

The same facts, typed.