Skip to content

fix(runtime): reconcile partial usage observation#55

Merged
phantom5099 merged 1 commit intomainfrom
fork-pr-413-1776912961
Apr 23, 2026
Merged

fix(runtime): reconcile partial usage observation#55
phantom5099 merged 1 commit intomainfrom
fork-pr-413-1776912961

Conversation

@fennoai
Copy link
Copy Markdown

@fennoai fennoai Bot commented Apr 23, 2026

Requested by @phantom5099

Summary

  • avoid emitting non-nil usage when provider stream does not return token usage
  • add input/output observed flags to provider usage payload and propagate to runtime stream handling
  • reconcile token ledger per-side so partial observation keeps observed fields and only degrades missing side
  • add regression tests for anthropic/gemini/openaicompat adapters and runtime ledger reconciliation

Generated with [codeagent](https://github.com/qbox/codeagent)

Co-authored-by: phantom5099 <245659304+phantom5099@users.noreply.github.com>
@phantom5099 phantom5099 merged commit b3627b5 into main Apr 23, 2026
1 check passed
@fennoai fennoai Bot deleted the fork-pr-413-1776912961 branch April 23, 2026 04:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants