diff options
| author | Arya Gummadi <[email protected]> | 2025-08-18 22:57:53 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-08-19 05:57:53 +0000 |
| commit | 8f8082fe3da9e1972f8b8226c68fa14e326a3d8a (patch) | |
| tree | f4e8b121bea73120e57e59eba8d6ad3fbda2c59c /packages/cli/src/ui/components/__snapshots__ | |
| parent | da396bd5662adcac3ebc60d55cfc1d722b903e38 (diff) | |
feat: add file change tracking to session metrics (#6094)
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: Jacob Richman <[email protected]>
Diffstat (limited to 'packages/cli/src/ui/components/__snapshots__')
| -rw-r--r-- | packages/cli/src/ui/components/__snapshots__/SessionSummaryDisplay.test.tsx.snap | 1 | ||||
| -rw-r--r-- | packages/cli/src/ui/components/__snapshots__/StatsDisplay.test.tsx.snap | 41 |
2 files changed, 42 insertions, 0 deletions
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 98e7722e..97a0b525 100644 --- a/packages/cli/src/ui/components/__snapshots__/SessionSummaryDisplay.test.tsx.snap +++ b/packages/cli/src/ui/components/__snapshots__/SessionSummaryDisplay.test.tsx.snap @@ -9,6 +9,7 @@ exports[`<SessionSummaryDisplay /> > renders the summary display with a title 1` │ Session ID: │ │ Tool Calls: 0 ( ✔ 0 ✖ 0 ) │ │ Success Rate: 0.0% │ +│ Code Changes: +42 -15 │ │ │ │ Performance │ │ Wall Time: 1h 23m 45s │ diff --git a/packages/cli/src/ui/components/__snapshots__/StatsDisplay.test.tsx.snap b/packages/cli/src/ui/components/__snapshots__/StatsDisplay.test.tsx.snap index 09202599..d6842188 100644 --- a/packages/cli/src/ui/components/__snapshots__/StatsDisplay.test.tsx.snap +++ b/packages/cli/src/ui/components/__snapshots__/StatsDisplay.test.tsx.snap @@ -1,5 +1,46 @@ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html +exports[`<StatsDisplay /> > Code Changes Display > displays Code Changes when line counts are present 1`] = ` +"╭──────────────────────────────────────────────────────────────────────────────────────────────────╮ +│ │ +│ Session Stats │ +│ │ +│ Interaction Summary │ +│ Session ID: test-session-id │ +│ Tool Calls: 1 ( ✔ 1 ✖ 0 ) │ +│ Success Rate: 100.0% │ +│ Code Changes: +42 -18 │ +│ │ +│ Performance │ +│ Wall Time: 1s │ +│ Agent Active: 100ms │ +│ » API Time: 0s (0.0%) │ +│ » Tool Time: 100ms (100.0%) │ +│ │ +│ │ +╰──────────────────────────────────────────────────────────────────────────────────────────────────╯" +`; + +exports[`<StatsDisplay /> > Code Changes Display > hides Code Changes when no lines are added or removed 1`] = ` +"╭──────────────────────────────────────────────────────────────────────────────────────────────────╮ +│ │ +│ Session Stats │ +│ │ +│ Interaction Summary │ +│ Session ID: test-session-id │ +│ Tool Calls: 1 ( ✔ 1 ✖ 0 ) │ +│ Success Rate: 100.0% │ +│ │ +│ Performance │ +│ Wall Time: 1s │ +│ Agent Active: 100ms │ +│ » API Time: 0s (0.0%) │ +│ » Tool Time: 100ms (100.0%) │ +│ │ +│ │ +╰──────────────────────────────────────────────────────────────────────────────────────────────────╯" +`; + exports[`<StatsDisplay /> > Conditional Color Tests > renders success rate in green for high values 1`] = ` "╭──────────────────────────────────────────────────────────────────────────────────────────────────╮ │ │ |
