summaryrefslogtreecommitdiffhomepage
path: root/src/features/chat/ui/ChatView.svelte
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
commit5d47c500b2a313c9f09a6d8564007a0426de5f22 (patch)
tree095f6db688c9940bc9cc2248f21b923b0b7215a5 /src/features/chat/ui/ChatView.svelte
parent82802a14bc5921c6b62756c3a1a8953c087b5b0d (diff)
downloaddispatch-web-5d47c500b2a313c9f09a6d8564007a0426de5f22.tar.gz
dispatch-web-5d47c500b2a313c9f09a6d8564007a0426de5f22.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/ChatView.svelte')
-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>