Skip to content

fix(session): align token count and cost with TUI - #501

Merged
sudo-tee merged 2 commits into
sudo-tee:mainfrom
disrupted:api-cost
Sep 28, 2026
Merged

sudo-tee merged 2 commits into
sudo-tee:mainfrom
disrupted:api-cost

Conversation

@disrupted

@disrupted disrupted commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

there was a small discrepancy for the total token count between TUI and plugin because we didn't count the reasoning tokens.
the session cost was almost always wildly off in my testing. I have removed the client-side accumulation in favor of relying on the API-provided cost value as single source of truth

@disrupted disrupted changed the title fix: source session cost from API fix(session): align token count and cost with TUI Sep 26, 2026
@disrupted
disrupted marked this pull request as ready for review September 26, 2026 11:54
@sudo-tee

Copy link
Copy Markdown
Owner

Nice catch.

Thanks for the fix

@sudo-tee
sudo-tee merged commit b5be726 into sudo-tee:main Sep 28, 2026
5 checks passed
@disrupted
disrupted deleted the api-cost branch September 28, 2026 16:40
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