Repository navigation
feat(overview): show tokens used and session time instead of token cost - #589
Merged
Merged
Conversation
A dollar figure for tokens read as what the customer actually pays, which it is not when their agents run on a subscription. Tokens and time in sessions describe the work without implying a bill. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Artem Petrov <[email protected]>
artempartos
added a commit
to Hitin/flow
that referenced
this pull request
Oct 28, 2026
* origin/develop: docs(workflows): describe workflows as sessions made of steps (AixleHQ#595) feat(workflows): open archived workflows read-only in the builder (AixleHQ#594) feat(task-comments): let authors delete their own recent comments (AixleHQ#593) feat(mcp): log the JSON-RPC method and tool name of each MCP call (AixleHQ#592) fix(board): show a run waiting for a session slot as Queued on its card (AixleHQ#591) feat(brand): use the new Aixle Flow lockup and route fonts through tokens (AixleHQ#590) feat(overview): show tokens used and session time instead of token cost (AixleHQ#589) fix(agents): pre-acknowledge Claude Code's cost-threshold notice (AixleHQ#587) test(playwright): QA helpers batch 2 (appRequest, readInertiaPage, shot, probeRoutes, signOut) (AixleHQ#586) test(playwright): plain-JS QA helpers for browser_run_code on staging (AixleHQ#584) feat(runners): add the runners table and the Runner model (AixleHQ#583) refactor(feature-flags): plain cached reads, no usage tooling (AixleHQ#579) # Conflicts: # CHANGELOG.md
artempartos
added a commit
to Hitin/flow
that referenced
this pull request
Oct 28, 2026
* origin/develop: docs(workflows): describe workflows as sessions made of steps (AixleHQ#595) feat(workflows): open archived workflows read-only in the builder (AixleHQ#594) feat(task-comments): let authors delete their own recent comments (AixleHQ#593) feat(mcp): log the JSON-RPC method and tool name of each MCP call (AixleHQ#592) fix(board): show a run waiting for a session slot as Queued on its card (AixleHQ#591) feat(brand): use the new Aixle Flow lockup and route fonts through tokens (AixleHQ#590) feat(overview): show tokens used and session time instead of token cost (AixleHQ#589) fix(agents): pre-acknowledge Claude Code's cost-threshold notice (AixleHQ#587) test(playwright): QA helpers batch 2 (appRequest, readInertiaPage, shot, probeRoutes, signOut) (AixleHQ#586) test(playwright): plain-JS QA helpers for browser_run_code on staging (AixleHQ#584) feat(runners): add the runners table and the Runner model (AixleHQ#583) refactor(feature-flags): plain cached reads, no usage tooling (AixleHQ#579) # Conflicts: # CHANGELOG.md
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.
Summary
The project Overview showed a "Token Cost" card: what the tokens agents consumed would cost at API prices. Sales kept having to explain that this is not what a customer pays, and that for agents running on a subscription it is not a real cost at all. The card is replaced by two that describe the work without implying a bill:
total_tokensthe sessions list shows), with a per-session average.The KPI row now holds five cards: one row on a full-width screen, 3 + 2 below 1100px, 2 columns below 720px.
TerminalSession::DURATION_SECONDS_SQLis pulled out of theduration_secondsransacker so that the sessions-list sort and the Overview sum share one definition of duration.totalSpendCentsis gone from the Overview props, since nothing else read it. Analytics still shows cost; this PR does not change it.During a rolling deploy, a new bundle polling an old pod gets no
totalTokensorsessionSeconds. Both formatters render that as—until the next poll; nothing throws.CHANGELOG entry is under Changed / Overview, and the product docs no longer mention token cost on this page.
Test plan
test/services/company_overview_service_test.rb(new): tokens and duration summed per project, other projects excluded, never-started sessions add no time, running session counts to now, zero for an empty projectoverview_controller_test.rb: Inertia props carrytotalTokensandsessionSeconds, and nototalSpendCentsOverviewPage.test.tsx: new labels, compact token and hour/minute formatting, per-session averages, no$on the pageoverview_render_test,overview_authorization_test,changelog_test(20 runs, 0 failures), vitest (12/12), rubocop, eslint, tsc🤖 Generated with Claude Code