feat(board): show token counts on kanban session cards
Feature
Show token counts on the kanban session board cards — each session card should display tokens processed, per user feedback: "we should have tokens shown for each session in kanban."
Requested by: Rishet11 in #dev-chat, 2026-09-07
(Re-scoped 2026-09-07: this issue previously targeted Codex account cards in Settings — wrong surface. The ask is the session board cards, not Settings.)
Current state
- Board cards already have a usage chip:
toUsagePresentationinfrontend/src/renderer/components/SessionsBoardAdapters.tsxrenders it in the card footer next to the timestamp. - The chip is hidden entirely unless
usage.processedTokensis non-null and > 0.processedTokenscomes fromGET /api/v1/usage/sessionsand is nulled when any usage event row is missing input/output values. - v0.12.12 shows estimated cost by default with tokens only in the hover tooltip (
3f6077306, #4652). Main currently shows the token count again. - The backend chain is complete: SQLite
ListCompactSessionUsage→ usage summary service → controller → board. No backend work needed.
Proposal
- Always render the usage chip on session cards when usage data exists for the session — fall back to token count when cost is unknown, and vice versa. Don't blank the chip.
- Show the token count (e.g.
128k) on the card; exact count in tooltip/aria-label. - Keep the no-misleading-zeros rule: no chip when the provider reported nothing (
processedTokensnull/0).
Acceptance criteria
- [ ] Every board card with usage telemetry shows its token count.
- [ ] Exact figure available via tooltip or aria-label.
- [ ] Cards with no telemetry render no chip (no zeros).
- [ ]
npm run frontend:typecheckpasses;SessionsBoard.test.tsxupdated.
Re-scoped: the ask was token counts on the kanban session cards, not the Codex account cards in Settings. Title + body updated.
For context, the board already has a usage chip (toUsagePresentation in SessionsBoardAdapters.tsx) but it hides entirely when processedTokens is null/0, and v0.12.12 shipped cost-first display (#4652) with tokens only in the tooltip. Plan: make the chip show the token count (exact figure in tooltip) whenever usage exists, no chip when telemetry is absent. Backend chain is already complete — this is renderer-only.
From the NotesBot call on 2026-09-08, this existing issue appears to be relevant.
Match confidence: 0.65 (fuzzy).
Relevant discussion excerpts:
- [25:17] aditi: Yeah, so like what I was thinking is we can just include this in the session card or the Kanban itself, because there's just— there is like your reports will have something useful that is not there in the Kanban. That is right, but that is just one more addition, right? And if we add a lot of [...]
-
- aditi suggested integrating that extra information into the session card or Kanban itself instead of creating another page or layer in the product. - Dhruv Sharma agreed with the concern and said the new summary would be fighting for attention with the existing Kanban board and other interfaces. - [...]
-
- aditi suggested integrating that extra information into the session card or Kanban itself instead of creating another page or layer in the product. - Dhruv Sharma agreed with the concern and said the new summary would be fighting for attention with the existing Kanban board and other interfaces.
Source thread: https://discord.com/channels/1476302178913357958/1546947396788027483/1546947396788027483
Generated by AO Bot based on the transcript from NotesBot.
From the NotesBot call on 2026-09-09, this existing issue appears to be relevant.
Match confidence: 0.65 (fuzzy).
Relevant discussion excerpts:
- [25:05] aditi: Yeah, like give me references and that would be good. [25:10] shanky: Yeah, one more thing I am thinking is that our Kanban cards, now we are making it richer with more information. So basically we don't just show the name, the concatenated name, say hi to, and then idle. We are also showing more [...]
- [25:10] shanky: Yeah, one more thing I am thinking is that our Kanban cards, now we are making it richer with more information. So basically we don't just show the name, the concatenated name, say hi to, and then idle. We are also showing more information like let's say CI passing or tokens used or something like [...]
-
- shanky said worker cards on mobile should carry more information, similar to richer Kanban cards on desktop, such as "CI passing" or "tokens used." - aditi agreed and suggested adding a short description below the title plus token consumption on the right side. - shanky said mobile should show "as much as we [...]
Source thread: https://discord.com/channels/1476302178913357958/1547297201951346698/1547297201951346698
Generated by AO Bot based on the transcript from NotesBot.
From the NotesBot call on 2026-09-11, this existing issue appears to be relevant.
Match confidence: 0.68 (fuzzy).
Relevant discussion excerpts:
-
- prateek asked Dhruv Sharma to prioritize the startup/session-shuffling issue and later present how the chat UI processes run, why sessions were shuffling/terminating before, and how the fix works. - prateek said subscription switching has been a "very clunky experience" and expects the ongoing work there to [...]
-
- prateek said the Kanban board currently shows progress states even when an agent is idle, stopped, out of tokens, or stuck on review comments/CI failures, which creates false signals. - prateek said PR enrichment is fragile because it depends on the GitHub branch name matching the worktree branch name, and he [...]
-
- prateek said subscription switching has been a "very clunky experience" and expects the ongoing work there to improve it. - prateek said the Kanban board currently shows progress states even when an agent is idle, stopped, out of tokens, or stuck on review comments/CI failures, which creates false signals.
Source thread: https://discord.com/channels/1476302178913357958/1548027567800324157/1548027567800324157
Generated by AO Bot based on the transcript from NotesBot.
the usage data path is already complete, but current main still shows estimated cost as the compact board metric and keeps token counts in the tooltip when cost is available. the requested behavior is therefore not fully implemented.
pr #5245 addresses the actual gap by making processed tokens the visible card metric while keeping exact tokens and estimated cost in the tooltip and accessible text. this is a frontend-only enhancement; no backend changes appear necessary.
issue remains valid: current main exposes tokens only through the card hover path, while the request is to make the token count visible in the card metric.
pr #5245 is the active non-draft implementation, but it currently drops the existing cost-only fallback when processedTokens is null or zero. pr #5042 is a duplicate draft that preserves that fallback. leaving the issue open while the pull requests coordinate; no new pull request is needed.