Commit 7490697
fix(statusline): label cumulative savings + show efficiency %% so the badge can't be misread
The badge rendered ` s:<session> · <project>` — two unlabeled numbers that read like
a saved/total ratio (e.g. `s:12.4k · 970.0k` looks like 1.3% saved). Both are SAVINGS:
session-saved · project-saved. Label the cumulative one `saved` and append the
structural-read efficiency (saved ÷ would-be-raw, from tool-calls), so it's
unmistakably a savings number and its real ratio is visible:
before: [TP s:12.4k · 970.0k]
after: [TP s:17.1k · saved 970.0k 90%]
Adds a `wouldbe` sum mode to sum_log for the % baseline. Shell syntax + render verified.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012GujqUM9Rzsu9dmhee8fQy1 parent 1905f2a commit 7490697
1 file changed
Lines changed: 21 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
67 | 73 | | |
68 | 74 | | |
69 | 75 | | |
| |||
165 | 171 | | |
166 | 172 | | |
167 | 173 | | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
168 | 186 | | |
169 | | - | |
| 187 | + | |
170 | 188 | | |
171 | 189 | | |
172 | | - | |
| 190 | + | |
173 | 191 | | |
174 | | - | |
| 192 | + | |
175 | 193 | | |
176 | 194 | | |
177 | 195 | | |
| |||
0 commit comments