Repository navigation
refactor(tui): sum cached and total tokens across all steps in turn summary - #46590
Conversation
|
This PR doesn't fully meet our contributing guidelines and PR template. What needs to be fixed:
Please edit this PR description to address the above within 2 hours, or it will be automatically closed. If you believe this was flagged incorrectly, please let a maintainer know. |
|
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
|
This pull request has been automatically closed because it was not updated to meet our contributing guidelines within the 2-hour window. Feel free to open a new pull request that follows our guidelines. |
|
The
Happy to rerun once CI stabilizes — or feel free to rerun/override if that's easier. |
38d9dd2 to
3790375
Compare
Issue for this PR
Closes #46636
Type of change
What does this PR do?
The
+ Tokensturn summary mixes two units on one line (#41922):newissummed across all steps while
cachedandtotalare the last step's values.Nothing on the line marks that difference, so the three numbers read as the
same kind of aggregate when they aren't. This makes all three turn-level sums;
the last step's context is still visible in the expanded table and on the
status bar.
How did you verify your code works?
bun test test/cli/tui/session-rows.test.tsin packages/tui — 24 pass, 0 failScreenshots / recordings
Multi-step turn with
debug.turn_tokenson (11 steps):50,006 + 2,456,768 = 2,506,774Checklist