summaryrefslogtreecommitdiffhomepage
path: root/src/core/metrics/place.ts
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/core/metrics/place.ts
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/core/metrics/place.ts')
-rw-r--r--src/core/metrics/place.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/metrics/place.ts b/src/core/metrics/place.ts
index cb16b30..1009b15 100644
--- a/src/core/metrics/place.ts
+++ b/src/core/metrics/place.ts
@@ -232,6 +232,7 @@ export function interleaveTurnMetrics(
rows.push({
kind: "turn-metrics",
turn: entry.total,
+ turnNumber: entryIdx + 1,
cumulativeUsage: cumulativeByEntry[entryIdx] ?? entry.total.usage,
prevTurnUsage: prevUsageByEntry[entryIdx] ?? null,
});