summaryrefslogtreecommitdiffhomepage
path: root/src/features/chat/ui
diff options
context:
space:
mode:
authorAdam Malczewski <[email protected]>2026-06-22 11:47:34 +0900
committerAdam Malczewski <[email protected]>2026-06-22 11:47:34 +0900
commitcc3a1cecd8c0c17e3f9bb65757d756358d517f94 (patch)
tree59ac153f542290efd58e0de9ff17949d1d73b44d /src/features/chat/ui
parent896b0faff1bfca90557ca5067ca160b3d41498f7 (diff)
downloaddispatch-web-cc3a1cecd8c0c17e3f9bb65757d756358d517f94.tar.gz
dispatch-web-cc3a1cecd8c0c17e3f9bb65757d756358d517f94.zip
feat(metrics): show turn number in metrics bubble (turn N · ...)
The turn number comes from the entry's position in the metrics array (1-based), which is correct regardless of trimming since stepId matching aligns segments to the right entry. Now displays 'turn 3 · 12k tok' instead of just 'turn · 12k tok'.
Diffstat (limited to 'src/features/chat/ui')
-rw-r--r--src/features/chat/ui/ChatView.svelte4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/features/chat/ui/ChatView.svelte b/src/features/chat/ui/ChatView.svelte
index d1d7709..2a17ac7 100644
--- a/src/features/chat/ui/ChatView.svelte
+++ b/src/features/chat/ui/ChatView.svelte
@@ -185,7 +185,7 @@
</div>
</div>
{:else if row.kind === "turn-metrics"}
- {@const turnView = viewTurnMetrics(row.turn)}
+ {@const turnView = viewTurnMetrics(row.turn, row.turnNumber)}
{@const lastCache = viewCacheRate(row.turn.usage)}
{@const chatCache = viewCacheRate(row.cumulativeUsage)}
{@const retention = viewExpectedCache(row.turn.usage, row.prevTurnUsage)}
@@ -193,7 +193,7 @@
<div class="chat-bubble w-full max-w-5xl bg-transparent p-0">
<div class="flex flex-col gap-1 text-xs">
<div class="opacity-70">
- turn · {turnView.tokensLabel} ({turnView.breakdown})
+ {turnView.label} · {turnView.tokensLabel} ({turnView.breakdown})
{#if turnView.tps} · {turnView.tps}{/if}
{#if turnView.duration} · {turnView.duration}{/if}
</div>