From 770f862832dfef477705bee69bd2a84397d105a8 Mon Sep 17 00:00:00 2001
From: Abhi <43648792+abhipatel12@users.noreply.github.com>
Date: Sun, 29 Jun 2025 20:44:33 -0400
Subject: feat: Change /stats to include more detailed breakdowns (#2615)
---
.../SessionSummaryDisplay.test.tsx.snap | 54 +++++++++++-----------
1 file changed, 28 insertions(+), 26 deletions(-)
(limited to 'packages/cli/src/ui/components/__snapshots__/SessionSummaryDisplay.test.tsx.snap')
diff --git a/packages/cli/src/ui/components/__snapshots__/SessionSummaryDisplay.test.tsx.snap b/packages/cli/src/ui/components/__snapshots__/SessionSummaryDisplay.test.tsx.snap
index 3d2c373c..06dc2116 100644
--- a/packages/cli/src/ui/components/__snapshots__/SessionSummaryDisplay.test.tsx.snap
+++ b/packages/cli/src/ui/components/__snapshots__/SessionSummaryDisplay.test.tsx.snap
@@ -1,43 +1,45 @@
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
-exports[` > renders correctly with given stats and duration 1`] = `
+exports[` > correctly sums and displays stats from multiple models 1`] = `
"╭─────────────────────────────────────╮
│ │
│ Agent powering down. Goodbye! │
│ │
│ │
-│ Cumulative Stats (10 Turns) │
+│ Cumulative Stats (15 API calls) │
│ │
-│ Input Tokens 1,000 │
-│ Output Tokens 2,000 │
-│ Tool Use Tokens 200 │
-│ Thoughts Tokens 300 │
-│ Cached Tokens 500 (14.3%) │
+│ Input Tokens 1,500 │
+│ Output Tokens 3,000 │
+│ Tool Use Tokens 220 │
+│ Thoughts Tokens 350 │
+│ Cached Tokens 600 (12.0%) │
│ ───────────────────────────────── │
-│ Total Tokens 3,500 │
+│ Total Tokens 5,000 │
│ │
-│ Total duration (API) 50.2s │
+│ Total duration (API) 1m 2s │
+│ Total duration (Tools) 0s │
│ Total duration (wall) 1h 23m 45s │
│ │
╰─────────────────────────────────────╯"
`;
exports[` > renders zero state correctly 1`] = `
-"╭─────────────────────────────────╮
-│ │
-│ Agent powering down. Goodbye! │
-│ │
-│ │
-│ Cumulative Stats (0 Turns) │
-│ │
-│ Input Tokens 0 │
-│ Output Tokens 0 │
-│ Thoughts Tokens 0 │
-│ ────────────────────────── │
-│ Total Tokens 0 │
-│ │
-│ Total duration (API) 0s │
-│ Total duration (wall) 0s │
-│ │
-╰─────────────────────────────────╯"
+"╭─────────────────────────────────────╮
+│ │
+│ Agent powering down. Goodbye! │
+│ │
+│ │
+│ Cumulative Stats (0 API calls) │
+│ │
+│ Input Tokens 0 │
+│ Output Tokens 0 │
+│ Thoughts Tokens 0 │
+│ ───────────────────────────────── │
+│ Total Tokens 0 │
+│ │
+│ Total duration (API) 0s │
+│ Total duration (Tools) 0s │
+│ Total duration (wall) 1h 23m 45s │
+│ │
+╰─────────────────────────────────────╯"
`;
--
cgit v1.2.3