From a6621a7095def5539ca3985b1a9a1e6488256d46 Mon Sep 17 00:00:00 2001 From: Dave Date: Thu, 19 Mar 2026 15:42:50 +0000 Subject: [PATCH] story-kit: done 309_story_show_token_cost_breakdown_in_expanded_work_item_detail_panel --- ...down_in_expanded_work_item_detail_panel.md | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .story_kit/work/5_done/309_story_show_token_cost_breakdown_in_expanded_work_item_detail_panel.md diff --git a/.story_kit/work/5_done/309_story_show_token_cost_breakdown_in_expanded_work_item_detail_panel.md b/.story_kit/work/5_done/309_story_show_token_cost_breakdown_in_expanded_work_item_detail_panel.md new file mode 100644 index 0000000..3d26c3c --- /dev/null +++ b/.story_kit/work/5_done/309_story_show_token_cost_breakdown_in_expanded_work_item_detail_panel.md @@ -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