Commit 5d895ae
feat: show actual tokens in log viewer header for CLI sessions
Add session-level actual token count to SessionLogData so the log
viewer can display it in the header when per-turn actual data is
unavailable (e.g. Copilot CLI sessions where actual totals come from
session.shutdown rather than individual turn events).
- types.ts: add actualTokens? to SessionLogData
- extension.ts: populate actualTokens from cache in getSessionLogData
- logviewer/main.ts: add actualTokens? to local type; show '✅ Actual
Tokens' card when hasSessionActualOnly (CLI sessions); also rename
per-turn actual card label to '✅ Actual Tokens' for consistency
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 14fce65 commit 5d895ae
3 files changed
Lines changed: 20 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4319 | 4319 | | |
4320 | 4320 | | |
4321 | 4321 | | |
| 4322 | + | |
| 4323 | + | |
4322 | 4324 | | |
4323 | 4325 | | |
4324 | 4326 | | |
| |||
4331 | 4333 | | |
4332 | 4334 | | |
4333 | 4335 | | |
4334 | | - | |
| 4336 | + | |
| 4337 | + | |
4335 | 4338 | | |
4336 | 4339 | | |
4337 | 4340 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
372 | 372 | | |
373 | 373 | | |
374 | 374 | | |
| 375 | + | |
| 376 | + | |
375 | 377 | | |
376 | 378 | | |
377 | 379 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
| 64 | + | |
63 | 65 | | |
64 | 66 | | |
65 | 67 | | |
| |||
561 | 563 | | |
562 | 564 | | |
563 | 565 | | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
564 | 570 | | |
565 | 571 | | |
566 | 572 | | |
| |||
624 | 630 | | |
625 | 631 | | |
626 | 632 | | |
627 | | - | |
| 633 | + | |
628 | 634 | | |
629 | 635 | | |
630 | 636 | | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
631 | 643 | | |
632 | 644 | | |
633 | 645 | | |
| |||
0 commit comments