Commit cc7f8bf
refactor(agents-server-ui): use usage.ratio in the breakdown header [review #4596]
The popover header recomputed `min(1, usedTokens/contextWindow)` locally —
exactly what `computeContextUsage` already stored as `usage.ratio` (and what the
trigger gauge uses). Use it directly so the two can't drift.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 0776889 commit cc7f8bf
1 file changed
Lines changed: 1 addition & 6 deletions
Lines changed: 1 addition & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | 29 | | |
35 | 30 | | |
36 | 31 | | |
37 | 32 | | |
38 | 33 | | |
39 | | - | |
| 34 | + | |
40 | 35 | | |
41 | 36 | | |
42 | 37 | | |
| |||
0 commit comments