Jaayden Halko and Cursor
6f2011af88
feat: add chat summary tab in the right sidebar and per-chat cost endpoint ( #26649 )
...
Stacked on #26657 (the persisted whole-chat summary backend). Base
branch is `chat-summary-62j9`; review/merge that first.
Adds a reusable `ChatSummary` component.
The summary text is the persisted whole-chat summary (`chat.summary`)
introduced by #26657 . It is generated asynchronously and may be `null`
until the first summary is produced, in which case the popover renders a
muted empty state. Live updates arrive via that PR's
`chat_summary_change` watch event, which is already merged into the chat
caches.
Cost is served by a new per-chat endpoint, `GET
/api/experimental/chats/{chat}/cost`, which rolls up assistant-message
cost across a chat's root and child (subagent) chats and is authorized
like the other `{chat}` routes (read on the chat, 404 otherwise).
Visual and interaction coverage lives in `ChatSummary.stories.tsx` and
`ChatSummaryPopover.stories.tsx` (including populated-summary,
empty-state, and cost-loading cases).
---------
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-27 10:05:05 +01:00
..
2026-07-14 13:50:25 +01:00
2026-07-21 13:38:20 +02:00
2026-07-06 11:57:12 +01:00
2026-07-15 16:36:31 +10:00
2026-07-24 19:40:53 +02:00
2026-07-09 23:35:12 +01:00
2026-07-08 21:37:30 +02:00
2026-07-17 13:04:13 +02:00
2026-06-16 12:35:40 +00:00
2026-06-16 12:35:40 +00:00
2026-07-21 10:58:08 +02:00
2026-07-18 22:47:02 +02:00
2026-07-14 13:50:25 +01:00
2026-07-02 11:22:56 +01:00
2026-07-20 00:14:03 +02:00
2026-06-18 22:45:01 +02:00
2026-06-12 13:33:12 +02:00
2026-06-12 13:33:12 +02:00
2026-07-14 11:01:51 +02:00
2026-07-22 18:43:22 +02:00
2026-05-22 20:24:38 +10:00
2026-05-18 12:30:30 -04:00
2026-07-21 10:58:08 +02:00
2026-07-06 16:37:45 +00:00
2026-07-06 16:37:45 +00:00
2026-07-01 20:15:03 +01:00
2026-07-18 20:45:13 +02:00
2026-07-27 10:05:05 +01:00
2026-07-06 11:57:12 +01:00
2026-07-21 10:58:08 +02:00
2026-07-27 10:05:05 +01:00
2026-05-08 02:07:33 +10:00
2026-07-20 19:49:19 +02:00
2026-07-14 16:57:04 +02:00
2026-07-14 16:57:04 +02:00
2026-07-14 16:57:04 +02:00
2026-07-14 16:57:04 +02:00
2026-07-13 18:37:48 +10:00
2026-07-07 00:20:54 +10:00
2026-05-22 09:50:01 +02:00
2026-07-18 21:52:02 +02:00
2026-07-18 21:52:02 +02:00
2026-06-30 12:17:42 +01:00
2026-07-18 21:52:02 +02:00
2026-07-06 11:57:12 +01:00
2026-07-18 21:52:02 +02:00
2026-06-11 16:08:32 +10:00
2026-06-11 16:08:32 +10:00
2026-05-20 01:37:38 +02:00
2026-04-08 11:54:44 -04:00
2026-04-08 11:54:44 -04:00
2026-07-14 16:57:04 +02:00
2026-07-20 19:49:19 +02:00
2026-07-27 10:05:05 +01:00
2026-06-17 10:20:47 +00:00
2026-07-21 10:58:08 +02:00
2026-07-20 19:49:19 +02:00
2026-06-26 13:41:43 +03:00
2026-06-22 19:26:34 -06:00
2026-07-18 20:45:13 +02:00
2026-07-13 20:28:28 +02:00
2026-06-16 12:35:40 +00:00
2026-07-20 00:14:03 +02:00
2026-07-21 10:58:08 +02:00
2026-07-21 10:58:08 +02:00
2026-07-17 13:04:13 +02:00
2026-07-20 19:49:19 +02:00
2026-07-18 20:45:13 +02:00
2026-06-12 13:33:12 +02:00
2026-07-09 23:35:12 +01:00
2026-07-09 23:35:12 +01:00
2026-06-26 13:41:43 +03:00
2026-06-29 11:49:10 +01:00
2026-06-29 11:49:10 +01:00
2026-07-13 20:28:28 +02:00
2026-07-27 10:05:05 +01:00
2026-07-13 20:28:28 +02:00
2026-04-22 20:11:53 +10:00
2026-06-12 13:33:12 +02:00
2026-06-17 10:20:47 +00:00
2026-07-06 12:45:16 +02:00
2026-06-25 00:51:13 +10:00
2026-04-22 20:11:53 +10:00
2026-06-12 13:33:12 +02:00
2026-06-12 13:33:12 +02:00
2026-06-12 13:33:12 +02:00
2026-06-16 12:35:40 +00:00
2026-06-18 08:28:17 +00:00
2026-06-12 13:33:12 +02:00
2026-06-12 13:33:12 +02:00
2026-06-12 13:33:12 +02:00
2026-06-12 13:33:12 +02:00
2026-06-12 13:33:12 +02:00
2026-06-12 13:33:12 +02:00
2026-07-22 18:43:22 +02:00
2026-07-18 20:45:13 +02:00
2026-07-25 15:30:52 +02:00
2026-07-18 20:45:13 +02:00
2026-07-25 15:30:52 +02:00
2026-07-27 10:05:05 +01:00
2026-07-20 19:49:19 +02:00
2026-07-18 20:45:13 +02:00
2026-07-20 19:49:19 +02:00
2026-07-06 16:37:45 +00:00
2026-06-17 18:29:43 +02:00
2026-07-18 20:45:13 +02:00
2026-07-17 13:04:13 +02:00
2026-07-27 10:05:05 +01:00
2026-05-22 20:24:38 +10:00
2026-04-14 16:56:17 +01:00
2026-07-06 16:37:45 +00:00
2026-07-06 16:37:45 +00:00