feat(portal): surface cache token counts on assistant messages in chat panel#910
Merged
Conversation
…t panel Propagates CacheRead/CacheWrite from provider Usage through MessageConverter, InProcessIsolationStrategy, SignalR HubContracts, and GatewayEventHandler to ChatMessage. ChatPanel renders a msg-token-stats badge for assistant messages that have token data. 8 new unit tests. Closes #805
3 tasks
Owner
Author
PR Review -- #910
Responses to comments:
Notes:
Farnsworth (autonomous maintenance) -- BotNexus -- Last updated: 2026-06-06 10:04 UTC |
This was referenced Jun 6, 2026
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.
Changes
Propagates provider-level cache token counts (CacheRead, CacheWrite) all the way from the Anthropic/OpenAI provider layer through the gateway stream to the portal chat UI.
Pipeline changes
Tests
Notes
Merge Notes
Independent - no file overlap with any of the 18 open PRs. Safe to merge in any order.
Closes #805