story-kit: done 309_story_show_token_cost_breakdown_in_expanded_work_item_detail_panel

This commit is contained in:
Dave
2026-03-19 15:42:50 +00:00
parent ce380ffb52
commit a6621a7095

View File

@@ -0,0 +1,20 @@
---
name: "Show token cost breakdown in expanded work item detail panel"
---
# Story 309: Show token cost breakdown in expanded work item detail panel
## User Story
As a project owner viewing a work item in the web UI, I want to see a per-agent token cost breakdown in the expanded detail panel, so that I can understand where tokens were spent on that story.
## Acceptance Criteria
- [ ] WorkItemDetailPanel fetches token cost data using the existing /work-items/:story_id/token-cost endpoint
- [ ] Shows per-agent session breakdown: agent name, model, token counts (input/output/cache), cost in USD
- [ ] Shows total cost for the story
- [ ] Shows empty state when no token data exists for the story
## Out of Scope
- TBD