feat(web): add <TurnMeter> composable to unify token/cost display #1162
Labels
No labels
area:agents
area:dashboard
area:database
area:design
area:design-review
area:flows
area:infra
area:meta
area:security
area:sessions
area:webhook
area:workdir
security
type:bug
type:chore
type:meta
type:user-story
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
charles/agent-hooks#1162
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
As a dashboard operator, I want token and cost data rendered consistently whether I'm looking at a task list row, a task detail header, or a transcript turn, so that I can compare usage at a glance without needing to context-switch between different widget formats.
Acceptance criteria
Component
<TurnMeter size="sm|md|lg" inputTokens={} outputTokens={} cacheReadTokens={} cacheCreationTokens={} costUsd={} durationMs={} />incomponents/turn-meter.tsxsm: inline text only — replaces<TokenMeter>in task-list rowsmd: inline text + small cost indicator — replaces transcript turn meterlg: full bar meters —<RunHeaderMeters>wraps<TurnMeter size="lg">costUsd={null}renders?unknown indicator (parity with current<CostMeter>)Adoption
<TokenMeter>becomes thin wrapper around<TurnMeter size="sm">until all call sites migrated, then removed<TurnMeter size="sm"><TurnMeter size="md"><RunHeaderMeters>delegates bar rendering to<TurnMeter size="lg">Quality
<RunHeaderMeters>— context window bar + compaction ticks remain (those are context-specific, not turn-level, so they stay in<RunHeaderMeters>above the meter)just qapassesOut of scope
<TokenAttributionChart>, referenced via tooltip in<RunHeaderMeters>)References