Repository navigation
feat(desktop): show a thread's total cost, time and tokens in its panel - #4360
Merged
Merged
Conversation
The Activity section opens with the thread's cost (reported, else its turns at list price), the time its turns ran (the running one counting up) and its tokens. The context meter shows its percentage and warms at 70% and 90%.
3 tasks
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.
What
The thread panel's Activity section now leads with three headline numbers: Cost (the harness's reported total, else each turn's reported or list-price cost, marked
~when estimated), Worked (the time its turns ran, the running turn counting up live) and Tokens (input + output, split in the tip). Before, a harness that reported no session cost, such as Claude Code, showed no cost at all.The context meter is more prominent: the percentage is shown beside the label, the bar is thicker, and it turns amber at 70% and red at 90%.
The turn list is now computed once in
ThreadDetailsand shared with the Turns section;useStoredTurnsdrops a previous thread's rows on switch.Changelog
The thread panel shows the thread's total cost, time worked and tokens at a glance, and its context meter warns as the window fills.
Testing
bun run check(typecheck, lint, 3,314 unit tests, build), newthreadTotals.test.ts