Skip to content

feat(desktop): show a thread's total cost, time and tokens in its panel - #4360

Merged
LHagfoss merged 1 commit into
mainfrom
feat/desktop-properties-totals
Nov 25, 2026
Merged

LHagfoss merged 1 commit into
mainfrom
feat/desktop-properties-totals

Conversation

@LHagfoss

Copy link
Copy Markdown
Owner

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 ThreadDetails and shared with the Turns section; useStoredTurns drops 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), new threadTotals.test.ts
  • Checked in the mock window (dark theme) at 7% and 84% context

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%.
@github-actions github-actions Bot added the feature New feature or request label Nov 25, 2026
@LHagfoss
LHagfoss merged commit eb27b9d into main Nov 25, 2026
10 checks passed
@LHagfoss
LHagfoss deleted the feat/desktop-properties-totals branch November 25, 2026 22:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants