From 55faf5043a22893dc25df04a05a83f2c2a71a4ca Mon Sep 17 00:00:00 2001 From: Dorian Date: Tue, 3 Mar 2026 23:36:31 +0000 Subject: [PATCH] feat(chat): add token & cost estimator badges (M9.6) Per-message token count badge (e.g. "125 tok", "1.2k tok") next to timestamp. ContextBar tooltip shows running total and estimated cost based on model pricing table. Pricing for Claude Haiku/Sonnet/Opus. Co-Authored-By: Claude Opus 4.6 --- .../app/src/components/chat/ChatMessage.vue | 11 +++++++++ .../app/src/components/chat/ChatWindow.vue | 4 ++-- .../app/src/components/chat/ContextBar.vue | 24 ++++++++++++++++++- 3 files changed, 36 insertions(+), 3 deletions(-) diff --git a/packages/app/src/components/chat/ChatMessage.vue b/packages/app/src/components/chat/ChatMessage.vue index bd516a10..fa94a456 100644 --- a/packages/app/src/components/chat/ChatMessage.vue +++ b/packages/app/src/components/chat/ChatMessage.vue @@ -205,6 +205,8 @@
{{ formattedTime }} (edited) + {{ tokenLabel }} + {{ message.feedback === 'up' ? '๐Ÿ‘' : '๐Ÿ‘Ž' }}