Skip to content

Show provider-reported token totals in Desktop - #41

Merged
DevMando merged 1 commit into
mainfrom
fix/accurate-token-accounting
Aug 30, 2026
Merged

Show provider-reported token totals in Desktop#41
DevMando merged 1 commit into
mainfrom
fix/accurate-token-accounting

Conversation

@DevMando

@DevMando DevMando commented Aug 30, 2026

Copy link
Copy Markdown
Owner

What changed

Desktop now uses the engine's provider-reported token totals and removes the remaining UI plumbing that generated estimated counts for attached files.

The submodule is pinned to the matching engine fix, so the header and response summaries show actual prompt and completion usage instead of combining actual usage with a rough payload estimate.

Why this matters

For a user, the visible token number is now a reliable measure of what the model provider processed. File reads and web research can still increase real request size, but Desktop no longer inflates the displayed session total with a second approximation.

Validation

  • Desktop tests pass 239/239
  • Engine token tracking tests pass on .NET 8 and .NET 10

@DevMando
DevMando merged commit 706a59b into main Aug 30, 2026
1 check passed
@DevMando
DevMando deleted the fix/accurate-token-accounting branch August 30, 2026 07:19
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.

1 participant