From 5d47c500b2a313c9f09a6d8564007a0426de5f22 Mon Sep 17 00:00:00 2001 From: Adam Malczewski Date: Mon, 22 Jun 2026 11:47:34 +0900 Subject: feat(metrics): show turn number in metrics bubble (turn N · ...) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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'. --- src/core/metrics/place.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'src/core/metrics/place.ts') 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, }); -- cgit v1.2.3