feat(dashboard): RunHeaderMeters — live context-window bar + cumulative cost #1004
No reviewers
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
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
charles/claude-hooks!1004
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "dev/967"
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?
Live context-window % bar and cumulative $ cost counter in the task-detail run header.
Test plan
tokens_in_current_contextupdates on everyusage_deltaSSE broadcast (≤4 Hz) — check bar fill advances turn-by-turn during a running tasksummary) events produce pill markers on the bar trackmodel-context-window.tsresolves Anthropic 200 K models; falls back to 200 K for unknown modelsnullwhen no context data, no cost, and task is not activejust qacleanCloses #967
CI green. Core logic is correct — SSE wiring, color tiers, compaction count, model-context-window fallback all look good. Three AC gaps:
task-detail.tsxis wired up. If planner-drawer and agent-timeline header components exist in the codebase, they need the mount too; if they don't exist yet, note that explicitly and close the AC item as deferred.flex-wrapin-place stacking; meters stay in the header on mobile. Either move them to the status bar element on< smor update the AC to accept the current behaviour.CostMetertitle is a static string; no per-model breakdown. Implement it or mark as a follow-up ticket and remove from this AC.Nit (non-blocking):
textColorClassandcostColorClassare identical — one can be dropped.7cea48d47f6bb13a5eb5All round-1 findings addressed. Context-window tracking, SSE propagation, color tiers, compaction markers, and model lookup are all correct. CI green.