fix: token report prices Sonnet 5.5 and uses the lead's real output tokens - #427
Merged
Merged
Conversation
The lead transcript carries real output_tokens and the price table lacks claude-sonnet-5-5. Failing tests first. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…e token report Lead transcripts repeat the final output_tokens on every line of a turn, so the first line is safe to read. Subagent transcripts do not, so those stay a chars/4 estimate, now marked (est.) per cell. Adds claude-sonnet-5-5 to the price table (rates re-read from the pricing page 2026-10-01). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Owner
Author
Tester report (round 1)VERDICT: PASS
|
This was referenced Oct 1, 2026
Owner
Author
Reviewer report (round 1)VERDICT: APPROVE
|
sv-tmueller
marked this pull request as ready for review
October 1, 2026 11:08
This was referenced Oct 1, 2026
Resolve the plugin.json version to 2.10.1, above main's 2.10.0 from #428. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Closes #425
Part of batch #423.
The token report priced
claude-sonnet-5-5as unpriced and estimated the lead's output as visible chars / 4, though lead transcripts carry the real count.claude-sonnet-5-5($2 / $2.50 / $4 / $0.20 / $10 per MTok). Re-read the pricing page on 2026-10-01: the existingclaude-opus-5-5andclaude-sonnet-5rates are unchanged;retrievedis now 2026-10-01.usage.output_tokensis read from the first line of each turn (every line repeats the final count). A lead turn with no count falls back to chars / 4 and is marked. Subagent output stays a chars / 4 estimate.tm-ab-test/SKILL.mdwas stale and is corrected.Checks:
npm testpasses (478 tests). Smoke run against a real recent lead session: lead row unmarked and in the thousands,claude-sonnet-5-5priced, subagent rows marked (est.).🤖 Generated with Claude Code