[codex] Update Codex Token Usage to 0.1.3#10
Open
kokotao wants to merge 4 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Updates the
Codex Token Usagemarket script to version0.1.3.This release fixes session-scoped rendering and restores the historical per-call aggregation behavior. The important correction in
0.1.3is that Codextoken_count.total_token_usageis treated as cumulative session/turn context information, not as a single model call. Per-reply input/output totals and调用 N 次are again derived from repeatedlast_token_usage/ model usage updates entering the turn call list.Details
last_token_usageas the per-call token usage source.total_token_usageas a single model call, which made call count stick at 1 and token totals look wrong.调用 1 次.codex-token-usagemetadata to0.1.3and refreshes SHA-256.Validation
codex-token-usage-script:npm test-> 19/19 passing.npm run check:index.index.jsonSHA was validated againstscripts/codex-token-usage.js.